Function at 0x4e8940
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x1395c], edi
je 0x4e8999
cmp dword [esi + 0x13968], edi
je 0x4e8999
mov eax, dword [esi + 0x13964]
mov dword [esi + 0x1396c], 1
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x1395c]
push 0xbb8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4e8993
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov dword [esi + 0x13968], edi
mov eax, dword [esi + 0x1395c]
cmp eax, edi
je 0x4e89b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1395c], edi
mov ebx, dword [esp + 0x20]
mov edi, dword [esi + 0x30]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
test bl, 8
je 0x4e89e1
push 0
mov ecx, ebp
call fcn.004e0fc0
mov ecx, ebp
call fcn.004e02a0
test eax, eax
je 0x4e89e1
push 0
mov ecx, ebp
call fcn.004e1280
cmp ebp, edi
jne 0x4e89fd
shr ebx, 2
and ebx, 1
pop edi
mov dword [esi + 0x34], ebx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
test edi, edi
je 0x4e8a47
mov edx, dword [esi + 0x13918]
mov ecx, edi
push edx
call fcn.004e07c0
test eax, eax
je 0x4e8a47
mov eax, dword [esi + 0x50]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0xf
mov edi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [esi + 0x50]
push edi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x10]
lea edx, [esi + 0x13940]
mov dword [esi + 0x30], ebp
push edx
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov ecx, 0x7fff
xor eax, eax
mov dword [esi + 0x1393c], ecx
mov dword [esi + 0x13938], ecx
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x13934], eax
cmp ecx, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x1390c], eax
mov dword [esi + 0x13918], eax
je 0x4e8aa5
mov edx, dword [esp + 0x24]
cmp edx, eax
jl 0x4e8a97
push edx
call fcn.004e1280
mov ecx, dword [esi + 0x30]
call fcn.004e1480
mov dword [esi + 0x13918], eax
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 0x50]
jne 0x4e8ab6
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x50]
push 1
push eax
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x4e8ad3
test edi, edi
je 0x4e8ad3
push 0
mov ecx, edi
call fcn.004e1280
mov eax, ebx
and eax, 2
mov dword [esp + 0x20], eax
jne 0x4e8aec
mov ecx, dword [esi + 0x50]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
test ebp, ebp
je 0x4e8b08
mov ecx, ebp
call fcn.004dfde0
test eax, eax
jne 0x4e8b08
push 0xffffffffffffffff
mov ecx, ebp
call fcn.004e0f80
test eax, eax
je 0x4e8b2a
mov ecx, esi
call fcn.004e9460
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetCursorPos]
xor ebp, ebp
cmp edi, ebp
je 0x4e8b3d
test bl, 1
jne 0x4e8b3d
push ebp
mov ecx, edi
call fcn.004e0fc0
cmp dword [esi + 0x34], ebp
je 0x4e8b56
cmp edi, ebp
je 0x4e8b56
mov ecx, edi
call fcn.004df1c0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
shr ebx, 2
lea edx, [esp + 0x10]
and ebx, 1
push edx
mov dword [esi + 0x34], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [esp + 0x20], ebp
jne 0x4e8b8a
mov edx, dword [esi + 0x50]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x13910], ebp
je 0x4e8bd5
mov ecx, dword [esi + 0x30]
cmp ecx, ebp
je 0x4e8bd5
call fcn.004e02a0
test eax, eax
je 0x4e8bd5
mov ecx, dword [esi + 0x30]
push ebp
call fcn.004e0320
cmp eax, ebp
je 0x4e8bd5
mov dword [esi + 0x13918], ebp
mov eax, dword [eax + 0x3c]
cmp eax, ebp
jne 0x4e8bc1
mov eax, 0x64
push ebp
push eax
mov eax, dword [esi + 0x50]
push 1
push eax
mov dword [esi + 0x1390c], ebp
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc