ruvik
Guest
R
-
Автор темы
- #1
Помогите пофиксить undefeated
крашит на appsystem
Код:
DWORD dwInitAddress = Utils.PatternSearch( "engine.dll", ( PBYTE )"\x55\x8B\xEC\x81\xEC\x00\x00\x00\x00\x53\x56\x57\xE8\x00\x00\x00\x00\x83\x3D\x00\x00\x00\x00\x00", "xxxxx????xxxx????xx?????", NULL, NULL );
CreateInterfaceFn fnEngineFactory = ( CreateInterfaceFn )GetProcAddress( ( HMODULE )GetModuleHandle( "engine.dll" ), "CreateInterface" );
cout << iblue << "fnEngineFactory" << igreen << ": 0x" << fnEngineFactory << white << endl;
CreateInterfaceFn AppSystemFactory = ( CreateInterfaceFn )**( PDWORD* )( dwInitAddress + 0x3D );
cout << iblue << "AppSystemFactory" << igreen << ": 0x" << AppSystemFactory << white << endl;
CreateInterfaceFn MaterialSystemFactory = ( CreateInterfaceFn )GetProcAddress( ( HMODULE )GetModuleHandle( "materialsystem.dll" ), "CreateInterface" );
cout << iblue << "MaterialSystemFactory" << igreen << ": 0x" << MaterialSystemFactory << white << endl;
CreateInterfaceFn ClientFactory = ( CreateInterfaceFn )**( PDWORD* )( dwInitAddress + 0x75 );
cout << iblue << "ClientFactory" << igreen << ": 0x" << ClientFactory << white << endl;
CreateInterfaceFn StdFactory = ( CreateInterfaceFn )GetProcAddress( ( HMODULE )GetModuleHandle( "vstdlib.dll" ), "CreateInterface" );