3bool HookFirmware(
char *FirmwareFunctionName,
void *RedirectTo,
void *PointerToOriginal)
8 dword FirmwareFunction;
10 if(!FirmwareFunctionName || !RedirectTo || !PointerToOriginal)
16 FirmwareFunction =
TryResolve(FirmwareFunctionName);
26 *(dword*)PointerToOriginal = FirmwareFunction;
27 *got = (dword)RedirectTo;
dword * FindGotPointer(dword FunctionAddress)
bool HookFirmware(char *FirmwareFunctionName, void *RedirectTo, void *PointerToOriginal)
dword TryResolve(char *Function)