Function at 0x512380
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
cmp ebx, 0x4e
jne 0x5123c8
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebp + 0x10]
mov ecx, edi
push esi
push ebx
call sym.WnPicViewer.exe_protected_virtual:_long_int___thiscall_UiLib::CWindowWnd::HandleMessage_unsigned_int__unsigned_int__long_int_
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 8
jne 0x5124b8
push 0
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x51244f
xorps xmm0, xmm0
lea eax, [ebp - 0x20]
push eax
movdqu xmmword [ebp - 0x24], xmm0
movdqu xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x20
push eax
push 0
push 0x100e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x18]
cmp eax, 0x1010003
je 0x512437
cmp eax, 0x2010003
jne 0x5124a3
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x14]
jl 0x51247d
cmp eax, dword [ebp - 0xc]
jg 0x51247d
cmp eax, dword [ebp - 0x10]
jl 0x51247d
cmp eax, dword [ebp - 8]
jle 0x5124a3
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 8
call fcn.00512700
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0x101
jne 0x5123a9
cmp esi, 0x2e
je 0x512516
cmp esi, 8
je 0x512516
cmp esi, 0x1b
jne 0x5123a9
push dword [ebp + 0x10]
push esi
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
push 0
push 0
push 0x10
mov dword [ecx + 0x7d8], 3
mov ecx, edi
call sym.WnPicViewer.exe_public:_long_int___thiscall_UiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0x10]
push esi
push 0x101
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
mov esi, eax
mov dword [ecx + 0x7d8], 2
mov ecx, dword [edi + 0x10]
call sym.WnPicViewer.exe_public:_void___thiscall_UiLib::CDateTimeUI::UpdateText_void_
push 0
push 0
push 0x10
mov ecx, edi
call sym.WnPicViewer.exe_public:_long_int___thiscall_UiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 0xc