[C++] Internal EndScene Menu Source
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
Windows Vista/7
Windows XP (Thanks to friend, I don't own WinXP)
Oh yeah POPAD + POPFD (If pushed) after you call your functions 
CodeCaveJMPAddresses:
I used vTable[42], which is EndScene in d3d9.dll.
Windows 8/8.1/10
Windows Vista/7
Windows XP (Friend used 6 bytes)
If anyone needs ANYTHING, add me on skype and ill help.
Skype: Lucasheer715
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
}
Code:
__asm
{
MOV ESI, DWORD PTR SS : [EBP+0x8]
XOR EBX, EBX
MOV pDevice, ESI
PUSHAD
}
Code:
__asm
{
MOV DWORD PTR SS : [EBP - 0x1C], EDI
MOV DWORD PTR SS : [EBP - 0x18], EBX
MOV pDevice, ESI
PUSHAD
}

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");
Windows 8/8.1/10
Code:
Endscenehook = vTable[42] + 0xC; EndsceneRet = Endscenehook + 0x5; PlaceJMP((PBYTE)Endscenehook, (DWORD)Endscene_Detour, 5);
Code:
Endscenehook = vTable[42] + 0x2D; EndsceneRet = Endscenehook + 0x5; PlaceJMP((PBYTE)Endscenehook, (DWORD)Endscene_Detour, 5);
Code:
Endscenehook = vTable[42] + 0x36; EndsceneRet = Endscenehook + 0x6; PlaceJMP((PBYTE)Endscenehook, (DWORD)Endscene_Detour, 6);
Skype: Lucasheer715
If the menu didn't freeze, I would have already imported Aimbot and ESP (BoxESP, BoneESP, HPESP) I'll have to find a fix soon. If you would like the project to be public you can always add me on skype then release it yourself for others XD