Function at 0x539120
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 7
jne 0x5394e5
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402f00
mov dword [ebp - 0x88], 0x3c
lea ecx, [ebp - 0x19]
mov edx, dword [ebp - 8]
movzx edx, word [edx + 0xa]
mov eax, dword [ebp - 8]
movzx eax, word [eax + 8]
call fcn.0041cbe0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 6
jne 0x5391a9
mov dword [ebp - 0x20], 0x114
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x88]
push eax
mov ecx, 0xfffffffa
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.00544838
mov byte [ebp - 0x21], al
jmp 0x5391e0
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 7
jne 0x5391e0
mov dword [ebp - 0x20], 0x115
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x88]
push eax
mov ecx, 0xfffffffb
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.00544838
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
je 0x5394e5
cmp dword [ebp - 0x28], 0
jne 0x5391fe
mov eax, dword [ebp - 0x19]
sub eax, dword [ebp - 0x84]
mov dword [ebp - 0x34], eax
jmp 0x539207
mov eax, dword [ebp - 0x15]
sub eax, dword [ebp - 0x80]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x70]
jl 0x5394e5
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x6c]
jg 0x5394e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
call sub.user32.dll_SetCapture
lea eax, [ebp - 0x11]
push eax
call sub.user32.dll_GetCursorPos
mov dword [ebp - 0xc8], 0x1c
mov dword [ebp - 0xc4], 0x17
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
call sub.user32.dll_GetScrollInfo
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x9c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x78]
sub eax, dword [ebp - 0x80]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x9c]
add edx, edx
sub eax, edx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x70]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
call sub.user32.dll_SetCapture
mov byte [ebp - 0x2d], 1
push 1
push 0
push 0
push 0
lea eax, [ebp - 0xa5]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x5394d2
mov eax, dword [ebp - 0xa1]
sub eax, 0xa0
je 0x5392f3
sub eax, 2
je 0x539480
sub eax, 0x15e
je 0x5392f3
sub eax, 2
je 0x539480
jmp 0x5394ba
lea eax, [ebp - 0xa5]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0xa5]
push eax
call sub.user32.dll_DispatchMessageA
lea eax, [ebp - 0x19]
push eax
call sub.user32.dll_GetCursorPos
cmp dword [ebp - 0x28], 1
jne 0x539328
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x15]
sub eax, dword [ebp - 0xd]
mov dword [ebp - 0x48], eax
jmp 0x539334
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x19]
sub eax, dword [ebp - 0x11]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jge 0x53933f
xor eax, eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0xb8], 0
jne 0x53939c
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x48]
jge 0x53935c
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0xbc]
sub eax, dword [ebp - 0xc0]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.kernel32.dll_MulDiv
add eax, dword [ebp - 0xc0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0xbc]
jle 0x539420
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x34], eax
jmp 0x539420
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x48]
jge 0x5393b1
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xbc]
sub eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0xb8]
push eax
mov eax, dword [ebp - 0x48]
push eax
call sub.kernel32.dll_MulDiv
add eax, dword [ebp - 0xc0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cdq
push edx
push eax
mov eax, dword [ebp - 0xbc]
cdq
push edx
push eax
mov eax, dword [ebp - 0xb8]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, dword [esp + 4]
jne 0x53940c
cmp eax, dword [esp]
pop edx
pop eax
ja 0x539420
jmp 0x539410
pop edx
pop eax
jg 0x539420
mov eax, dword [ebp - 0xbc]
sub eax, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0xc0]
jge 0x539434
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x38]
je 0x539478
mov dword [ebp - 0xc4], 4
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xb0], eax
push 0
mov dx, word [ebp - 0x34]
mov ax, 5
call fcn.004079e0
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
jmp 0x5394d2
mov byte [ebp - 0x2d], 0
push 0
mov dx, word [ebp - 0x34]
mov ax, 4
call fcn.004079e0
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
call sub.user32.dll_SendMessageA
push 0
push 8
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
call sub.user32.dll_PostMessageA
jmp 0x5394d2
lea eax, [ebp - 0xa5]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0xa5]
push eax
call sub.user32.dll_DispatchMessageA
cmp byte [ebp - 0x2d], 0
jne 0x5392ac
call sub.user32.dll_ReleaseCapture
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret