Function at 0x5316e0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ecx
mov ecx, dword [esi + 0xc]
xor ebx, ebx
cmp ecx, ebx
push edi
je 0x531706
call fcn.005aa210
test al, al
je 0x531712
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x531712
call fcn.005aa0b0
mov eax, dword [0x71991c]
xor ecx, ecx
cmp eax, ebx
mov edi, 1
je 0x531726
mov ecx, edi
xor edi, edi
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 4]
lea edx, [edx + edx*4]
lea edx, [eax + edx*4]
test byte [edx + ecx + 0x18], 0x80
je 0x531758
mov ecx, dword [esi + 0x18]
cmp ecx, 1
je 0x53174f
cmp ecx, 3
je 0x53174f
mov dword [esi + 0x18], 1
jmp 0x53178a
mov dword [esi + 0x18], 3
jmp 0x53178a
mov edx, dword [eax + 4]
lea edx, [edx + edx*4]
lea edx, [eax + edx*4]
mov bl, byte [edx + ecx + 0x18]
mov edx, dword [eax + 8]
lea edx, [edx + edx*4]
lea edx, [eax + edx*4]
cmp bl, byte [edx + ecx + 0x18]
je 0x531781
test bl, bl
js 0x531781
mov dword [esi + 0x18], 2
jmp 0x531788
mov dword [esi + 0x18], 0
xor ebx, ebx
mov ecx, dword [eax + 4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*4]
mov cl, byte [edx + edi + 0x18]
test cl, cl
jns 0x5317c1
mov eax, dword [esi + 0x20]
cmp eax, 1
je 0x5317b8
cmp eax, 3
je 0x5317b8
push ebx
mov dword [esi + 0x20], 1
call dword [sym.imp.USER32.dll_ShowCursor]
jmp 0x5317f5
mov dword [esi + 0x20], 3
jmp 0x5317f5
mov ecx, dword [eax + 4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*4]
mov ecx, dword [eax + 8]
mov dl, byte [edx + edi + 0x18]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
cmp dl, byte [eax + edi + 0x18]
je 0x5317f2
test dl, dl
js 0x5317f2
push 1
mov dword [esi + 0x20], 2
call dword [sym.imp.USER32.dll_ShowCursor]
jmp 0x5317f5
mov dword [esi + 0x20], ebx
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*4]
mov al, byte [edx + edi + 0x18]
test al, al
jns 0x53196c
cmp dword [0x719a44], ebx
jne 0x5318f1
fild dword [0x7085a4]
mov eax, dword [0x71c2a4]
mov ecx, dword [0x71c2a8]
mov dword [esp + 0xc], eax
fidiv dword [0x70859c]
mov dword [esp + 0x10], ecx
fimul dword [esp + 0xc]
call fcn.005cd414
fild dword [0x7085a8]
mov dword [esp + 0xc], eax
fidiv dword [0x7085a0]
fimul dword [esp + 0x10]
call fcn.005cd414
lea edx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [0x719a3c]
push edx
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x719a3c]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
fild dword [0x70859c]
fidiv dword [0x7085a4]
fimul dword [esp + 0x1c]
call fcn.005cd414
fild dword [0x7085a0]
mov esi, eax
mov dword [esp + 0x1c], esi
fidiv dword [0x7085a8]
fimul dword [esp + 0x20]
call fcn.005cd414
mov edi, dword [0x71c2a4]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub esi, edi
mov dword [0x71d058], esi
mov esi, dword [0x71c2a8]
mov dword [esp + 0x20], eax
push ecx
sub eax, esi
push edx
mov dword [0x71d05c], eax
call dword [sym.imp.USER32.dll_SetCursorPos]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x719a3c]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
fild dword [0x70859c]
fidiv dword [0x7085a4]
fimul dword [esp + 0x1c]
call fcn.005cd414
fild dword [0x7085a0]
mov esi, eax
mov dword [esp + 0x1c], esi
fidiv dword [0x7085a8]
fimul dword [esp + 0x20]
call fcn.005cd414
mov edx, dword [0x71c2a8]
mov ecx, dword [0x71c2a4]
mov dword [esp + 0x20], eax
push edx
sub esi, ecx
sub eax, edx
push ecx
mov dword [0x71d058], esi
mov dword [0x71d05c], eax
call dword [sym.imp.USER32.dll_SetCursorPos]
pop edi
pop esi
pop ebx
add esp, 0x18
ret
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
cmp dword [0x719a44], ebx
jne 0x5319c7
mov edx, dword [0x719a3c]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
fild dword [0x70859c]
fidiv dword [0x7085a4]
fimul dword [esp + 0x14]
call fcn.005cd414
fild dword [0x7085a0]
mov edi, eax
mov dword [esp + 0x14], edi
fidiv dword [0x7085a8]
fimul dword [esp + 0x18]
call fcn.005cd414
mov dword [esp + 0x18], eax
jmp 0x5319cb
mov edi, dword [esp + 0x14]
cmp edi, ebx
mov eax, dword [esp + 0x18]
mov dword [0x71c2a4], edi
mov dword [0x71c2a8], eax
jge 0x5319f4
mov dword [0x71c2a4], ebx
cmp dword [esi + 0x18], ebx
je 0x5319ec
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x20], ebx
je 0x5319f4
mov dword [esi + 0x20], ebx
mov eax, dword [0x7085ac]
cmp dword [0x71c2a4], eax
jle 0x531a16
mov dword [0x71c2a4], eax
cmp dword [esi + 0x18], ebx
je 0x531a0e
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x20], ebx
je 0x531a16
mov dword [esi + 0x20], ebx
cmp dword [0x71c2a8], ebx
jge 0x531a34
mov dword [0x71c2a8], ebx
cmp dword [esi + 0x18], ebx
je 0x531a2c
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x20], ebx
je 0x531a34
mov dword [esi + 0x20], ebx
mov ecx, dword [0x71c2a8]
cmp ecx, dword [0x7085b0]
jle 0x531a75
cmp dword [0x719a44], ebx
je 0x531a65
mov ecx, dword [0x7191d4]
mov edx, dword [ecx]
push 0xc
call dword [edx + 4]
test al, al
je 0x531a65
mov eax, dword [0x7085b0]
mov dword [0x71c2a8], eax
cmp dword [esi + 0x18], ebx
je 0x531a6d
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x20], ebx
je 0x531a75
mov dword [esi + 0x20], ebx
pop edi
pop esi
pop ebx
add esp, 0x18
ret