Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- moduleHandle = (__int64)(GetModuleHandleA(0i64) - 1342177280);
- signed __int64 findGameVersion()
- {
- unsigned int moduleBaseValue; // eax@1
- int v1; // eax@5
- int v2; // eax@6
- int v3; // eax@7
- signed __int64 result; // rax@9
- moduleBaseValue = *(_DWORD *)(moduleHandle + 0x140870000i64);
- if ( moduleBaseValue <= 0x57085889 )
- {
- if ( moduleBaseValue == 1460164745 )
- return 12i64;
- if ( moduleBaseValue > 0x100FF360 )
- {
- if ( moduleBaseValue == 683967304 )
- return 13i64;
- if ( moduleBaseValue == 1224733726 )
- return 17i64;
- if ( moduleBaseValue == 1306716160 )
- return 14i64;
- }
- else
- {
- if ( moduleBaseValue == 269480800 )
- return 5i64;
- v1 = moduleBaseValue - 1;
- if ( !v1 )
- return 3i64;
- v2 = v1 - 126136;
- if ( !v2 )
- return 4i64;
- v3 = v2 - 10528599;
- if ( !v3 )
- return 1i64;
- if ( v3 == 241003505 )
- return 10i64;
- }
- return 0xFFFFFFFFi64;
- }
- if ( moduleBaseValue > 0xC4834800 )
- {
- if ( moduleBaseValue == -932311194 )
- {
- result = 11i64;
- }
- else if ( moduleBaseValue == -402579420 )
- {
- result = 0i64;
- }
- else
- {
- if ( moduleBaseValue != -197560555 )
- return 0xFFFFFFFFi64;
- result = 16i64;
- }
- }
- else
- {
- if ( moduleBaseValue == -998029312 )
- return 9i64;
- if ( moduleBaseValue == 2099381759 )
- return 2i64;
- if ( moduleBaseValue == -1991718773 )
- return 15i64;
- if ( moduleBaseValue != -1990176375 )
- {
- if ( moduleBaseValue == -1958150279 )
- return 7i64;
- return 0xFFFFFFFFi64;
- }
- result = 8i64;
- if ( *(_DWORD *)(moduleHandle + 5389892360i64) == 610044232 )
- result = 6i64;
- }
- return result;
- }
- _QWORD globalPtrArray[72] =
- {
- 142972DF0h, 14296E670h, 1429941F0h, 14298F9F0h, 142A0D4B0h
- 142A07E70h, 142A74710h, 142A701E0h, 142A74710h, 142A701E0h
- 142AB3B80h, 142AAF5A0h, 142AD4DC0h, 142ACF7C0h, 142AFD320h
- 142AF7EC0h, 142AFF640h, 142AFB0C0h, 1427B9250h, 1427B5B90h
- 1427CF550h, 1427CBE10h, 1427EBBB8h, 1427E7750h, 14285FF40h
- 14285CAC8h, 14285FF40h, 14285CAC8h, 14286B5C0h, 1428680C0h
- 14288B158h, 142887048h, 1428A9288h, 1428A4EE0h, 1428AB588h
- 1428A80E0h, 141EDFEBCh, 141EDF9C8h, 141ED937Ch, 141ED88B8h
- 141EF25E0h, 141EECECCh, 141F65AD0h, 141F70C28h, 141F65AD0h
- 141F70C28h, 141F7DBBCh, 141F6C8E0h, 141F98938h, 141F87494h
- 141FA92C4h, 141FA3B00h, 141FB80FCh, 141FA62F0h, 141EDFEC4h
- 141EDF9CCh, 141ED93CCh, 141ED8908h, 141EF25E4h, 141EECF18h
- 141F65AD4h, 141F70C2Ch, 141F65AD4h, 141F70C2Ch, 141F7DBC0h
- 141F6C8E8h, 141F98944h, 141F874A0h, 141FA92E4h, 141FA3B20h
- 141FB8108h, 141FA62F4
- }
- unsigned __int64 *__fastcall getGlobalPtr(signed int funcToFind)
- {
- return (unsigned __int64 *)(*(_QWORD *)(globalPtrArray[gameVersion] + 8i64 * ((funcToFind >> 18) & 0x3F) + moduleHandle)
- + 8i64 * (funcToFind & 0x3FFFF));
- }
Add Comment
Please, Sign In to add comment