Function at 0x4ecbf4
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 0x4ecf39
lea eax, [esp + 0x28]
xor ecx, ecx
mov edx, 0x3c
call fcn.0040328c
mov dword [esp + 0x28], 0x3c
lea ecx, [esp + 8]
movzx edx, word [esi + 0xa]
movzx eax, word [esi + 8]
call fcn.0041ddec
mov eax, dword [esi + 4]
cmp eax, 6
jne 0x4ecc64
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.00503460
mov byte [esp + 0x14], al
jmp 0x4ecc8f
cmp eax, 7
jne 0x4ecc8f
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.00503460
mov byte [esp + 0x14], al
cmp byte [esp + 0x14], 0
je 0x4ecf39
test ebp, ebp
jne 0x4ecca8
mov esi, dword [esp + 8]
sub esi, dword [esp + 0x2c]
jmp 0x4eccb0
mov esi, dword [esp + 0xc]
sub esi, dword [esp + 0x30]
cmp esi, dword [esp + 0x40]
jl 0x4ecf39
cmp esi, dword [esp + 0x44]
jg 0x4ecf39
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
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x30]
add eax, eax
sub ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x44]
sub eax, edx
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 0x4ecf2a
mov eax, dword [esp + 0x68]
sub eax, 0xa0
je 0x4ecd80
sub eax, 2
je 0x4ecee4
sub eax, 0x15e
je 0x4ecd80
sub eax, 2
je 0x4ecee4
jmp 0x4ecf16
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 0x4ecdb1
mov esi, dword [esp + 0x24]
add esi, dword [esp + 0xc]
sub esi, dword [esp + 4]
jmp 0x4ecdbc
mov esi, dword [esp + 0x24]
add esi, dword [esp + 8]
sub esi, dword [esp]
test esi, esi
jge 0x4ecdc2
xor esi, esi
cmp dword [esp + 0x90], 0
jne 0x4ece13
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cmp esi, eax
jle 0x4ecdda
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x8c]
push eax
push esi
call sub.KERNEL32.DLL_MulDiv
add eax, dword [esp + 0x88]
mov esi, eax
mov eax, dword [esp + 0x8c]
cmp esi, eax
jle 0x4ece96
mov esi, eax
jmp 0x4ece96
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cmp esi, eax
jle 0x4ece28
mov esi, dword [esp + 0x20]
sub esi, dword [esp + 0x18]
inc esi
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x8c]
sub eax, dword [esp + 0x94]
push eax
push esi
call sub.KERNEL32.DLL_MulDiv
add eax, dword [esp + 0x88]
mov esi, eax
mov eax, esi
cdq
push edx
push eax
mov ecx, dword [esp + 0x94]
mov eax, ecx
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 0x4ece88
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4ece96
jmp 0x4ece8c
pop edx
pop eax
jg 0x4ece96
mov esi, ecx
sub esi, dword [esp + 0x90]
inc esi
mov eax, dword [esp + 0x88]
cmp esi, eax
jge 0x4ecea3
mov esi, eax
cmp esi, dword [esp + 0x1c]
je 0x4ecede
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.004082b0
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 0x4ecf2a
xor ebx, ebx
push 0
mov edx, esi
mov ax, 4
call fcn.004082b0
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 0x4ecf2a
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 0x4ecd3d
call sub.USER32.DLL_ReleaseCapture
mov bl, 1
mov eax, ebx
add esp, 0x9c
pop ebp
pop edi
pop esi
pop ebx
ret