Function at 0x4d9ed8
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc4
mov dword [esp], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_SetCapture
mov byte [esi + 0xa4], 1
lea eax, [esp + 0xc]
push eax
call sub.user32.dll_GetCursorPos
xor eax, eax
mov al, bl
lea eax, [eax + eax*4]
mov eax, dword [esi + eax*4 + 0x10c]
mov dword [esp + 0x18], eax
xor eax, eax
mov al, bl
mov edx, eax
shl eax, 3
sub eax, edx
mov eax, dword [esi + eax*4 + 0xbc]
mov dword [esp + 0x14], eax
push 1
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4da20e
mov eax, dword [esp + 0x24]
sub eax, 0xa0
je 0x4d9f6b
sub eax, 2
je 0x4da1c3
sub eax, 0x15e
je 0x4d9f6b
sub eax, 2
je 0x4da1c3
jmp 0x4da1fa
lea eax, [esp + 0x20]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [esp + 0x20]
push eax
call sub.user32.dll_DispatchMessageA
lea eax, [esp + 4]
push eax
call sub.user32.dll_GetCursorPos
cmp bl, 1
jne 0x4d9fa0
mov eax, dword [esp + 0x18]
add eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x4d9fb0
mov eax, dword [esp + 0x18]
add eax, dword [esp + 4]
sub eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
jge 0x4d9fbd
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov al, bl
mov ebp, eax
shl ebp, 3
sub ebp, eax
cmp dword [esi + ebp*4 + 0xb8], 0
jne 0x4da074
xor eax, eax
mov al, bl
lea eax, [eax + eax*4]
mov edx, dword [esi + eax*4 + 0x104]
sub edx, dword [esi + eax*4 + 0x108]
cmp edx, dword [esp + 0x1c]
jge 0x4da011
xor eax, eax
mov al, bl
lea eax, [eax + eax*4]
mov eax, dword [esi + eax*4 + 0x104]
xor edx, edx
mov dl, bl
lea edx, [edx + edx*4]
sub eax, dword [esi + edx*4 + 0x108]
mov dword [esp + 0x1c], eax
xor eax, eax
mov al, bl
lea eax, [eax + eax*4]
mov eax, dword [esi + eax*4 + 0x104]
xor edx, edx
mov dl, bl
lea edx, [edx + edx*4]
sub eax, dword [esi + edx*4 + 0x108]
push eax
mov eax, dword [esi + ebp*4 + 0xb4]
sub eax, dword [esi + ebp*4 + 0xb0]
push eax
mov eax, dword [esp + 0x24]
push eax
call sub.kernel32.dll_MulDiv
mov edi, eax
add edi, dword [esi + ebp*4 + 0xb0]
cmp edi, dword [esi + ebp*4 + 0xb4]
jle 0x4da124
xor eax, eax
mov al, bl
mov edx, eax
shl eax, 3
sub eax, edx
mov edi, dword [esi + eax*4 + 0xb4]
jmp 0x4da124
xor eax, eax
mov al, bl
lea eax, [eax + eax*4]
mov eax, dword [esi + eax*4 + 0x104]
cmp eax, dword [esp + 0x1c]
jge 0x4da09a
xor eax, eax
mov al, bl
lea eax, [eax + eax*4]
mov eax, dword [esi + eax*4 + 0x104]
mov dword [esp + 0x1c], eax
xor eax, eax
mov al, bl
lea eax, [eax + eax*4]
mov eax, dword [esi + eax*4 + 0x104]
push eax
mov eax, dword [esi + ebp*4 + 0xb4]
sub eax, dword [esi + ebp*4 + 0xb0]
push eax
mov eax, dword [esp + 0x24]
push eax
call sub.kernel32.dll_MulDiv
mov edi, eax
add edi, dword [esi + ebp*4 + 0xb0]
mov eax, edi
cdq
push edx
push eax
mov eax, dword [esi + ebp*4 + 0xb4]
cdq
push edx
push eax
mov eax, dword [esi + ebp*4 + 0xb8]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, dword [esp + 4]
jne 0x4da0fb
cmp eax, dword [esp]
pop edx
pop eax
ja 0x4da124
jmp 0x4da0ff
pop edx
pop eax
jg 0x4da124
xor eax, eax
mov al, bl
mov edx, eax
shl eax, 3
sub eax, edx
mov edi, dword [esi + eax*4 + 0xb4]
xor eax, eax
mov al, bl
mov edx, eax
shl eax, 3
sub eax, edx
sub edi, dword [esi + eax*4 + 0xb8]
inc edi
cmp edi, dword [esi + ebp*4 + 0xb0]
jge 0x4da13f
xor eax, eax
mov al, bl
mov edx, eax
shl eax, 3
sub eax, edx
mov edi, dword [esi + eax*4 + 0xb0]
cmp edi, dword [esp + 0x14]
je 0x4da1bd
mov dword [esi + ebp*4 + 0xac], 4
mov dword [esi + ebp*4 + 0xbc], edi
mov dword [esi + ebp*4 + 0xc0], edi
xor eax, eax
mov al, bl
lea eax, [eax + eax*4]
mov edx, dword [esp + 0x1c]
mov dword [esi + eax*4 + 0x10c], edx
cmp bl, 1
jne 0x4da18c
push 0
lea eax, [esi + ebp*4 + 0xa8]
push eax
push 1
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_SetScrollInfo
jmp 0x4da1a1
push 0
lea eax, [esi + ebp*4 + 0xa8]
push eax
push 0
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_SetScrollInfo
push 0
mov edx, edi
mov ax, 5
call fcn.00407eb0
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_SendMessageA
mov dword [esp + 0x14], edi
jmp 0x4da20e
mov byte [esi + 0xa4], 0
push 0
mov edx, edi
mov ax, 4
call fcn.00407eb0
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_SendMessageA
push 0
push 8
mov eax, dword [esp + 8]
push eax
mov eax, dword [esi + 0x4c]
push eax
call sub.user32.dll_PostMessageA
jmp 0x4da20e
lea eax, [esp + 0x20]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [esp + 0x20]
push eax
call sub.user32.dll_DispatchMessageA
cmp byte [esi + 0xa4], 0
jne 0x4d9f28
call sub.user32.dll_ReleaseCapture
add esp, 0x3c
pop ebp
pop edi
pop esi
pop ebx
ret