Hello everybody! This menu is from my crossfire and combat arms hacks... They work for CS GO too, but when you change resolution, the game freezes. I will try to fix this problem.. I am only releasing the EndScene hook required to make the menu (since the menu part is easy) If you need the whole project, add me on skype. (The features don't work XD, they are for a different game so if they are called they do nothing.)
Here is the menu:
ASM Patching:
Windows 8/8.1/10
Code:
__asm
{
POPFD
POPAD
MOV EDI,DWORD PTR SS:[EBP+0x8]
XOR ESI,ESI
}
Windows Vista/7
Code:
__asm
{
MOV ESI, DWORD PTR SS : [EBP+0x8]
XOR EBX, EBX
MOV pDevice, ESI
PUSHAD
}
Windows XP (Thanks to friend, I don't own WinXP)
Code:
__asm
{
MOV DWORD PTR SS : [EBP - 0x1C], EDI
MOV DWORD PTR SS : [EBP - 0x18], EBX
MOV pDevice, ESI
PUSHAD
}
Oh yeah POPAD + POPFD (If pushed) after you call your functions
CodeCaveJMPAddresses:
Code:
DWORD pDevice = FindPattern(hD3D, 0x128000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x00\x00\x89\x86", "00????00????00");
I used vTable[42], which is EndScene in d3d9.dll.
Windows 8/8.1/10
Code:
Endscenehook = vTable[42] + 0xC;
EndsceneRet = Endscenehook + 0x5;
PlaceJMP((PBYTE)Endscenehook, (DWORD)Endscene_Detour, 5);
Windows Vista/7
Code:
Endscenehook = vTable[42] + 0x2D;
EndsceneRet = Endscenehook + 0x5;
PlaceJMP((PBYTE)Endscenehook, (DWORD)Endscene_Detour, 5);
Windows XP (Friend used 6 bytes)
Code:
Endscenehook = vTable[42] + 0x36;
EndsceneRet = Endscenehook + 0x6;
PlaceJMP((PBYTE)Endscenehook, (DWORD)Endscene_Detour, 6);
If anyone needs ANYTHING, add me on skype and ill help.

Skype: Lucasheer715