Function at 0x4f96c0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x723a4d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x7db1e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call edi
test eax, eax
je 0x4f98f5
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x4f98f5
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 1
push eax
push dword [esi]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x1111
push dword [esi]
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4f9785
test byte [ebp - 0x2c], 0x46
je 0x4f9785
push eax
push 9
push 0x110b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x4f98f5
push 0xe2
push dword [0x7f44f0]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_LoadMenuW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4f98f5
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
je 0x4f98ec
push 0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x2e8]
cmp eax, 1
jne 0x4f980c
push 0
push 0x8022
push edi
call dword [sym.imp.USER32.dll_DeleteMenu]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004ea910
cmp dword [eax], 0
je 0x4f97fc
cmp byte [ebx + 0x28c], 0
jne 0x4f987c
push 3
push 0x8020
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
jmp 0x4f987c
test eax, eax
jne 0x4f9862
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004ea910
cmp dword [eax], 0
je 0x4f9844
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004ea910
mov ecx, eax
call fcn.004ea880
cmp dword [eax], 0
jne 0x4f9844
cmp byte [ebx + 0x2a0], 0
jne 0x4f9852
push 3
push 0x8022
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0x8020
push edi
call dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x4f987c
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push 0
push 0x8022
push edi
call esi
push 0
push 0x8020
push edi
call esi
lea ecx, [ebp + 8]
call fcn.004e5940
mov eax, dword [ebx + 0x2e8]
lea ecx, [ebp + 8]
add eax, 0x8c
mov byte [ebp - 4], 2
push eax
call fcn.004d4560
mov esi, dword [ebp + 8]
push esi
push 0x8001
push 0
push 0x8001
push edi
call dword [sym.imp.USER32.dll_ModifyMenuW]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push 0
push dword [ebx + 4]
add eax, 5
push eax
mov eax, dword [ebp - 0x1c]
add eax, 5
push eax
push 0
call fcn.004d9160
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4f98ec
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_DestroyMenu]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4