You can use AoB from CMS_v85U_DEVM.idb to match other versionThanks, i dont have idea ,how to find CWsvApp::run CRC![]()
C++:
IDB simple example
void __thiscall CWvsApp::Run(_DWORD *this, _DWORD *a2)
{
...
if ( !dword_D87954 )
_com_issue_error(-2147467261);
IWzGr2D::RenderFrame((void *)dword_D87954); // CMS85Call(00B5E81D)->CMS85Func(00844F34)
v37 = get_rand(dword_D83800) % 0x64u;
if ( v37 < 50 )
{
if ( v37 < 15 )
v37 = 1;
else
v37 = 2;
}
...
dword_D8614C(1); // CMS85Jmp(00B5F0C8)
}
C++:
CPP simple example
ULONG_PTR uRenderFrameAddr = 0x00844F34;
ULONG_PTR uRenderFrameJmpAddr = 0x00B5F0C8;
int(__thiscall* _IWzGr2D__RenderFrame)(void* ecx) = nullptr;
int __fastcall IWzGr2D__RenderFrame_Hook(void* ecx, void* edx)
{
...
*(ULONG_PTR*)_AddressOfReturnAddress() = uRenderFrameJmpAddr;
return _IWzGr2D__RenderFrame(ecx);
}
SetHook(true, reinterpret_cast<void**>(&_IWzGr2D__RenderFrame), IWzGr2D__RenderFrame_Hook);
Last edited: