Function at 0x405130
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
push ecx
lea edi, [ebp - 0x34]
mov ecx, 0xd
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x47b7c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x2e4], ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0x2e8], 0
cmp dword [ebp + 0x10], 0
je 0x40519d
mov esi, esp
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x38
call dword [sym.imp.DuiLib_ud.dll_public:_class_DuiLib::CStdString_const____thiscall_DuiLib::CStdString::operator_wchar_t_const__]
cmp esi, esp
call fcn.004106a0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x34], edx
cmp dword [ebp - 8], 0
je 0x4051b7
mov eax, dword [ebp - 8]
add eax, 0x10
mov dword [ebp - 0x30], eax
jmp 0x4051be
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, 0x47cea4
call fcn.00401145
mov edx, dword [ebp - 8]
cmp dword [edx + 0x2e4], 0
jne 0x4051e3
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x28]
mov dword [ebp - 0x34], ecx
jmp 0x405219
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x2e4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x2e4]
mov edx, dword [eax]
mov esi, esp
mov eax, dword [edx + 0x1c]
call eax
cmp esi, esp
call fcn.004106a0
mov esi, esp
mov ecx, eax
call dword [sym.imp.DuiLib_ud.dll_public:_struct_HWND______thiscall_DuiLib::CPaintManagerUI::GetPaintWindow_void_const]
cmp esi, esp
call fcn.004106a0
mov dword [ebp - 0x34], eax
mov esi, esp
lea ecx, [ebp - 0x18]
call dword [sym.imp.DuiLib_ud.dll_public:_void___thiscall_DuiLib::CRect::constructor_void_]
cmp esi, esp
call fcn.004106a0
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x1c], edx
mov esi, esp
push 0
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
push 0x88
push 0x80000000
push 0
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 8]
call dword [sym.imp.DuiLib_ud.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__struct_tagRECT__struct_HMENU____]
cmp esi, esp
call fcn.004106a0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2c], edx
mov esi, esp
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp esi, esp
call fcn.004106a0
test eax, eax
je 0x4052ba
mov esi, esp
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
cmp esi, esp
call fcn.004106a0
mov dword [ebp - 0x2c], eax
jmp 0x40528b
mov esi, esp
push 5
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, esp
call fcn.004106a0
mov esi, esp
push 0
push 1
push 0x86
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, esp
call fcn.004106a0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410690
add esp, 0x34
cmp ebp, esp
call fcn.004106a0
mov esp, ebp
pop ebp
ret 0x14