Function at 0x422140
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 4]
jge 0x4225b7
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + edx + 0x14]
cmp ecx, dword [ebp + 8]
jne 0x4225a9
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + edx + 0x150]
cmp ecx, 1
jne 0x4225a9
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + edx + 0x151]
test ecx, ecx
jne 0x4225a9
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0x40], ecx
cmp dword [ebp - 0x40], 0
je 0x4221e4
cmp dword [ebp - 0x40], 1
je 0x4222ea
cmp dword [ebp - 0x40], 3
je 0x422480
jmp 0x4225a9
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
cmp dword [eax + edx + 0x10], 0
jl 0x4222e3
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x558
mov edx, dword [ebp - 0x3c]
cmp dword [edx + ecx + 0x10], 1
jne 0x422255
mov eax, dword [ebp - 4]
imul eax, eax, 0x558
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + eax + 0x18], 0
jl 0x422228
mov al, 1
jmp 0x4225b9
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
mov dword [eax + edx + 0xc], 1
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x558
mov edx, dword [ebp - 0x3c]
mov dword [edx + ecx + 0x10], 0
jmp 0x4222e3
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
imul eax, eax, 0x558
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + eax + 0x18], 0
jl 0x4222bb
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 4]
jge 0x4222bb
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x558
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x3c]
mov ecx, dword [eax + ecx + 0x18]
cmp ecx, dword [esi + edx + 0x18]
jne 0x4222b0
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
mov dword [eax + edx + 0x10], 0
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x42226f
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
mov dword [eax + edx + 0xc], 2
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x558
mov edx, dword [ebp - 0x3c]
mov dword [edx + ecx + 0x10], 1
mov al, 1
jmp 0x4225b9
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x4c5778
call fcn.004010d0
push eax
call dword [sym.imp.user32.dll_ScreenToClient]
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + edx + 0x158]
push ecx
mov ecx, 0x2071bd8
call fcn.00401260
mov dword [ebp - 8], eax
fild dword [ebp - 0x18]
fstp dword [ebp - 0x10]
mov esi, dword [ebp - 4]
imul esi, esi, 0x558
push ecx
fldz
fstp dword [esp]
mov ecx, dword [ebp - 0x3c]
call fcn.00422e60
mov edx, dword [ebp - 0x3c]
fadd dword [edx + esi + 0x20]
fld dword [ebp - 0x10]
fcompp
fnstsw ax
test ah, 5
jp 0x42237b
mov esi, dword [ebp - 4]
imul esi, esi, 0x558
push ecx
fldz
fstp dword [esp]
mov ecx, dword [ebp - 0x3c]
call fcn.00422e60
mov eax, dword [ebp - 0x3c]
fadd dword [eax + esi + 0x20]
fstp dword [ebp - 0x10]
mov esi, dword [ebp - 4]
imul esi, esi, 0x558
push ecx
fldz
fstp dword [esp]
mov ecx, dword [ebp - 0x3c]
call fcn.00422e60
mov ecx, dword [ebp - 0x3c]
fadd dword [ecx + esi + 0x20]
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
fiadd dword [eax + edx + 0x28]
fld dword [ebp - 0x10]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4223ec
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x558
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
fild dword [eax + edx + 0x28]
mov edx, dword [ebp - 0x3c]
fadd dword [edx + ecx + 0x20]
push ecx
fldz
fstp dword [esp]
mov ecx, dword [ebp - 0x3c]
fstp qword [ebp - 0x48]
call fcn.00422e60
fadd qword [ebp - 0x48]
fstp dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
sub ecx, 1
shr ecx, 1
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], 0
fild qword [ebp - 0x50]
fsubr dword [ebp - 0x10]
fstp dword [ebp - 0x10]
push ecx
fld dword [ebp - 0x10]
fstp dword [esp]
mov ecx, dword [ebp - 0x3c]
call fcn.00422ea0
mov edx, dword [ebp - 8]
fstp dword [edx + 0x1c]
push ecx
fld dword [0x4b6230]
fstp dword [esp]
push ecx
fld dword [0x4b6230]
fstp dword [esp]
push ecx
fld dword [0x4b6230]
fstp dword [esp]
push ecx
fld dword [0x4b6230]
fstp dword [esp]
lea ecx, [ebp - 0x38]
call fcn.00401000
mov ecx, dword [ebp - 8]
add ecx, 0x2c
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, 0x2071bd8
call fcn.0040b750
mov al, 1
jmp 0x4225b9
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.user32.dll_GetCursorPos]
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x4c5778
call fcn.004010d0
push eax
call dword [sym.imp.user32.dll_ScreenToClient]
fild dword [ebp - 0x20]
fstp dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x558
mov edx, dword [ebp - 0x3c]
fld dword [edx + ecx + 0x24]
fld dword [ebp - 0x1c]
fcompp
fnstsw ax
test ah, 5
jp 0x4224d4
mov eax, dword [ebp - 4]
imul eax, eax, 0x558
mov ecx, dword [ebp - 0x3c]
fld dword [ecx + eax + 0x24]
fstp dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 4]
imul eax, eax, 0x558
mov ecx, dword [ebp - 0x3c]
fild dword [ecx + eax + 0x170]
mov eax, dword [ebp - 0x3c]
fadd dword [eax + edx + 0x24]
fld dword [ebp - 0x1c]
fcompp
fnstsw ax
test ah, 1
jne 0x42252f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x558
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
fild dword [eax + edx + 0x170]
mov edx, dword [ebp - 0x3c]
fadd dword [edx + ecx + 0x24]
fsub qword [0x4b6198]
fstp dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
imul eax, eax, 0x558
fld dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
fsub dword [ecx + eax + 0x24]
mov edx, dword [ebp - 4]
imul edx, edx, 0x558
mov eax, dword [ebp - 0x3c]
fild dword [eax + edx + 0x170]
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x558
mov edx, dword [ebp - 0x3c]
fidiv dword [edx + ecx + 0x168]
fdivp st(1)
call fcn.004857c0
add eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
imul eax, eax, 0x558
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + eax + 0x168]
sub edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0x558
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + eax + 0x14]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.00422740
mov al, 1
jmp 0x4225b9
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x422151
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4