Function at 0x4d44d0
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 0x4d44f9
xor edx, edx
mov ecx, 0x8e
call fcn.004dc450
mov esi, eax
mov dword [esp + 0x14], esi
jmp 0x4d4504
mov eax, dword [0x5aa0e0]
mov dword [esp + 0x14], eax
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4d455f
mov ecx, dword [0x5aa558]
call fcn.004e2760
test eax, eax
jne 0x4d4523
call fcn.004e27f0
mov dword [0x5aa558], eax
cmp dword [0x5aa558], edi
je 0x4d455f
mov dword [0x59bb90], 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 0x4d455f
mov ecx, dword [0x5b4314]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
cmp ebx, edi
jne 0x4d456a
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.00544880
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 0x4d4617
mov edx, dword [esp + 0x18]
push 0x400
push 0x62
push 0x5aa640
push edi
push edx
call dword [sym.imp.USER32.dll_GetMenuStringA]
test eax, eax
jg 0x4d45d3
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 0x4d4612
push eax
mov edx, 0x5aa640
mov ecx, ebx
call fcn.00500390
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 0x4d45f6
add esi, ebp
cmp esi, dword [esp + 0x1c]
jle 0x4d4600
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 0x4d45a2
mov edx, dword [esp + 0x28]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [0x5b4314]
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 [0x5b431c]
test eax, eax
mov dword [esp + 0x28], 0
jne 0x4d468a
mov ecx, dword [0x5b4314]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0x5b4314]
push edx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, ebx
call fcn.00542c90
mov ebp, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff6
cmp eax, 0x13
mov dword [esp + 0x50], ebp
ja case.0x4d46ae.11
movzx eax, byte [eax + 0x4d497c]
jmp dword [eax*4 + 0x4d4970]
mov edx, dword [0x5b3198]
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 [0x5b33ec]
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 [0x5b3198]
lea edx, [esp + 0x3c]
mov dword [esp + 0x40], eax
call fcn.004e2580
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
lea eax, [ecx + edx]
mov edx, dword [esp + 0x44]
cmp eax, edx
jle 0x4d4720
dec ecx
dec eax
cmp eax, edx
jg 0x4d4716
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jge 0x4d472e
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 0x4d474f
dec eax
lea edi, [esi + eax - 2]
cmp edi, edx
jg 0x4d4742
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x40]
cmp eax, edx
jge 0x4d475d
mov eax, edx
mov dword [esp + 0x38], eax
mov edx, dword [0x5b4314]
push 0
push edx
push 0
push eax
mov eax, dword [esp + 0x28]
push ecx
push 0
push eax
jmp 0x4d48aa
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x5b4314]
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 0x4d48aa
test esi, esi
jne 0x4d481c
test ebp, ebp
je 0x4d47c2
mov eax, dword [ebp + 0x874]
test eax, eax
je 0x4d47c2
cmp dword [esp + 0x2c], eax
jne 0x4d47c2
lea ecx, [esp + 0x3c]
push ecx
push eax
jmp 0x4d47c8
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 0x4d48dd
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.004e2580
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 0x4d485a
jmp 0x4d4850
dec ecx
dec eax
cmp eax, edx
jg 0x4d4850
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jge 0x4d4868
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 0x4d4885
dec eax
lea esi, [edi + eax - 2]
cmp esi, edx
jg 0x4d4878
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x40]
cmp eax, edx
jge 0x4d4893
mov eax, edx
mov dword [esp + 0x38], eax
mov edx, dword [0x5b4314]
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 0x4d4955
mov ecx, dword [ebp]
cmp ecx, dword [0x5b4320]
jne 0x4d4955
mov eax, dword [ebp + 0x890]
test eax, eax
jne 0x4d494e
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4d4947
mov eax, ecx
jmp 0x4d494e
mov eax, dword [esp + 0x20]
cmp eax, 4
je 0x4d48f5
cmp eax, 6
je 0x4d48f5
cmp eax, 7
je 0x4d48f5
cmp eax, 0xe
jne 0x4d48f9
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 0x4d4820
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov dword [esp + 0x38], ecx
jmp 0x4d4820
mov ecx, eax
call fcn.00542f00
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [0x59bb90], edx
mov eax, 1
pop ebx
add esp, 0x3c
ret 4