Function at 0x45a36c
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push 0xd4
mov eax, 0x4fe94f
call fcn.004cda1c
mov ebx, ecx
mov edi, dword [ebp + 8]
cmp edi, 1
jne 0x45a53e
lea edi, [ebx + 0x10]
push 1
mov ecx, edi
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SetForceUseSharedRes_bool_
xor eax, eax
mov ecx, edi
push eax
push dword [ebx + 4]
mov dword [ebp - 0xbc], eax
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::Init_struct_HWND_____wchar_t_const__
push 0x6c0
call fcn.004cd26e
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
xor eax, eax
lea esi, [ebx + 0x498]
mov dword [ebp - 4], eax
mov dword [ebp - 0xb8], esi
test ecx, ecx
je 0x45a3d6
push dword [esi]
call fcn.004593c9
jmp 0x45a3dc
mov dword [ebp - 0xb8], esi
or dword [ebp - 4], 0xffffffff
mov ecx, eax
push 1
mov dword [ebx + 0x49c], ecx
push 0
mov eax, dword [ecx]
push edi
call dword [eax + 0x28]
mov ecx, dword [esi]
push 0x508b10
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call sym.RedAlert.exe_public:_wchar_t_const____thiscall_DuiLib::CPaintManagerUI::GetDefaultAttributeList_wchar_t_const__const
test eax, eax
je 0x45a418
mov ecx, dword [ebx + 0x49c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x130]
xor eax, eax
lea ecx, [ebp - 0x20]
inc eax
push eax
push eax
push eax
push eax
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CDuiRect::constructor_long_int__long_int__long_int__long_int_
mov ecx, dword [ebx + 0x49c]
sub esp, 0x10
mov esi, eax
mov edi, esp
mov edx, dword [ecx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [edx + 0x15c]
mov ecx, dword [ebx + 0x49c]
push 0xffffffffffffffff
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CControlUI::SetBkColor_unsigned_long_int_
mov ecx, dword [ebx + 0x49c]
push 0xffc6c7d2
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CControlUI::SetBorderColor_unsigned_long_int_
mov ecx, dword [ebx + 0x49c]
xor esi, esi
inc esi
push esi
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CControlUI::SetBorderSize_int_
mov ecx, dword [ebx + 0x49c]
push 0
mov eax, dword [ecx]
call dword [eax + 0x17c]
mov ecx, dword [ebx + 0x49c]
push 0
push esi
mov eax, dword [ecx]
call dword [eax + 0x1d0]
mov edi, dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
push eax
mov ecx, dword [edi]
call sym.RedAlert.exe_public:_class_DuiLib::CDuiString___thiscall_DuiLib::CComboUI::GetDropBoxAttributeList_void_
mov ecx, dword [ebx + 0x49c]
mov dword [ebp - 4], esi
mov esi, dword [ecx]
mov ecx, eax
call sym.RedAlert.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov ecx, dword [ebx + 0x49c]
push eax
call dword [esi + 0x130]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call sym.RedAlert.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov ecx, dword [edi]
add ecx, 0x658
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jle 0x45a529
mov eax, dword [ebx + 0x49c]
mov ecx, dword [edi]
push dword [ebp - 0xbc]
add ecx, 0x658
mov esi, dword [eax + 0x658]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebx + 0x49c]
push eax
add ecx, 0x658
call dword [esi + 0x14]
mov ecx, dword [edi]
inc dword [ebp - 0xbc]
add ecx, 0x658
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebp - 0xbc], eax
jl 0x45a4e0
push dword [ebx + 0x49c]
lea ecx, [ebx + 0x10]
call sym.RedAlert.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::AttachDialog_class_DuiLib::CControlUI__
xor eax, eax
jmp 0x45a875
xor eax, eax
cmp edi, 0x10
jne 0x45a5f7
mov eax, dword [ebx + 0x498]
mov esi, eax
push 0
mov ecx, esi
mov edi, dword [eax]
call dword [edi + 0x2c]
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, dword [ebx + 0x498]
push eax
call dword [edi + 0x28]
mov ecx, dword [ebx + 0x498]
mov eax, dword [ecx]
call dword [eax + 0x108]
mov ecx, dword [ebx + 0x498]
mov edx, dword [ecx]
mov dword [ebp - 0xb8], edx
test al, al
jne 0x45a591
call dword [edx + 0x40]
jmp 0x45a598
lea eax, [ebp - 0x20]
push eax
call dword [edx + 0x44]
mov ecx, dword [ebx + 0x498]
mov esi, eax
mov eax, dword [ebp - 0xb8]
push 0
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x4c]
mov ecx, dword [ebx + 0x498]
mov eax, dword [ecx]
call dword [eax + 0x104]
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc0], eax
lea ecx, [ebx + 0x10]
lea eax, [ebp - 0xc0]
push eax
push dword [ebp + 0x10]
push esi
push edi
call sym.RedAlert.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::MessageHandler_unsigned_int__unsigned_int__long_int__long_int__
test al, al
je 0x45a869
mov eax, dword [ebp - 0xc0]
jmp 0x45a875
cmp edi, 0x201
je 0x45a7d8
cmp edi, 0x203
je 0x45a7d8
cmp edi, 0x202
jne 0x45a6b9
cmp byte [ebx + 0x4a4], al
je 0x45a62b
mov byte [ebx + 0x4a4], al
jmp 0x45a5c7
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x10]
call sym.RedAlert.exe_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x14]
lea ecx, [ebx + 0x10]
push dword [ebp - 0x18]
call sym.RedAlert.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_struct_tagPOINT_const
test eax, eax
je 0x45a5c5
mov edx, dword [eax]
mov ecx, eax
mov esi, str.ScrollBar
call dword [edx + 0x10]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x45a69a
test cx, cx
je 0x45a694
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x45a69a
add eax, 4
add esi, 4
test cx, cx
jne 0x45a672
xor eax, eax
mov ecx, eax
jmp 0x45a6a1
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
je 0x45a5c7
push eax
push eax
push 8
mov ecx, ebx
call sym.RedAlert.exe_public:_long_int___thiscall_DuiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_
jmp 0x45a5c5
cmp edi, 0x100
jne 0x45a734
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xd
je 0x45a6a9
mov edx, dword [ebx + 0x498]
cmp ecx, 0x1b
je 0x45a70b
mov word [ebp - 0x1c], cx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 3
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 0x120]
mov ecx, dword [ebx + 0x498]
add ecx, 0x690
mov eax, dword [ecx]
call dword [eax + 4]
push eax
mov ecx, ebx
call fcn.0045a051
jmp 0x45a537
push 1
lea ecx, [edx + 0x690]
mov eax, dword [ecx]
push 1
push dword [ebx + 0x4a0]
call dword [eax + 8]
push dword [ebx + 0x4a0]
mov ecx, ebx
call fcn.0045a051
xor eax, eax
jmp 0x45a6a9
cmp edi, 0x20a
jne 0x45a797
xor eax, eax
mov dword [ebp - 0xe0], 0x12
mov dword [ebp - 0xdc], eax
xorps xmm0, xmm0
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0xc]
shr eax, 0x10
shr eax, 0xf
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp + 0x10]
movlpd qword [ebp - 0xd4], xmm0
mov dword [ebp - 0xc4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x498]
lea edx, [ebp - 0xe0]
mov dword [ebp - 0xd8], eax
push edx
mov eax, dword [ecx]
jmp 0x45a6e7
mov esi, dword [ebp + 0xc]
cmp edi, 8
jne 0x45a5ca
cmp dword [ebx + 4], esi
je 0x45a5ca
call dword [sym.imp.USER32.dll_GetFocus]
jmp 0x45a7bd
cmp dword [ebx + 4], eax
je 0x45a862
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x45a7b4
push eax
push eax
push 0x10
mov ecx, ebx
call sym.RedAlert.exe_public:_long_int___thiscall_DuiLib::CWindowWnd::PostMessageW_unsigned_int__unsigned_int__long_int_
jmp 0x45a537
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebx + 0x10]
call sym.RedAlert.exe_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x14]
lea ecx, [ebx + 0x10]
push dword [ebp - 0x18]
call sym.RedAlert.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_struct_tagPOINT_const
test eax, eax
je 0x45a5c5
mov edx, dword [eax]
mov ecx, eax
mov esi, str.ScrollBar
call dword [edx + 0x10]
mov cx, word [eax]
cmp cx, word [esi]
jne 0x45a847
test cx, cx
je 0x45a841
mov cx, word [eax + 2]
cmp cx, word [esi + 2]
jne 0x45a847
add eax, 4
add esi, 4
test cx, cx
jne 0x45a81f
xor eax, eax
mov ecx, eax
jmp 0x45a84e
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
jne 0x45a5c7
mov byte [ebx + 0x4a4], 1
jmp 0x45a5c7
xor eax, eax
jmp 0x45a5ca
push dword [ebp + 0x10]
mov ecx, ebx
push esi
push edi
call sym.RedAlert.exe_protected_virtual:_long_int___thiscall_DuiLib::CWindowWnd::HandleMessage_unsigned_int__unsigned_int__long_int_
call fcn.004cd9da
ret 0xc