Function at 0x47d6f0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x542040]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xfffffffb
ja 0x47d7f0
je 0x47d80c
cmp eax, 0xfffffe39
je 0x47d74c
cmp eax, 0xfffffe3d
jne 0x47d7f5
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
mov ebx, dword [edi + 0x18]
cmp dword [esi], ebx
jne 0x47d75e
mov ebx, dword [edi + 0x24]
lea eax, [edi + 0x44]
lea ecx, [edi + 0x50]
jmp 0x47d764
lea eax, [edi + 0x50]
lea ecx, [edi + 0x44]
push dword [esi + 0x3c]
mov dword [esp + 0x14], ecx
push dword [eax + 4]
mov dword [esp + 0x1c], eax
push dword [eax]
call fcn.004ddb20
mov edx, dword [esp + 0x14]
mov edi, eax
mov ecx, dword [edx]
sub edi, ecx
mov edx, dword [edx + 4]
sub edx, ecx
sar edi, 2
sar edx, 2
cmp edi, edx
jae 0x47d9de
test byte [esi + 0x40], 0x20
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax + edi*4]
push eax
je 0x47d7cb
push 2
push 0x1102
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
push 1
push 0x1102
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
cmp eax, 0xfffffffe
je 0x47d80c
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x4c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x4c]
push eax
push 0
push 0x1111
push dword [esi]
call ebx
mov dword [esp + 0x44], eax
test eax, eax
je 0x47d9de
push eax
push 9
push 0x110b
push dword [esi]
call ebx
mov eax, dword [edi + 0x18]
lea edx, [edi + 0x50]
lea ecx, [edi + 0x44]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
cmp dword [esi], eax
jne 0x47d874
mov eax, dword [edi + 0x24]
mov dword [esp + 0x18], eax
jmp 0x47d880
mov eax, edx
mov dword [esp + 0x14], ecx
mov ecx, eax
mov dword [esp + 0x10], eax
push dword [esp + 0x44]
push dword [ecx + 4]
push dword [ecx]
call fcn.004ddb20
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
sub eax, ecx
mov edx, dword [edx + 4]
sub edx, ecx
sar eax, 2
sar edx, 2
mov dword [esp + 0x10], eax
cmp eax, edx
jae 0x47d9de
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push dword [eax + ecx*4]
push 9
push 0x110b
push dword [esp + 0x24]
call ebx
cmp dword [esi + 8], 0xfffffffb
jne 0x47d9de
mov eax, dword [edi + 0x18]
cmp dword [esi], eax
jne 0x47d9de
mov ecx, dword [esp + 0x44]
xorps xmm0, xmm0
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x113e
push eax
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x2c], 4
call ebx
test eax, eax
je 0x47d9de
mov esi, dword [esp + 0x40]
test esi, esi
je 0x47d9de
mov eax, dword [edi + 0x84]
test eax, eax
je 0x47d93b
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
xorps xmm0, xmm0
mov dword [esp + 0x88], 0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
movlpd qword [esp + 0x80], xmm0
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuW]
mov dword [edi + 0x84], eax
push dword [esi]
push dword [esi + 8]
push dword [esi + 4]
push dword [edi + 0x84]
call ebx
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 0x30
push eax
push 0
mov dword [esp + 0x68], 0x20
mov dword [esp + 0x84], esi
push dword [esi + 8]
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x47d976
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
push dword [edi]
push esi
push dword [esp + 0x54]
push dword [esp + 0x54]
push esi
push dword [edi + 0x84]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov ecx, dword [esp + 0x8c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dadd7
mov esp, ebp
pop ebp
ret