Function at 0x4ce2d0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, edx
cmp ebx, 0x10
push esi
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], ecx
jne 0x4ce2f9
xor edx, edx
mov ecx, 0x8e
call fcn.004d5c10
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x4ce304
mov eax, dword [0x598b88]
mov dword [esp + 0x14], eax
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4ce35f
mov ecx, dword [0x599000]
call fcn.004dbea0
test eax, eax
jne 0x4ce323
call fcn.004dbf30
mov dword [0x599000], eax
cmp dword [0x599000], edi
je 0x4ce35f
mov dword [0x589a98], ebx
call dword [sym.imp.USER32.dll_GetFocus]
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x20], esi
jle 0x4ce35f
mov ecx, dword [0x5a1b00]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
cmp ebx, edi
jne 0x4ce36a
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret 4
push ebp
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, 0xf
mov dword [esp + 0x28], eax
call fcn.005382b0
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetMenuCheckMarkDimensions]
test esi, esi
movzx ebp, ax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
jle 0x4ce417
mov edx, dword [esp + 0x18]
push 0x400
push 0x62
push 0x5990e0
push edi
push edx
call dword [sym.imp.USER32.dll_GetMenuStringA]
test eax, eax
jg 0x4ce3d3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x4ce412
push eax
mov edx, 0x5990e0
mov ecx, ebx
call fcn.004f8fc0
mov esi, eax
mov eax, dword [esp + 0x18]
push edi
push eax
add esi, ebp
call dword [sym.imp.USER32.dll_GetSubMenu]
test eax, eax
je 0x4ce3f6
add esi, ebp
cmp esi, dword [esp + 0x1c]
jle 0x4ce400
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
add eax, ecx
mov dword [esp + 0x14], eax
inc edi
cmp edi, esi
jl 0x4ce3a2
mov edx, dword [esp + 0x28]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x5a1b00]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x50]
add ebx, 0xa
lea eax, [esp + 0x34]
movzx ecx, si
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x30]
mov edx, esi
push eax
shr edx, 0x10
push ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x5a1b08]
test eax, eax
mov dword [esp + 0x28], 0
jne 0x4ce48a
mov ecx, dword [0x5a1b00]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0x5a1b00]
push edx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, ebx
call fcn.005366c0
mov ebp, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff6
cmp eax, 0x12
mov dword [esp + 0x50], ebp
ja case.0x4ce4ae.11
movzx eax, byte [eax + 0x4ce77c]
jmp dword [eax*4 + 0x4ce770]
mov edx, dword [0x5a0f50]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x3c]
mov edx, dword [0x5a11a4]
mov eax, dword [esp + 0x48]
add edx, ecx
push 0
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], edx
add eax, 0xfffffffe
push ecx
mov ecx, dword [0x5a0f50]
lea edx, [esp + 0x3c]
mov dword [esp + 0x40], eax
call fcn.004dbcc0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
lea eax, [ecx + edx]
mov edx, dword [esp + 0x44]
cmp eax, edx
jle 0x4ce520
dec ecx
dec eax
cmp eax, edx
jg 0x4ce516
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jge 0x4ce52e
mov ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
lea edi, [eax + esi - 2]
cmp edi, edx
jle 0x4ce54f
dec eax
lea edi, [esi + eax - 2]
cmp edi, edx
jg 0x4ce542
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x40]
cmp eax, edx
jge 0x4ce55d
mov eax, edx
mov dword [esp + 0x38], eax
mov edx, dword [0x5a1b00]
push 0
push edx
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
push 0
push eax
jmp 0x4ce6aa
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x5a1b00]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0
push edx
mov edx, dword [esp + 0x20]
push 0
push eax
push ecx
push 0
push edx
jmp 0x4ce6aa
test esi, esi
jne 0x4ce61c
test ebp, ebp
je 0x4ce5c2
mov eax, dword [ebp + 0x86c]
test eax, eax
je 0x4ce5c2
cmp dword [esp + 0x2c], eax
jne 0x4ce5c2
lea ecx, [esp + 0x3c]
push ecx
push eax
jmp 0x4ce5c8
lea edx, [esp + 0x3c]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
sub eax, esi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, esi
mov esi, dword [esp + 0x24]
cmp esi, 1
mov dword [esp + 0x28], 4
jne 0x4ce6dd
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
neg eax
add ecx, eax
mov dword [esp + 0x38], ecx
mov edi, dword [esp + 0x14]
push 0
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0x3c]
mov ecx, ebx
call fcn.004dbcc0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
cdq
sub eax, edx
mov edx, dword [esp + 0x44]
sar eax, 1
lea eax, [eax + ecx + 8]
cmp eax, edx
jle 0x4ce65a
jmp 0x4ce650
dec ecx
dec eax
cmp eax, edx
jg 0x4ce650
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jge 0x4ce668
mov ecx, eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x48]
lea esi, [eax + edi - 2]
cmp esi, edx
jle 0x4ce685
dec eax
lea esi, [edi + eax - 2]
cmp esi, edx
jg 0x4ce678
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x40]
cmp eax, edx
jge 0x4ce693
mov eax, edx
mov dword [esp + 0x38], eax
mov edx, dword [0x5a1b00]
push 0
push edx
push 0
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
test ebp, ebp
je 0x4ce755
mov ecx, dword [ebp]
cmp ecx, dword [0x5a1b0c]
jne 0x4ce755
mov eax, dword [ebp + 0x888]
test eax, eax
jne 0x4ce74e
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4ce747
mov eax, ecx
jmp 0x4ce74e
mov eax, dword [esp + 0x20]
cmp eax, 4
je 0x4ce6f5
cmp eax, 6
je 0x4ce6f5
cmp eax, 7
je 0x4ce6f5
cmp eax, 0xe
jne 0x4ce6f9
add ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov eax, edi
cdq
sub eax, edx
mov ebp, eax
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
neg eax
sar ebp, 1
sub eax, ebp
mov ebp, dword [esp + 0x50]
add ecx, eax
lea eax, [esi - 1]
shr eax, 1
shl eax, 1
mov edx, 0xfffffffe
sub edx, eax
add esi, edx
mov dword [esp + 0x38], ecx
jne 0x4ce620
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x38], ecx
jmp 0x4ce620
mov ecx, eax
call fcn.00536930
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [0x589a98], edx
mov eax, 1
pop ebx
add esp, 0x3c
ret 4