Function at 0x4a8cb0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
call fcn.00470280
xor esi, esi
push 1
push esi
push esi
lea eax, [esp + 0x30]
push esi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4a8ce8
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0x40]
call fcn.00493ed0
cmp dword [0x5a2670], esi
je 0x4a8fd4
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x10], esi
mov eax, dword [0x5a2664]
mov ecx, dword [esp + 0x10]
add eax, esi
push eax
push ecx
call dword [sym.imp.WINMM.dll_joyGetPos]
test eax, eax
jne 0x4a8fbf
lea edx, [esp + 0x14]
push edx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [0x5a2664]
mov ecx, dword [0x5a2668]
mov eax, dword [edx + esi + 0xc]
and eax, 1
je 0x4a8db9
test byte [ecx + esi + 0xc], 1
jne 0x4a8db9
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
shl eax, 0x10
add eax, edx
push eax
push 0
push 0x201
push edi
call ebp
mov ecx, dword [0x5a2664]
mov edx, dword [0x5a2668]
add ecx, esi
add edx, esi
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
jmp 0x4a8e01
test eax, eax
jne 0x4a8e01
test byte [ecx + esi + 0xc], 1
je 0x4a8e01
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
shl edx, 0x10
add edx, ecx
push edx
push 0
push 0x202
push edi
call ebp
mov eax, dword [0x5a2664]
mov ecx, dword [0x5a2668]
add eax, esi
add ecx, esi
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 [0x5a2664]
mov eax, dword [ecx + esi + 0xc]
and eax, 2
je 0x4a8e34
mov edx, dword [0x5a2668]
test byte [edx + esi + 0xc], 2
jne 0x4a8e34
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
shl eax, 0x10
add eax, edx
push eax
push 0
push 0x204
jmp 0x4a8e5a
test eax, eax
jne 0x4a8e83
mov edx, dword [0x5a2668]
test byte [edx + esi + 0xc], 2
je 0x4a8e83
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
shl eax, 0x10
add eax, edx
push eax
push 0
push 0x205
push edi
call ebp
mov ecx, dword [0x5a2664]
mov edx, dword [0x5a2668]
add ecx, esi
add edx, esi
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x5a2664]
mov eax, dword [ecx + esi + 4]
cmp eax, 0x4000
jbe 0x4a8eb3
cmp eax, 0xc000
jae 0x4a8eb3
mov eax, dword [ecx + esi]
cmp eax, 0x4000
jbe 0x4a8eb3
cmp eax, 0xc000
jae 0x4a8eb3
mov eax, 1
jmp 0x4a8ec8
mov eax, dword [0x56cfb4]
inc eax
cmp eax, 0x50
mov dword [0x56cfb4], eax
jle 0x4a8ecd
mov eax, 0x50
mov dword [0x56cfb4], eax
cmp dword [ecx + esi], 0xc000
jbe 0x4a8f01
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
push edx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, edi
mov edi, dword [sym.imp.USER32.dll_SetCursorPos]
push eax
call edi
lea eax, [esp + 0x14]
push eax
call ebx
mov eax, dword [0x56cfb4]
jmp 0x4a8f07
mov edi, dword [sym.imp.USER32.dll_SetCursorPos]
mov ecx, dword [0x5a2664]
cmp dword [ecx + esi], 0x4000
jae 0x4a8f39
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
cdq
and edx, 7
add eax, edx
sar eax, 3
sub ecx, eax
push ecx
call edi
lea edx, [esp + 0x14]
push edx
call ebx
mov eax, dword [0x56cfb4]
mov ecx, dword [0x5a2664]
cmp dword [ecx + esi + 4], 0xc000
jbe 0x4a8f6c
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x18]
sar eax, 3
add eax, edx
mov edx, dword [esp + 0x14]
push eax
push edx
call edi
lea eax, [esp + 0x14]
push eax
call ebx
mov eax, dword [0x56cfb4]
mov ecx, dword [0x5a2664]
cmp dword [ecx + esi + 4], 0x4000
jae 0x4a8f9a
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x18]
sar eax, 3
sub edx, eax
mov eax, dword [esp + 0x14]
push edx
push eax
call edi
lea ecx, [esp + 0x14]
push ecx
call ebx
mov edx, dword [0x5a2664]
mov eax, dword [0x5a2668]
add edx, esi
add eax, esi
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x10]
add esi, 0x10
inc edx
cmp esi, 0x10
mov dword [esp + 0x10], edx
jl 0x4a8d0d
lea ecx, [esp + 0x40]
call fcn.00493f30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret