// === PROTOTYPES ===\r
int PE_Relocate(void *Base, char **envp, char *Filename);\r
char *PE_int_GetTrueFile(char *file);\r
// === PROTOTYPES ===\r
int PE_Relocate(void *Base, char **envp, char *Filename);\r
char *PE_int_GetTrueFile(char *file);\r
impDir[i].ImportLookupTable += iBase/4;\r
impDir[i].ImportAddressTable += iBase/4;\r
DEBUGS(" PE_Relocate: DLL Required '%s'(0x%x)\n", impDir[i].DLLName, impDir[i].DLLName);\r
impDir[i].ImportLookupTable += iBase/4;\r
impDir[i].ImportAddressTable += iBase/4;\r
DEBUGS(" PE_Relocate: DLL Required '%s'(0x%x)\n", impDir[i].DLLName, impDir[i].DLLName);\r
importTab = impDir[i].ImportLookupTable;\r
aIAT = impDir[i].ImportAddressTable;\r
for( j = 0; importTab[j] != 0; j++ )\r
importTab = impDir[i].ImportLookupTable;\r
aIAT = impDir[i].ImportAddressTable;\r
for( j = 0; importTab[j] != 0; j++ )\r
name = (void*)( iBase + importTab[j] );\r
DEBUGS(" PE_Relocate: Import Name '%s', Hint 0x%x\n", name->Name, name->Hint);\r
name = (void*)( iBase + importTab[j] );\r
DEBUGS(" PE_Relocate: Import Name '%s', Hint 0x%x\n", name->Name, name->Hint);\r
tPE_IMAGE_HEADERS *peHeaders;\r
tPE_DATA_DIR *directory;\r
tPE_EXPORT_DIR *expDir;\r
tPE_IMAGE_HEADERS *peHeaders;\r
tPE_DATA_DIR *directory;\r
tPE_EXPORT_DIR *expDir;\r
//DEBUGS(" PE_GetSymbol: '%s' = 0x%x\n", name, Base + addrTable[ ordTable[i] ]);\r
if(strcmp(name, Name) == 0)\r
{\r
//DEBUGS(" PE_GetSymbol: '%s' = 0x%x\n", name, Base + addrTable[ ordTable[i] ]);\r
if(strcmp(name, Name) == 0)\r
{\r
char *fwd = (char*)retVal;\r
DEBUGS(" PE_GetSymbol: '%s' forwards to '%s'\n", name, fwd);\r
return PE_int_GetForwardSymbol(fwd, Ret);\r
}\r
char *fwd = (char*)retVal;\r
DEBUGS(" PE_GetSymbol: '%s' forwards to '%s'\n", name, fwd);\r
return PE_int_GetForwardSymbol(fwd, Ret);\r
}\r