Function at 0x520b90
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 0x520bb6
call fcn.00596160
test al, al
je 0x520bc2
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x520bc2
call fcn.00596000
mov eax, dword [0x703adc]
xor ecx, ecx
cmp eax, ebx
mov edi, 1
je 0x520bd6
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 0x520c08
mov ecx, dword [esi + 0x18]
cmp ecx, 1
je 0x520bff
cmp ecx, 3
je 0x520bff
mov dword [esi + 0x18], 1
jmp 0x520c3a
mov dword [esi + 0x18], 3
jmp 0x520c3a
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 0x520c31
test bl, bl
js 0x520c31
mov dword [esi + 0x18], 2
jmp 0x520c38
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 0x520c71
mov eax, dword [esi + 0x20]
cmp eax, 1
je 0x520c68
cmp eax, 3
je 0x520c68
push ebx
mov dword [esi + 0x20], 1
call dword [sym.imp.user32.dll_ShowCursor]
jmp 0x520ca5
mov dword [esi + 0x20], 3
jmp 0x520ca5
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 0x520ca2
test dl, dl
js 0x520ca2
push 1
mov dword [esi + 0x20], 2
call dword [sym.imp.user32.dll_ShowCursor]
jmp 0x520ca5
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 0x520e1c
cmp dword [0x703c04], ebx
jne 0x520da1
fild dword [0x6f3564]
mov eax, dword [0x706454]
mov ecx, dword [0x706458]
mov dword [esp + 0xc], eax
fidiv dword [0x6f355c]
mov dword [esp + 0x10], ecx
fimul dword [esp + 0xc]
call fcn.005b8b18
fild dword [0x6f3568]
mov dword [esp + 0xc], eax
fidiv dword [0x6f3560]
fimul dword [esp + 0x10]
call fcn.005b8b18
lea edx, [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [0x703bfc]
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 [0x703bfc]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.user32.dll_ScreenToClient]
fild dword [0x6f355c]
fidiv dword [0x6f3564]
fimul dword [esp + 0x1c]
call fcn.005b8b18
fild dword [0x6f3560]
mov esi, eax
mov dword [esp + 0x1c], esi
fidiv dword [0x6f3568]
fimul dword [esp + 0x20]
call fcn.005b8b18
mov edi, dword [0x706454]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub esi, edi
mov dword [0x707208], esi
mov esi, dword [0x706458]
mov dword [esp + 0x20], eax
push ecx
sub eax, esi
push edx
mov dword [0x70720c], 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 [0x703bfc]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.user32.dll_ScreenToClient]
fild dword [0x6f355c]
fidiv dword [0x6f3564]
fimul dword [esp + 0x1c]
call fcn.005b8b18
fild dword [0x6f3560]
mov esi, eax
mov dword [esp + 0x1c], esi
fidiv dword [0x6f3568]
fimul dword [esp + 0x20]
call fcn.005b8b18
mov edx, dword [0x706458]
mov ecx, dword [0x706454]
mov dword [esp + 0x20], eax
push edx
sub esi, ecx
sub eax, edx
push ecx
mov dword [0x707208], esi
mov dword [0x70720c], 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 [0x703c04], ebx
jne 0x520e77
mov edx, dword [0x703bfc]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.user32.dll_ScreenToClient]
fild dword [0x6f355c]
fidiv dword [0x6f3564]
fimul dword [esp + 0x14]
call fcn.005b8b18
fild dword [0x6f3560]
mov edi, eax
mov dword [esp + 0x14], edi
fidiv dword [0x6f3568]
fimul dword [esp + 0x18]
call fcn.005b8b18
mov dword [esp + 0x18], eax
jmp 0x520e7b
mov edi, dword [esp + 0x14]
cmp edi, ebx
mov eax, dword [esp + 0x18]
mov dword [0x706454], edi
mov dword [0x706458], eax
jge 0x520ea4
mov dword [0x706454], ebx
cmp dword [esi + 0x18], ebx
je 0x520e9c
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x20], ebx
je 0x520ea4
mov dword [esi + 0x20], ebx
mov eax, dword [0x6f356c]
cmp dword [0x706454], eax
jle 0x520ec6
mov dword [0x706454], eax
cmp dword [esi + 0x18], ebx
je 0x520ebe
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x20], ebx
je 0x520ec6
mov dword [esi + 0x20], ebx
cmp dword [0x706458], ebx
jge 0x520ee4
mov dword [0x706458], ebx
cmp dword [esi + 0x18], ebx
je 0x520edc
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x20], ebx
je 0x520ee4
mov dword [esi + 0x20], ebx
mov ecx, dword [0x706458]
cmp ecx, dword [0x6f3570]
jle 0x520f25
cmp dword [0x703c04], ebx
je 0x520f15
mov ecx, dword [0x7034d4]
mov edx, dword [ecx]
push 0xc
call dword [edx + 4]
test al, al
je 0x520f15
mov eax, dword [0x6f3570]
mov dword [0x706458], eax
cmp dword [esi + 0x18], ebx
je 0x520f1d
mov dword [esi + 0x18], ebx
cmp dword [esi + 0x20], ebx
je 0x520f25
mov dword [esi + 0x20], ebx
pop edi
pop esi
pop ebx
add esp, 0x18
ret