27 pe->
sect[
i].SizeOfRawData);
77 return readblock(pe->
fd,
b,
s->PointerToRawData,
s->SizeOfRawData);
87 DPRINT(
"Loading section %s (ImageBase %x RVA %x)\n",
name, pe->
fd,
s->VirtualAddress);
89 b->len =
s->SizeOfRawData;
90 PCHAR DataSource = ((
char *)pe->
fd) +
s->VirtualAddress;
91 DPRINT(
"Copying to %x from %x (%x)\n", DataSource,
b->data,
b->len);
94 return s->SizeOfRawData;
105 for (
i = 0;
i < maxlen &&
string[
i];
i++);
128 DPRINT(
"Finding RVA for Physical %x\n", TargetPhysical);
129 for (
i = 0;
i < NumberOfSections;
i++) {
130 DPRINT(
"Section %d name %s Raw %x Virt %x\n",
133 SectionHeaders[
i].PointerToRawData,
135 if (TargetPhysical >= SectionHeaders[
i].PointerToRawData &&
136 TargetPhysical < SectionHeaders[
i].PointerToRawData + SectionHeaders[
i].SizeOfRawData) {
137 DPRINT(
"RVA %x\n", TargetPhysical - SectionHeaders[
i].PointerToRawData + SectionHeaders[
i].
VirtualAddress);
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
GLuint GLuint GLsizei count
GLboolean GLboolean GLboolean b
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
NTSYSAPI VOID NTAPI RtlFreeAnsiString(PANSI_STRING AnsiString)
NTSYSAPI VOID NTAPI RtlInitAnsiString(PANSI_STRING DestinationString, PCSZ SourceString)
u32int peget4(const unsigned char *ptr)
u64int peget8(const unsigned char *ptr)
int loadmemsection(Pe *pe, char *name, DwarfBlock *b)
void * RosSymAllocMemZero(ulong size, ulong count)
PeSect * pesection(Pe *pe, const char *name)
u16int peget2(const unsigned char *ptr)
int GetStrnlen(const char *string, int maxlen)
static int readblock(void *fd, DwarfBlock *b, ulong off, ulong len)
int seek(void *filectx, ulong position, int origin)
int loaddisksection(Pe *pe, char *name, DwarfBlock *b)
int readn(void *filectx, char *buffer, ulong size)
ulong pefindrva(struct _IMAGE_SECTION_HEADER *SectionHeaders, int NumberOfSections, ulong TargetPhysical)
#define ANSI_NAME_STRING(s)
#define RosSymSeekFile(FileContext, Position)
#define RosSymAllocMem(Size)
#define RosSymFreeMem(Area)
#define RosSymReadFile(FileContext, Buffer, Size)
unsigned long long u64int
struct _IMAGE_SECTION_HEADER * sect
#define RtlCopyMemory(Destination, Source, Length)
_Must_inspect_result_ _In_ WDFDMATRANSACTION _In_ PFN_WDF_PROGRAM_DMA _In_ WDF_DMA_DIRECTION _In_ PMDL _In_ PVOID VirtualAddress