Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ENABLE]
- alloc(YHook,100)
- alloc(XHook,120)
- alloc(VacX,8)
- alloc(VacY,8)
- label(CharpID)
- label(SaveXY)
- label(SkipSave)
- label(RetY)
- label(RetX)
- label(YCode)
- label(XCode)
- YHook:
- push eax
- call CharpID
- cmp esi,eax
- pop eax
- jne YCode
- mov eax,[VacY]
- jmp YCode
- XHook:
- call SaveXY
- push eax
- call CharpID
- cmp esi,eax
- pop eax
- jne XCode
- mov eax,[VacX]
- jmp XCode
- XCode:
- mov [ebx], eax
- mov edi,[ebp+10]
- jmp RetX
- YCode:
- mov [edi],eax
- mov ebx,[ebp+14]
- jmp RetY
- SaveXY:
- push eax
- mov eax,[00B349CC] //Mouse
- cmp dword ptr [eax+9b4],0c //Mouse Animation offset
- jne SkipSave
- mov eax,[eax+978] //Mouse Offset
- mov edx,[eax+84] //Mouse X Offset
- mov [VacX],edx
- mov edx,[eax+88] //Mouse Y Offset
- mov [VacY],edx
- SkipSave:
- pop eax
- ret
- CharpID:
- mov eax,[00B34628] //Char pID
- mov eax,[eax+11C4] //pID Offset
- ret
- 009644FF:
- jmp YHook
- RetY:
- 0096449A:
- jmp XHook
- RetX:
- [DISABLE]
- 009644FF:
- db 89 07 8B 5D 14
- 0096449A:
- db 89 03 8B 7D 10
- dealloc(YHook)
- dealloc(XHook)
- dealloc(VacX)
- dealloc(VacY)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement