Function at 0x4f6890
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, 0x10a8
call fcn.005d9990
cmp dword [esp + 0x10b0], 0x10
push esi
push edi
jne 0x4f68bd
push 0
push 0x8e
call fcn.00500110
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
jmp 0x4f68c8
mov eax, dword [0x674868]
mov dword [esp + 0x18], eax
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4f6904
mov ecx, dword [0x676d14]
push ecx
call fcn.00508aa0
add esp, 4
test eax, eax
jne 0x4f68eb
call fcn.00508b70
mov dword [0x676d14], eax
cmp dword [0x676d14], edi
je 0x4f6904
push esi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x40], esi
jg 0x4f690f
pop edi
xor eax, eax
pop esi
add esp, 0x10a8
ret
mov edx, dword [0x6a0f40]
push ebx
push ebp
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
cmp ebx, edi
jne 0x4f6931
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x10a8
ret
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x48
mov dword [esp + 0x50], eax
call fcn.00591000
push 0x47
mov dword [esp + 0x20], eax
call fcn.00591000
add esp, 8
test esi, esi
mov ebp, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], edi
jle 0x4f69ef
lea esp, [esp]
mov ecx, dword [esp + 0x20]
push 0x400
push 0x62
lea eax, [esp + 0x58]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetMenuStringA]
test eax, eax
jg 0x4f69a1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x4f69ea
push 0
push 0
push 0
push eax
lea edx, [esp + 0x60]
push edx
push ebx
call fcn.0052a000
add esp, 0x18
mov esi, eax
mov eax, dword [esp + 0x20]
push edi
push eax
add esi, ebp
call dword [sym.imp.USER32.dll_GetSubMenu]
test eax, eax
je 0x4f69cc
add esi, ebp
cmp esi, dword [esp + 0x34]
jle 0x4f69d6
mov dword [esp + 0x34], esi
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x48]
lea eax, [ecx + edx + 4]
mov dword [esp + 0x1c], eax
inc edi
cmp edi, esi
jl 0x4f6970
mov ecx, dword [esp + 0x4c]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [0x6a0f40]
push ebx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x10c0]
mov dword [0x61a20c], eax
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [esp + 0x10bc]
push esi
mov dword [esp + 0x1c], eax
call fcn.0058ea30
mov edi, dword [esp + 0x10c8]
add esp, 4
mov ebp, eax
lea eax, [esp + 0x10]
movzx ecx, di
mov edx, edi
push eax
shr edx, 0x10
push esi
xor ebx, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x6a0f48]
test eax, eax
jne 0x4f6a79
mov ecx, dword [0x6a0f40]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0x6a0f40]
push edx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [0x61a20c]
add eax, 0xfffffff6
cmp eax, 0x15
ja case.0x4f6a91.11
movzx eax, byte [eax + 0x4f6cc8]
jmp dword [eax*4 + 0x4f6cb8]
mov edx, dword [0x697320]
mov ecx, dword [0x69731c]
mov eax, dword [0x697324]
push 2
mov dword [esp + 0x2c], edx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x697328]
push 0
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [0x61ab54]
test eax, eax
jne 0x4f6adf
mov ebx, 0x20
jmp 0x4f6b35
cmp eax, 1
jne 0x4f6b03
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
push edx
lea eax, [esp + 0x14]
push eax
jmp 0x4f6c2a
cmp eax, 2
jne 0x4f6b27
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
jmp 0x4f6c2a
cmp eax, 3
jne 0x4f6924
mov ebx, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ecx
push eax
jmp 0x4f6c2a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x4f6c33
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
jmp 0x4f6c20
test edi, edi
jne 0x4f6c20
test ebp, ebp
je 0x4f6baa
mov eax, dword [ebp + 0x1488]
test eax, eax
je 0x4f6baa
cmp dword [esp + 0x18], eax
jne 0x4f6baa
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp + 0x1488]
mov dword [ebp + 0x14a0], eax
jmp 0x4f6bb6
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x1c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
sub eax, ecx
sub eax, edi
cdq
sub eax, edx
push 0
lea edx, [esp + 0x3c]
push edx
sar eax, 1
add eax, ecx
push 0
push esi
mov dword [esp + 0x24], eax
mov ebx, 4
call fcn.00508880
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
lea edx, [ecx + edi]
add esp, 0x10
cmp edx, eax
jl 0x4f6c14
sub eax, edi
mov ecx, eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jge 0x4f6c20
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
call fcn.00508a10
add esp, 0xc
mov edx, dword [0x6a0f40]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push edx
mov edx, dword [esp + 0x28]
push 0
push eax
push ecx
push ebx
push edx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
test eax, eax
je 0x4f6924
push ebp
call fcn.0058ed20
add esp, 4
test eax, eax
je 0x4f6c9b
mov esi, dword [ebp]
call fcn.0058ec80
cmp esi, eax
jne 0x4f6c9b
mov eax, dword [ebp + 0x14a0]
test eax, eax
jne 0x4f6c94
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4f6c8b
mov eax, esi
jmp 0x4f6c94
push eax
call fcn.0058ed50
add esp, 4
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x10c0]
pop ebp
pop ebx
pop edi
mov dword [0x61a20c], eax
mov eax, 1
pop esi
add esp, 0x10a8
ret