Function at 0x499eac
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 0x49a271
lea eax, [ebp - 0x88]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402db4
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.00419e84
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 6
jne 0x499f35
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.004a5128
mov byte [ebp - 0x21], al
jmp 0x499f6c
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 7
jne 0x499f6c
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.004a5128
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
je 0x49a271
cmp dword [ebp - 0x28], 0
jne 0x499f8a
mov eax, dword [ebp - 0x19]
sub eax, dword [ebp - 0x84]
mov dword [ebp - 0x34], eax
jmp 0x499f93
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 0x49a271
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x6c]
jg 0x49a271
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 0x49a25e
mov eax, dword [ebp - 0xa1]
sub eax, 0xa0
je 0x49a07f
sub eax, 2
je 0x49a20c
sub eax, 0x15e
je 0x49a07f
sub eax, 2
je 0x49a20c
jmp 0x49a246
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 0x49a0b4
mov eax, dword [ebp - 0x44]
add eax, dword [ebp - 0x15]
sub eax, dword [ebp - 0xd]
mov dword [ebp - 0x48], eax
jmp 0x49a0c0
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 0x49a0cb
xor eax, eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0xb8], 0
jne 0x49a128
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x48]
jge 0x49a0e8
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 0x49a1ac
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x34], eax
jmp 0x49a1ac
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x48]
jge 0x49a13d
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 0x49a198
cmp eax, dword [esp]
pop edx
pop eax
ja 0x49a1ac
jmp 0x49a19c
pop edx
pop eax
jg 0x49a1ac
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 0x49a1c0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x38]
je 0x49a204
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.004073cc
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 0x49a25e
mov byte [ebp - 0x2d], 0
push 0
mov dx, word [ebp - 0x34]
mov ax, 4
call fcn.004073cc
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 0x49a25e
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 0x49a038
call sub.user32.dll_ReleaseCapture
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret