Function at 0x500590
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556e83
mov eax, dword fs:[0]
push eax
sub esp, 0x1b4
mov eax, dword [0x5be9c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x19c], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1b4], eax
je 0x501ddc
lea eax, [esi + 0x1ec]
push 0
mov ecx, eax
mov dword [ebp - 0x1bc], eax
call sym.xIns.exe_public:_void____thiscall_DuiLib::CStdPtrArray::GetAt_int_const
mov edi, eax
mov dword [ebp - 0x198], edi
test edi, edi
je 0x5006f1
lea eax, [esi + 0x1a4]
mov dword [ebp - 0x1b0], eax
mov esi, eax
jmp 0x500620
mov ecx, dword [ebp - 0x1bc]
push 0
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CStdPtrArray::Remove_int_
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x500652
add ecx, 0x38
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CEventSource::operator_bool_void_
test al, al
je 0x500652
mov ecx, dword [edi + 0x108]
push edi
add ecx, 0x38
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CEventSource::operator___void__
mov ecx, esi
xor edi, edi
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x500699
mov esi, dword [ebp - 0x198]
jmp 0x500670
mov ecx, dword [ebp - 0x1b0]
push edi
call sym.xIns.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebp - 0x1b0]
inc edi
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp edi, eax
jl 0x500670
mov esi, dword [ebp - 0x1b0]
mov edi, dword [ebp - 0x198]
mov dword [ebp - 0x198], edi
mov dword [ebp - 4], 0
lea ecx, [edi + 0x84]
call sym.xIns.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call sym.xIns.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
push edi
call fcn.004b0c50
mov ecx, dword [ebp - 0x1bc]
add esp, 4
push 0
call sym.xIns.exe_public:_void____thiscall_DuiLib::CStdPtrArray::GetAt_int_const
mov edi, eax
mov dword [ebp - 0x198], eax
test edi, edi
jne 0x500620
mov esi, dword [ebp - 0x19c]
lea ecx, [esi + 0x1c8]
mov dword [ebp - 0x198], 0
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
mov edi, dword [ebp - 0x1a4]
test eax, eax
jle 0x500763
xor ecx, ecx
push ecx
lea ecx, [esi + 0x1c8]
mov byte [ebp - 0x1a9], 0
call sym.xIns.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
lea ecx, [ebp - 0x1a9]
push ecx
push edi
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [edx]
call eax
cmp byte [ebp - 0x1a9], 0
jne 0x501382
inc dword [ebp - 0x198]
lea ecx, [esi + 0x1c8]
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
mov ecx, dword [ebp - 0x198]
cmp ecx, eax
jl 0x500712
mov ecx, dword [ebp + 8]
cmp ecx, 0x111
ja 0x5013b8
je 0x501391
lea eax, [ecx - 5]
cmp eax, 0xfd
ja case.0x5013e2.276
movzx eax, byte [eax + 0x501e2c]
jmp dword [eax*4 + 0x501dfc]
mov eax, dword [esi + 0x14c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x150]
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x140]
mov dword [ebp - 0x28], eax
test ecx, ecx
je 0x5007ea
mov dword [ebp - 0x30], 0xa
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
mov ecx, dword [esi + 0x144]
test ecx, ecx
je 0x50080a
mov dword [ebp - 0x30], 0xe
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
push 0
mov ecx, esi
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SetFocus_class_DuiLib::CControlUI__
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je case.0x5013e2.276
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp case.0x5013e2.276
mov ecx, dword [ebp - 0x1b4]
mov al, 1
mov dword [ecx], 1
jmp 0x501dde
push 0
lea eax, [ebp - 0x40]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movdqu xmmword [ebp - 0x40], xmm0
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
je 0x50138a
cmp dword [esi + 0x138], 0
jne 0x5008b1
push 0x3c
lea eax, [ebp - 0x150]
mov dword [ebp - 0x154], 0
push 0
push eax
call fcn.004c62d0
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
lea eax, [ebp - 0x154]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndPaint]
mov al, 1
jmp 0x501dde
cmp byte [esi + 0x19c], 0
je 0x500c4f
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x80000
jne 0x5008e1
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0xd4]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movdqu xmmword [ebp - 0xd4], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esi + 0x59], 0
je 0x500913
movdqu xmm0, xmmword [ebp - 0xd4]
mov byte [esi + 0x59], 0
movdqu xmmword [ebp - 0x40], xmm0
push 0x3c
lea eax, [ebp - 0x190]
mov dword [ebp - 0x194], 0
push 0
push eax
call fcn.004c62d0
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [esi + 0x199], 0
je 0x500a6d
lea eax, [ebp - 0xd4]
mov byte [esi + 0x199], 0
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x500a6d
mov ecx, dword [esi + 0x138]
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CControlUI::IsUpdateNeeded_void_const
test al, al
je 0x5009d4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x5009a1
mov ecx, dword [esi + 0x138]
sub esp, 0x10
movdqu xmm0, xmmword [ebp - 0xd4]
mov eax, esp
mov edx, dword [ecx]
movdqu xmmword [eax], xmm0
call dword [edx + 0x34]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5009af
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x5009bd
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x10], 0
jmp 0x500a45
mov ecx, dword [esi + 0x138]
push SysReAllocString
push 0
push sym.xIns.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromUpdate_class_DuiLib::CControlUI___void__
mov eax, dword [ecx]
mov eax, dword [eax + 0xfc]
call eax
mov dword [ebp - 0x1a4], eax
test eax, eax
je 0x500a45
lea ebx, [ebx]
mov edi, dword [eax]
mov ecx, eax
mov edx, dword [edi + 0x30]
call edx
sub esp, 0x10
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
mov ecx, dword [ebp - 0x1a4]
call dword [edi + 0x34]
mov ecx, dword [esi + 0x138]
push SysReAllocString
push 0
push sym.xIns.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromUpdate_class_DuiLib::CControlUI___void__
mov eax, dword [ecx]
mov eax, dword [eax + 0xfc]
call eax
mov dword [ebp - 0x1a4], eax
test eax, eax
jne 0x500a00
cmp byte [esi + 0x198], 0
je 0x500a6d
push 0
push 0
push 0
push 0x56fd90
push dword [esi + 0x138]
mov ecx, esi
mov byte [esi + 0x198], 0
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
cmp byte [esi + 0x19a], 0
je 0x500a7f
push 1
mov ecx, esi
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
mov eax, dword [ebp - 0xcc]
mov edi, dword [ebp - 0xc8]
sub eax, dword [ebp - 0xd4]
sub edi, dword [ebp - 0xd0]
cmp byte [esi + 0x19b], 0
mov dword [ebp - 0x198], eax
je 0x500b40
cmp dword [esi + 0x20], 0
jne 0x500b40
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 0x2c
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.004c62d0
mov ecx, dword [ebp - 0x198]
add esp, 0xc
mov eax, edi
mov dword [ebp - 0x140], 0x28
neg eax
imul edi, ecx
mov dword [ebp - 0x138], eax
lea eax, [esi + 0x10]
push 0
push 0
push eax
push 0
lea eax, [ebp - 0x140]
shl edi, 2
push eax
push dword [esi + 0xc]
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x134], 0x200001
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x120], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x198]
lea ecx, [ebp - 0x40]
push ecx
push eax
push dword [esi + 0x10]
call sym.xIns.exe_public:_static_void___cdecl_DuiLib::CRenderEngine::ClearAlphaPixel_unsigned_char___int__struct_tagRECT__
add esp, 0xc
push dword [esi + 0x20]
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x138]
mov edi, eax
lea eax, [ebp - 0x40]
push eax
push dword [esi + 0x18]
mov edx, dword [ecx]
call dword [edx + pe_nt_image_headers32]
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
push dword [esi + 0x18]
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::DrawCaret_struct_HDC_____struct_tagRECT_const__
mov ecx, dword [ebp - 0x198]
lea eax, [ebp - 0x40]
push eax
push ecx
push dword [esi + 0x10]
call sym.xIns.exe_public:_static_void___cdecl_DuiLib::CRenderEngine::RestoreAlphaColor_unsigned_char___int__struct_tagRECT__
add esp, 0xc
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0xcc]
sub eax, dword [ebp - 0xd4]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp - 0xc8]
sub eax, dword [ebp - 0xd0]
push 2
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x1b0]
push eax
push 0
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x1a0], 0
push eax
push dword [esi + 0x18]
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x19c], 0
push eax
lea eax, [ebp - 0x1b8]
mov dword [ebp - 0x1b0], 0x1ff0000
push eax
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateLayeredWindow]
push edi
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x194]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndPaint]
mov al, 1
jmp 0x501dde
cmp byte [esi + 0x199], 0
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
je 0x500d86
lea eax, [ebp - 0x20]
mov byte [esi + 0x199], 0
push eax
push dword [esi + 4]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
call edi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x500d86
mov ecx, dword [esi + 0x138]
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CControlUI::IsUpdateNeeded_void_const
test al, al
je 0x500ced
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x500cc1
mov ecx, dword [esi + 0x138]
sub esp, 0x10
movdqu xmm0, xmmword [ebp - 0x20]
mov eax, esp
mov edx, dword [ecx]
movdqu xmmword [eax], xmm0
call dword [edx + 0x34]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x500ccf
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x500cdd
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
jmp 0x500d5e
mov ecx, dword [esi + 0x138]
push SysReAllocString
push 0
push sym.xIns.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromUpdate_class_DuiLib::CControlUI___void__
mov eax, dword [ecx]
mov eax, dword [eax + 0xfc]
call eax
mov dword [ebp - 0x1a4], eax
test eax, eax
je 0x500d5e
mov edi, dword [eax]
mov ecx, eax
mov edx, dword [edi + 0x30]
call edx
sub esp, 0x10
mov ecx, esp
movdqu xmm0, xmmword [eax]
movdqu xmmword [ecx], xmm0
mov ecx, dword [ebp - 0x1a4]
call dword [edi + 0x34]
mov ecx, dword [esi + 0x138]
push SysReAllocString
push 0
push sym.xIns.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromUpdate_class_DuiLib::CControlUI___void__
mov eax, dword [ecx]
mov eax, dword [eax + 0xfc]
call eax
mov dword [ebp - 0x1a4], eax
test eax, eax
jne 0x500d13
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
cmp byte [esi + 0x198], 0
je 0x500d86
push 0
push 0
push 0
push 0x56fd90
push dword [esi + 0x138]
mov ecx, esi
mov byte [esi + 0x198], 0
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
cmp byte [esi + 0x19a], 0
je 0x500d98
push 1
mov ecx, esi
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
cmp byte [esi + 0x19b], 0
je 0x500df0
cmp dword [esi + 0x1c], 0
jne 0x500df0
lea eax, [ebp - 0xd4]
xorps xmm0, xmm0
push eax
push dword [esi + 4]
movdqu xmmword [ebp - 0xd4], xmm0
call edi
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc8]
sub eax, dword [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0xcc]
sub eax, dword [ebp - 0xd4]
push eax
push dword [esi + 0xc]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esi + 0x1c], eax
push 0x3c
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], 0
push 0
push eax
call fcn.004c62d0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
cmp byte [esi + 0x19b], 0
je 0x500f6c
push dword [esi + 0x1c]
push dword [esi + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x14]
mov dword [ebp - 0x1a4], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 0x138]
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x10c]
push eax
push dword [esi + 0x14]
mov edx, dword [ecx]
call dword [edx + pe_nt_image_headers32]
lea eax, [ebp - 0x10c]
mov ecx, esi
push eax
push dword [esi + 0x14]
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::DrawCaret_struct_HDC_____struct_tagRECT_const__
lea ecx, [esi + 0x1d4]
xor edi, edi
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x500ec0
jmp 0x500e90
push edi
lea ecx, [esi + 0x1d4]
call sym.xIns.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
lea ecx, [ebp - 0x10c]
push ecx
push dword [esi + 0x14]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x130]
lea ecx, [esi + 0x1d4]
inc edi
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp edi, eax
jl 0x500e90
push dword [ebp - 0x19c]
push dword [esi + 0x14]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x100]
push 0xcc0020
push edx
push ecx
push dword [esi + 0x14]
sub eax, edx
push eax
mov eax, dword [ebp - 0x104]
sub eax, ecx
push eax
push edx
push ecx
push dword [ebp - 0x114]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x1a4]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x14]
call edi
cmp byte [esi + 0x58], 0
je 0x500fb6
push dword [0x5c9448]
push dword [ebp - 0x114]
call edi
push 5
mov edi, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp - 0x114]
call dword [sym.imp.GDI32.dll_Rectangle]
push edi
push dword [ebp - 0x114]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x500fb6
push dword [ebp - 0x114]
call dword [sym.imp.GDI32.dll_SaveDC]
mov ecx, dword [esi + 0x138]
mov edi, eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x114]
mov edx, dword [ecx]
call dword [edx + pe_nt_image_headers32]
lea eax, [ebp - 0x10c]
mov ecx, esi
push eax
push dword [ebp - 0x114]
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::DrawCaret_struct_HDC_____struct_tagRECT_const__
push edi
push dword [ebp - 0x114]
call dword [sym.imp.GDI32.dll_RestoreDC]
lea eax, [ebp - 0x114]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndPaint]
cmp byte [esi + 0x199], 0
je 0x50138a
push 0
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, 1
jmp 0x501dde
mov eax, dword [esi + 0x154]
test eax, eax
jle 0x500ff4
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x158]
test eax, eax
jle 0x501001
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x15c]
test eax, eax
jle 0x50100e
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x160]
test eax, eax
jle case.0x5013e2.276
mov dword [edi + 0x24], eax
jmp case.0x5013e2.276
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x501067
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x30], 0x16
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x13c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
mov ecx, dword [esi + 0x138]
test ecx, ecx
je 0x50138a
call sym.xIns.exe_public:_void___thiscall_DuiLib::CControlUI::NeedUpdate_void_
mov al, 1
jmp 0x501dde
movsx eax, di
mov dword [ebp - 0x1a0], eax
shr edi, 0x10
movsx eax, di
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x1a0]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [esi + 0x144], 0
mov eax, dword [ebp - 0x1a0]
mov dword [esi + 0x14c], eax
mov eax, dword [ebp - 0x19c]
mov dword [esi + 0x150], eax
je case.0x5013e2.276
mov ecx, esi
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::ReleaseCapture_void_
mov eax, dword [ebp - 0x1a0]
xorps xmm0, xmm0
mov ecx, dword [esi + 0x144]
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x11
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x1a], ax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x144]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
mov dword [esi + 0x144], 0
jmp case.0x5013e2.276
cmp dword [esi + 0x13c], 0
je case.0x5013e2.276
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x1c], ax
mov eax, dword [esi + 0x14c]
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x150]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x20], eax
call fcn.00500540
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x13c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
jmp case.0x5013e2.276
cmp dword [esi + 0x13c], 0
je case.0x5013e2.276
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x1c], ax
mov eax, dword [esi + 0x14c]
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x150]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x20], eax
call fcn.00500540
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x13c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
mov eax, dword [esi + 0x13c]
mov dword [esi + 0x148], eax
jmp case.0x5013e2.276
cmp dword [esi + 0x148], 0
je case.0x5013e2.276
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov word [ebp - 0x1c], ax
mov eax, dword [esi + 0x14c]
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x150]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x20], eax
call fcn.00500540
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x148]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
mov dword [esi + 0x148], 0
jmp case.0x5013e2.276
cmp di, 1
jne case.0x5013e2.276
cmp byte [esi + 0x19e], 0
jne 0x50138a
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1a8], 0
push eax
mov dword [ebp - 0x1a4], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x1a8]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 0x1a4]
mov ecx, esi
push dword [ebp - 0x1a8]
call sym.xIns.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_struct_tagPOINT_const
mov dword [ebp - 0x19c], eax
test eax, eax
je case.0x5013e2.276
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x14]
call edx
test al, 2
je case.0x5013e2.276
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1a8]
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x17
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], eax
call fcn.00500540
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x19c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
mov al, 1
jmp 0x501dde
test edi, edi
je 0x50138a
push edi
push dword [ebp + 0xc]
lea eax, [ecx + 0x2000]
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x1b4]
mov dword [ecx], eax
mov al, 1
jmp 0x501dde
test edi, edi
je case.0x5013e2.276
push edi
push dword [ebp + 0xc]
push 0x2111
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x1b4]
mov dword [ecx], eax
mov al, 1
jmp 0x501dde
cmp ecx, 0x2a1
ja 0x501c62
je 0x501ab9
lea eax, [ecx - 0x112]
cmp eax, 0xf8
ja case.0x5013e2.276
movzx eax, byte [eax + 0x501f58]
jmp dword [eax*4 + 0x501f2c]
mov eax, dword [ebp + 0xc]
and eax, 0xfff0
cmp eax, 0xf120
jne case.0x5013e2.276
mov byte [esi + 0x59], 1
jmp case.0x5013e2.276
mov edi, dword [ebp + 0xc]
mov eax, 0xf1
cmp ax, di
jne 0x50142c
lea eax, [esi + 0x5c]
mov ecx, esi
push eax
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::Invalidate_struct_tagRECT__
cmp byte [esi + 0x6c], 0
sete al
mov byte [esi + 0x6c], al
jmp case.0x5013e2.276
lea ecx, [esi + 0x1b0]
mov dword [ebp - 0x198], 0
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle case.0x5013e2.276
xor ecx, ecx
jmp 0x501450
push ecx
lea ecx, [esi + 0x1b0]
call sym.xIns.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
mov edx, eax
mov dword [ebp - 0x19c], edx
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 4]
jne 0x50147a
movzx ecx, di
cmp dword [edx + 0xc], ecx
jne 0x50147a
cmp byte [edx + 0x10], 0
je 0x50149a
inc dword [ebp - 0x198]
lea ecx, [esi + 0x1b0]
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
mov ecx, dword [ebp - 0x198]
cmp ecx, eax
jl 0x501450
jmp case.0x5013e2.276
mov eax, dword [edx]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 4]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x19c]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov ecx, dword [ecx]
mov eax, dword [ecx]
call dword [eax + 0x108]
jmp case.0x5013e2.276
cmp byte [esi + 0x19d], 0
jne 0x501542
mov eax, dword [esi + 4]
xorps xmm0, xmm0
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0x10
mov dword [ebp - 0x3c], 3
test eax, eax
jne 0x50151e
mov dword [ebp - 0x34], 0x190
jmp 0x501531
push 0
push 3
push 0x415
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov byte [esi + 0x19d], 1
movsx eax, di
shr edi, 0x10
movsx ecx, di
push ecx
mov dword [ebp - 0x1a4], ecx
mov dword [esi + 0x150], ecx
mov ecx, esi
push eax
mov dword [ebp - 0x19c], eax
mov dword [esi + 0x14c], eax
call sym.xIns.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_struct_tagPOINT_const
mov edi, eax
test edi, edi
je 0x501583
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, esi
jne case.0x5013e2.276
mov eax, dword [ebp - 0x19c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x140]
mov dword [ebp - 0x28], eax
cmp edi, ecx
je 0x501607
test ecx, ecx
je 0x501607
mov dword [ebp - 0x30], 0xa
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x140], 0
test ecx, ecx
je 0x501607
lea eax, [esi + 0x28]
push eax
push 0
push 0x411
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, dword [esi + 0x140]
je 0x501631
test edi, edi
je 0x501631
mov dword [ebp - 0x30], 0xb
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x108]
mov dword [esi + 0x140], edi
mov ecx, dword [esi + 0x144]
test ecx, ecx
je 0x501656
mov dword [ebp - 0x30], 9
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
jmp case.0x5013e2.276
test edi, edi
je case.0x5013e2.276
mov dword [ebp - 0x30], 9
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x108]
jmp case.0x5013e2.276
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, edi
movsx ecx, di
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x19c], ecx
mov dword [esi + 0x14c], ecx
push ecx
mov ecx, esi
mov dword [ebp - 0x1a4], eax
mov dword [esi + 0x150], eax
call sym.xIns.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_struct_tagPOINT_const
mov dword [ebp - 0x198], eax
test eax, eax
je case.0x5013e2.276
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x1c]
call edx
cmp eax, esi
jne case.0x5013e2.276
mov ecx, dword [ebp - 0x198]
mov dword [esi + 0x144], ecx
mov eax, dword [ecx]
call dword [eax + 0xf0]
mov ecx, esi
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SetCapture_void_
mov eax, dword [ebp - 0x198]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x19c]
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0xd
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x198]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
jmp case.0x5013e2.276
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
movsx eax, di
shr edi, 0x10
movsx ecx, di
push ecx
mov dword [ebp - 0x1a4], ecx
mov dword [esi + 0x150], ecx
mov ecx, esi
push eax
mov dword [ebp - 0x19c], eax
mov dword [esi + 0x14c], eax
call sym.xIns.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_struct_tagPOINT_const
mov edi, eax
test edi, edi
je case.0x5013e2.276
mov edx, dword [edi]
mov ecx, edi
mov edx, dword [edx + 0x1c]
call edx
cmp eax, esi
jne case.0x5013e2.276
mov ecx, esi
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SetCapture_void_
mov eax, dword [ebp - 0x19c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x30]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x108]
mov dword [esi + 0x144], edi
jmp case.0x5013e2.276
mov eax, edi
movsx ecx, di
shr eax, 0x10
cmp dword [esi + 0x144], 0
cwde
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x1a4], eax
mov dword [esi + 0x14c], ecx
mov dword [esi + 0x150], eax
jne 0x50183a
push eax
push ecx
mov ecx, esi
call sym.xIns.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_struct_tagPOINT_const
test eax, eax
je case.0x5013e2.276
mov dword [esi + 0x144], eax
mov ecx, esi
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::ReleaseCapture_void_
mov eax, dword [esi + 0x144]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x19c]
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0xe
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x144]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
mov dword [esi + 0x144], 0
jmp case.0x5013e2.276
push str.WM_RBUTTONUP_n
call fcn.004d714b
add esp, 4
jmp case.0x5013e2.276
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, edi
movsx ecx, di
shr eax, 0x10
cwde
push eax
mov dword [ebp - 0x19c], ecx
mov dword [esi + 0x14c], ecx
push ecx
mov ecx, esi
mov dword [ebp - 0x1a4], eax
mov dword [esi + 0x150], eax
call sym.xIns.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_struct_tagPOINT_const
mov dword [ebp - 0x198], eax
test eax, eax
je case.0x5013e2.276
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x1c]
call edx
cmp eax, esi
jne case.0x5013e2.276
mov ecx, dword [ebp - 0x198]
mov eax, dword [ecx]
call dword [eax + 0xf0]
mov ecx, esi
call sym.xIns.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SetCapture_void_
mov eax, dword [ebp - 0x198]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x19c]
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x198]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x108]
mov dword [esi + 0x144], edi
jmp case.0x5013e2.276
movsx eax, di
mov dword [ebp - 0x1a0], eax
mov eax, edi
shr eax, 0x10
cwde
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x1a0]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x1a0]
push eax
mov dword [esi + 0x14c], ecx
push ecx
mov ecx, esi
mov dword [esi + 0x150], eax
call sym.xIns.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_struct_tagPOINT_const
mov dword [ebp - 0x1a4], eax
test eax, eax
je case.0x5013e2.276
mov edx, dword [eax]
mov ecx, eax
mov edx, dword [edx + 0x1c]
call edx
cmp eax, esi
jne case.0x5013e2.276
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
shr eax, 0x10
movsx ecx, ax
mov eax, dword [ebp - 0x1a4]
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], eax
xor eax, eax
test ecx, ecx
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
sets al
mov dword [ebp - 0x30], 0x12
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], eax
call fcn.00500540
mov word [ebp - 0x1a], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x1a4]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
movzx ecx, word [esi + 0x150]
movzx eax, word [esi + 0x14c]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x200
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x5013e2.276
test edi, edi
je case.0x5013e2.276
push edi
push dword [ebp + 0xc]
lea eax, [ecx + 0x2000]
push eax
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x1b4]
mov dword [ecx], eax
mov al, 1
jmp 0x501dde
movsx eax, di
shr edi, 0x10
movsx ecx, di
push ecx
mov dword [ebp - 0x1a4], ecx
mov ecx, esi
push eax
mov byte [esi + 0x19d], 0
mov dword [ebp - 0x19c], eax
call sym.xIns.exe_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_struct_tagPOINT_const
mov edi, eax
test edi, edi
je case.0x5013e2.276
mov eax, dword [esi + 0x140]
test eax, eax
je 0x501b3d
mov ecx, dword [ebp - 0x19c]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x1a4]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x30], 0xc
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x140]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x28], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
mov eax, dword [edi]
lea ecx, [ebp - 0xc4]
push ecx
mov ecx, edi
call dword [eax + 0x98]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CDuiString::IsEmpty_void_const
test al, al
jne 0x501c49
push 0x30
lea eax, [esi + 0x28]
push 0
push eax
call fcn.004c62d0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0xc4]
add esp, 0xc
mov dword [esi + 0x28], 0x30
mov dword [esi + 0x2c], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, dword [sym.xIns.exe_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
mov dword [esi + 0x48], eax
call sym.xIns.exe_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const
mov dword [esi + 0x4c], eax
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x30]
call eax
cmp dword [esi + 0x24], 0
movdqu xmm0, xmmword [eax]
movdqu xmmword [esi + 0x38], xmm0
jne 0x501c07
push 0
push dword [sym.xIns.exe_struct_HINSTANCE____DuiLib::CPaintManagerUI::m_hInstance]
push 0
push dword [esi + 4]
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push VariantInit
push 0
push 0x563fb0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea ecx, [esi + 0x28]
mov dword [esi + 0x24], eax
push ecx
push 0
push 0x432
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0xa4]
call eax
push eax
push 0
push 0x418
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [esi + 0x28]
push edi
push 0
push 0x436
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 1
push 0x411
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc4]
call sym.xIns.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov al, 1
jmp 0x501dde
cmp ecx, 0x2a3
je 0x501cc8
cmp ecx, 0x8001
jne case.0x5013e2.276
lea eax, [esi + 0x1e0]
xor edi, edi
mov ecx, eax
mov dword [ebp - 0x1a4], eax
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x501cbb
mov esi, dword [ebp - 0x1a4]
push edi
mov ecx, esi
call sym.xIns.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
test eax, eax
je 0x501ca9
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, esi
inc edi
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp edi, eax
jl 0x501c95
mov esi, dword [ebp - 0x19c]
lea ecx, [esi + 0x1e0]
call sym.xIns.exe_public:_void___thiscall_DuiLib::CStdPtrArray::Empty_void_
jmp case.0x5013e2.276
mov ecx, dword [esi + 0x24]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test ecx, ecx
je 0x501ce3
lea eax, [esi + 0x28]
push eax
push 0
push 0x411
push ecx
call edi
cmp byte [esi + 0x19d], 0
je 0x501cfa
push 0xffffffffffffffff
push 0
push 0x200
push dword [esi + 4]
call edi
mov byte [esi + 0x19d], 0
push 0
lea ecx, [esi + 0x1ec]
call sym.xIns.exe_public:_void____thiscall_DuiLib::CStdPtrArray::GetAt_int_const
mov edi, eax
test edi, edi
je 0x501ddc
lea eax, [esi + 0x1a4]
mov dword [ebp - 0x198], eax
jmp 0x501d30
mov ecx, dword [ebp - 0x1bc]
push 0
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CStdPtrArray::Remove_int_
mov ecx, dword [edi + 0x108]
test ecx, ecx
je 0x501d62
add ecx, 0x38
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CEventSource::operator_bool_void_
test al, al
je 0x501d62
mov ecx, dword [edi + 0x108]
push edi
add ecx, 0x38
call sym.xIns.exe_public:_bool___thiscall_DuiLib::CEventSource::operator___void__
mov ecx, dword [ebp - 0x198]
xor esi, esi
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x501d96
mov ecx, dword [ebp - 0x198]
push esi
call sym.xIns.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebp - 0x198]
inc esi
call sym.xIns.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp esi, eax
jl 0x501d73
mov dword [ebp - 0x19c], edi
mov dword [ebp - 4], 3
lea ecx, [edi + 0x84]
call sym.xIns.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call sym.xIns.exe_public:_void___thiscall_DuiLib::CDuiString::destructor_void_
push edi
call fcn.004b0c50
mov ecx, dword [ebp - 0x1bc]
add esp, 4
push 0
call sym.xIns.exe_public:_void____thiscall_DuiLib::CStdPtrArray::GetAt_int_const
mov edi, eax
test edi, edi
jne 0x501d30
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c2ee0
mov esp, ebp
pop ebp
ret 0x10