My old Midfunction Hook

Posts 115 of 31 · Page 1 of 3
My old Midfunction Hook
This is my old midfunction hook that I used for Combat Arms, all you have to do is update the addresses. It shouldn't be too hard. This is not copy & paste shit. I am releasing this because I am done with CA. I play legit now. I will not be answering questions about this. Naked ftw? Credits are at bottom.

Globals
Code:
DWORD dwES_HOOK = 0x57341E;
DWORD dwES_RESTORE = dwES_HOOK+0x5;

DWORD dwRES_HOOK = 0x570E4E;
DWORD dwRES_RESTORE = dwRES_HOOK+0x7; 

DWORD dwPRES_HOOK = 0x65B316;
DWORD dwPRES_RESTORE = dwPRES_HOOK+0x5;
Present
Code:
__declspec( naked ) void Present_Hook( )
{
	_asm
	{
		MOV ECX, DWORD PTR DS:[EAX]
		MOV EDX, DWORD PTR DS:[ECX+0x44]
		PUSHAD
	}

	//call your shit here

	_asm
	{
		POPAD
		JMP[ dwPRES_RESTORE ]
	}
}
Reset
Code:
_declspec( naked ) void Reset_Hook( )
{
	_asm
	{
		MOV ECX, DWORD PTR DS:[EAX]
		MOV EDX, DWORD PTR DS:[ECX+0x40]
		PUSHAD
	}

	main->OnLostDevice( );

	_asm 
	{
		POPAD 
		CALL EDX
		PUSHAD
	}

	main->OnResetDevice( ); 

	_asm
	{
		POPAD
		JMP[ dwRES_RESTORE ]
	}
}
Credits
Code:
Stephen
Gellin
S0biet
Shad0w_
btw, once you update the addresses, your gonna wanna detour your Reset and Present addies. :P
Thanks a ton!
Good luck updating the addies niggas
WHAT THE FUCK DID YOU SAY
Quote Originally Posted by whit View Post
Good luck updating the addies niggas
WHAT THE HELL DID YOU SAY?
Quote Originally Posted by yoyoman4567 View Post
WHAT THE HELL DID YOU SAY?
he said.......
Good luck updating the addies niggas
Quote Originally Posted by yoyoman4567 View Post
WHAT THE HELL DID YOU SAY?
You quoted him. Most retarded troll of the everness. You have 140 posts, whitty has idfk but alot more than you. Learn to respect your senior trolls noob.
Code:
__declspec( naked ) void Endscene_Hook( )
{
	_asm
	{
		MOV ECX, DWORD PTR DS:[EAX]
		MOV EDX, DWORD PTR DS:[ECX+0xA8]
		PUSHAD
	}

	//d3dstuff

	_asm
	{
		POPAD
		JMP[ dwES_RESTORE ]
	}
}
correct?
Quote Originally Posted by kotentopf View Post
Code:
__declspec( naked ) void Endscene_Hook( )
{
	_asm
	{
		MOV ECX, DWORD PTR DS:[EAX]
		MOV EDX, DWORD PTR DS:[ECX+0xA8]
		PUSHAD
	}

	//d3dstuff

	_asm
	{
		POPAD
		JMP[ dwES_RESTORE ]
	}
}
correct?
Code:
__declspec( naked ) void EndScene_Hook()
	{
		_asm
		{
			MOV DWORD PTR SS:[EBP-0x10], EAX
			XOR EAX, EAX
			PUSHAD
		}
		_asm
		{
			POPAD
			JMP[ dwES_RESTORE]
		}
	}
Quote Originally Posted by Stephen View Post


Code:
__declspec( naked ) void EndScene_Hook()
	{
		_asm
		{
			MOV DWORD PTR SS:[EBP-0x10], EAX
			XOR EAX, EAX
			PUSHAD
		}
		_asm
		{
			POPAD
			JMP[ dwES_RESTORE]
		}
	}
this is not engine.exe, this is d3d9.dll(im not 100% sure)
Quote Originally Posted by kotentopf View Post
Code:
__declspec( naked ) void Endscene_Hook( )
{
	_asm
	{
		MOV ECX, DWORD PTR DS:[EAX]
		MOV EDX, DWORD PTR DS:[ECX+0xA8]
		PUSHAD
	}

	//d3dstuff

	_asm
	{
		POPAD
		JMP[ dwES_RESTORE ]
	}
}
correct?
make sure u have the right opcode and detoru fuc or it will crash
You mean the ones that gellin made that were released already?
Quote Originally Posted by mmbob View Post
You mean the ones that gellin made that were released already?
he did? Lol I didn't even know.
dose this hook even work?
Have fun are d/cing guise jajjaj
I could of swore Gellin said this was detected but idk
Posts 115 of 31 · Page 1 of 3
This thread is closed for replies.

Tags for this Thread

None

Need help?