bSendPacket Access using __asm{}

Posts 1–4 of 4 · Page 1 of 1
bSendPacket Access using __asm{}
Internally, when in my createmove func. i wanna access bSendPacket. exept... it crashes my game when i do so. i dont have time to learn assembly atm so could somebody please help me. i am using a small amount of code from Cohibahook in the __asm part of the createmove hook.


exept i crash.
when i use it.

can someone please help.

this is what i have

__asm
{
MOV bSendPacket, BL
PUSH EBP
MOV EBP, ESP
SUB ESP, 8
PUSHAD
} at start.

__asm
{
POPAD
MOV BL, bSendPacket
MOV ESP, EBP
POP EBP
RETN 0x0C
} at end


any help would be appreciated. im probably a fucking noob. mind english i am failing english classes
Quote Originally Posted by GreenMelon2.0 View Post
Internally, when in my createmove func. i wanna access bSendPacket. exept... it crashes my game when i do so. i dont have time to learn assembly atm so could somebody please help me. i am using a small amount of code from Cohibahook in the __asm part of the createmove hook.


exept i crash.
when i use it.

can someone please help.

this is what i have

__asm
{
MOV bSendPacket, BL
PUSH EBP
MOV EBP, ESP
SUB ESP, 8
PUSHAD
} at start.

__asm
{
POPAD
MOV BL, bSendPacket
MOV ESP, EBP
POP EBP
RETN 0x0C
} at end


any help would be appreciated. im probably a fucking noob. mind english i am failing english classes
Code:
void __declspec(naked) __fastcall hkCreateMove(CInput* thisptr, void* _EAX, int sequence_number, float input_sample_frametime, bool active)
{
	__asm
	{
		mov     bSendPacket, bl
		push    ebp
		mov     ebp, esp
		sub     esp, 8
		pusha
		push	[ebp + 10h]
		push	[ebp + 0Ch]
		push	[ebp + 08h]
		call    dwOrigCreateMove
	}

	// Call new createmove function here to do aimbot, esp etc etc

	__asm
	{
		popa
		mov     bl, bSendPacket
		mov     esp, ebp
		pop     ebp
		retn    0Ch
	}
}
This should lead you in the right direction.
Seems this has been solved.

/Closed.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us