[saco] Implement Rand_Hook()

This commit is contained in:
RD42
2024-05-04 22:55:06 +08:00
parent 5b75400b9f
commit b5d2f63338
+20
View File
@@ -126,6 +126,26 @@ NUDE HOOK_6()
_asm jmp edx
}
//-----------------------------------------------------------
DWORD dwRandCaller;
NUDE Rand_Hook()
{
_asm mov eax, [esp+0]
_asm mov dwRandCaller, eax
/*
if(dwRandCaller > 0x73FB10 && dwRandCaller < 0x74132E) {
_asm mov eax, iSyncedRandomNumber
_asm ret
}*/
rand();
_asm ret
}
//-----------------------------------------------------------
void InstallMethodHook( DWORD dwInstallAddress,