Function at 0x509f98
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 8]
xor ecx, ecx
mov dword [edx + 0xc], ecx
mov eax, dword [eax + 8]
cmp eax, 0xffffff97
jg 0x509fe4
je 0x50a0ce
sub eax, 0xffffff63
je 0x50a24b
sub eax, 0x2e
je 0x50a19e
sub eax, 2
je 0x50a19e
jmp 0x50a240
sub eax, 0xffffff9b
je 0x50a074
dec eax
je 0x509ffe
sub eax, 0x5f
je 0x50a1b8
jmp 0x50a240
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0044c5e0
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 8]
mov edx, dword [ebp - 4]
cmp byte [edx + 0x274], 0
je 0x50a24b
mov eax, dword [ebx + 0x14]
cmp eax, 0x2000
je 0x50a034
cmp eax, 0x1000
jne 0x50a24b
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.0044a484
mov edx, eax
cmp dword [ebx + 0x14], 0x2000
sete cl
mov eax, dword [ebp - 4]
mov si, 0xffa9
call fcn.004036e4
test al, al
jne 0x50a24b
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
jmp 0x50a24b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0044c5e0
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 8]
mov edx, dword [ebp - 4]
cmp byte [edx + 0x274], 0
je 0x50a24b
mov eax, dword [ebx + 0x14]
cmp eax, 0x2000
je 0x50a0aa
cmp eax, 0x1000
jne 0x50a24b
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.0044a484
mov edx, eax
mov eax, dword [ebp - 4]
mov si, 0xffaa
call fcn.004036e4
jmp 0x50a24b
mov eax, dword [ebp - 4]
cmp byte [eax + 0x382], 0
jne 0x50a18e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x27a], 0
je 0x50a18e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x215], 3
jne 0x50a18e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x381], 0
jne 0x50a18e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.0044a484
mov ebx, eax
lea ecx, [ebp - 0x20]
mov dl, 2
mov eax, ebx
call fcn.0044a2e8
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_GetCursorPos
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00461e4c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x50a17f
mov edx, ebx
mov eax, dword [ebp - 4]
mov si, 0xffb2
call fcn.004036e4
test al, al
jne 0x50a24b
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], 1
jmp 0x50a24b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0044c5e0
jmp 0x50a24b
mov eax, dword [ebp - 4]
mov byte [eax + 0x3d1], 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0044c5e0
jmp 0x50a24b
lea eax, [ebp - 0x10]
push eax
call sub.user32.dll_GetCursorPos
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00461e4c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0044dbb4
test al, 8
je 0x50a1f7
mov eax, dword [ebp - 4]
mov byte [eax + 0x3f8], 1
xor eax, eax
push ebp
push 0x50a22c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov si, 0xffa8
call fcn.004036e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50a233
mov eax, dword [ebp - 4]
mov byte [eax + 0x3f8], 0
ret
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0044c5e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret