Function at 0x4d6c08
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff64
mov esi, edx
mov edi, eax
xor ebx, ebx
cmp dword [esi + 4], 7
jne 0x4d7009
lea eax, [esp + 0x28]
xor ecx, ecx
mov edx, 0x3c
call fcn.0040316c
mov dword [esp + 0x28], 0x3c
lea ecx, [esp + 8]
movzx edx, word [esi + 0xa]
movzx eax, word [esi + 8]
call fcn.004185e4
mov eax, dword [esi + 4]
cmp eax, 6
jne 0x4d6c78
mov dword [esp + 0x10], 0x114
xor ebp, ebp
lea eax, [esp + 0x28]
push eax
mov ecx, 0xfffffffa
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x4c]
call fcn.004e0d9c
mov byte [esp + 0x14], al
jmp 0x4d6ca3
cmp eax, 7
jne 0x4d6ca3
mov dword [esp + 0x10], 0x115
mov ebp, 1
lea eax, [esp + 0x28]
push eax
mov ecx, 0xfffffffb
mov edx, dword [edi + 0x50]
mov eax, dword [edi + 0x4c]
call fcn.004e0d9c
mov byte [esp + 0x14], al
cmp byte [esp + 0x14], 0
je 0x4d7009
test ebp, ebp
jne 0x4d6cc3
mov esi, dword [esp + 8]
sub esi, dword [esp + 0x2c]
jno 0x4d6cc1
call fcn.00403738
jmp 0x4d6cd2
mov esi, dword [esp + 0xc]
sub esi, dword [esp + 0x30]
jno 0x4d6cd2
call fcn.00403738
cmp esi, dword [esp + 0x40]
jl 0x4d7009
cmp esi, dword [esp + 0x44]
jg 0x4d7009
mov eax, dword [edi + 0x50]
push eax
call sub.user32.dll_SetCapture
push esp
call sub.user32.dll_GetCursorPos
mov dword [esp + 0x80], 0x1c
mov dword [esp + 0x84], 0x17
lea eax, [esp + 0x80]
push eax
push ebp
mov eax, dword [edi + 0x50]
push eax
call sub.user32.dll_GetScrollInfo
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x40]
mov ebx, edx
mov eax, dword [edi + 0x9c]
sub ebx, eax
jno 0x4d6d39
call fcn.00403738
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
jno 0x4d6d50
call fcn.00403738
imul eax, eax, 2
jno 0x4d6d5a
call fcn.00403738
sub ecx, eax
jno 0x4d6d63
call fcn.00403738
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x44]
sub eax, edx
jno 0x4d6d74
call fcn.00403738
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x50]
push eax
call sub.user32.dll_SetCapture
mov bl, 1
push 1
push 0
push 0
push 0
lea eax, [esp + 0x74]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4d6ffa
mov eax, dword [esp + 0x68]
sub eax, 0xa0
je 0x4d6dc6
sub eax, 2
je 0x4d6fb4
sub eax, 0x15e
je 0x4d6dc6
sub eax, 2
je 0x4d6fb4
jmp 0x4d6fe6
lea eax, [esp + 0x64]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [esp + 0x64]
push eax
call sub.user32.dll_DispatchMessageA
lea eax, [esp + 8]
push eax
call sub.user32.dll_GetCursorPos
cmp ebp, 1
jne 0x4d6e05
mov esi, dword [esp + 0x24]
add esi, dword [esp + 0xc]
jno 0x4d6df8
call fcn.00403738
sub esi, dword [esp + 4]
jno 0x4d6e03
call fcn.00403738
jmp 0x4d6e1e
mov esi, dword [esp + 0x24]
add esi, dword [esp + 8]
jno 0x4d6e14
call fcn.00403738
sub esi, dword [esp]
jno 0x4d6e1e
call fcn.00403738
test esi, esi
jge 0x4d6e24
xor esi, esi
cmp dword [esp + 0x90], 0
jne 0x4d6e8a
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
jno 0x4d6e3d
call fcn.00403738
cmp esi, eax
jle 0x4d6e43
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x8c]
jno 0x4d6e5d
call fcn.00403738
push eax
push esi
call sub.kernel32.dll_MulDiv
add eax, dword [esp + 0x88]
jno 0x4d6e72
call fcn.00403738
mov esi, eax
mov eax, dword [esp + 0x8c]
cmp esi, eax
jle 0x4d6f66
mov esi, eax
jmp 0x4d6f66
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
jno 0x4d6e99
call fcn.00403738
cmp esi, eax
jle 0x4d6eb6
mov esi, dword [esp + 0x20]
sub esi, dword [esp + 0x18]
jno 0x4d6eac
call fcn.00403738
add esi, 1
jno 0x4d6eb6
call fcn.00403738
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
jno 0x4d6ec5
call fcn.00403738
push eax
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x8c]
jno 0x4d6edb
call fcn.00403738
cdq
push edx
push eax
mov eax, dword [esp + 0x9c]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push eax
push esi
call sub.kernel32.dll_MulDiv
add eax, dword [esp + 0x88]
jno 0x4d6f05
call fcn.00403738
mov esi, eax
mov eax, esi
cdq
push edx
push eax
mov eax, dword [esp + 0x94]
cdq
push edx
push eax
mov eax, dword [esp + 0xa0]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, dword [esp + 4]
jne 0x4d6f37
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4d6f66
jmp 0x4d6f3b
pop edx
pop eax
jg 0x4d6f66
mov eax, dword [esp + 0x8c]
cdq
push edx
push eax
mov eax, dword [esp + 0x98]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
add eax, 1
adc edx, 0
jno 0x4d6f64
call fcn.00403738
mov esi, eax
mov eax, dword [esp + 0x88]
cmp esi, eax
jge 0x4d6f73
mov esi, eax
cmp esi, dword [esp + 0x1c]
je 0x4d6fae
mov dword [esp + 0x84], 4
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
push 0
mov edx, esi
mov ax, 5
call fcn.004079f8
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [edi + 0x50]
push eax
call sub.user32.dll_SendMessageA
mov dword [esp + 0x1c], esi
jmp 0x4d6ffa
xor ebx, ebx
push 0
mov edx, esi
mov ax, 4
call fcn.004079f8
push eax
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [edi + 0x50]
push eax
call sub.user32.dll_SendMessageA
push 0
push 8
mov eax, dword [esp + 0x18]
push eax
mov eax, dword [edi + 0x50]
push eax
call sub.user32.dll_PostMessageA
jmp 0x4d6ffa
lea eax, [esp + 0x64]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [esp + 0x64]
push eax
call sub.user32.dll_DispatchMessageA
test bl, bl
jne 0x4d6d83
call sub.user32.dll_ReleaseCapture
mov bl, 1
mov eax, ebx
add esp, 0x9c
pop ebp
pop edi
pop esi
pop ebx
ret