Function at 0x40d4e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [edi + 0x360]
call fcn.0040fbe0
test eax, eax
je 0x40d501
call fcn.0040fbe0
mov dword [eax + 0x10], 0
push 1
push 0x2b3
push 0x3cf
push 0x14
push 0x14
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ebx, dword [sym.imp.K8UIRender.dll_public:_class_GameMgr::GMControl____thiscall_GameMgr::GMPaintManager::FindControl_unsigned_int_const]
lea ebp, [edi + 0x24]
push 0x79
mov ecx, ebp
call ebx
test eax, eax
je 0x40d541
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd4]
push 1
call eax
push 0x6b
mov ecx, ebp
call ebx
test eax, eax
je 0x40d559
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd4]
push 1
call eax
push 0x89
mov ecx, ebp
call ebx
test eax, eax
je 0x40d574
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd4]
push 1
call eax
push 0x75
mov ecx, ebp
call ebx
test eax, eax
je 0x40d58c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd4]
push 1
call eax
push 0x76
mov ecx, ebp
call ebx
test eax, eax
je 0x40d5a4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd4]
push 1
call eax
push 0x93
mov ecx, ebp
call ebx
test eax, eax
je 0x40d5bf
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd4]
push 0
call eax
mov esi, dword [edi + 0x360]
call fcn.0040fbe0
test eax, eax
je 0x40d5da
call fcn.0040fbe0
mov dword [eax + 0xc], 1
push 3
push 3
push 3
push 3
lea ecx, [esp + 0x20]
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMRect::constructor_int__int__int__int_]
push eax
mov ecx, ebp
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMPaintManager::SetSizeBox_struct_tagRECT__]
push 0x7b
mov ecx, ebp
call ebx
mov esi, eax
test esi, esi
je 0x40d637
cmp byte [edi + 0x2ae], 0
jne 0x40d637
mov edx, dword [esi]
mov eax, dword [edx + 0xd4]
xor ebx, ebx
push ebx
mov ecx, esi
xor ebp, ebp
call eax
mov edx, dword [esi]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [edx + 0xc4]
mov ecx, esi
call eax
mov ecx, dword [edi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebp, dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::operator_struct_HWND____void_const]
push 0xffffffffffffffec
mov ecx, edi
call ebp
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call ebx
and eax, 0xffffff7f
push eax
push 0xffffffffffffffec
mov ecx, edi
call ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xfffffffffffffff0
mov ecx, edi
call ebp
push eax
call ebx
and eax, 0xbfffffff
push eax
push 0xfffffffffffffff0
mov ecx, edi
call ebp
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [edi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_SetParent]
push 0
mov ecx, edi
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMWindowWnd::CenterWindow_struct_HWND____]
test esi, esi
je 0x40d6b8
cmp byte [edi + 0x2ae], 0
jne 0x40d6b8
mov eax, dword [esi]
mov edx, dword [eax + 0xd4]
push 1
mov ecx, esi
call edx
mov eax, dword [edi + 4]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
mov byte [edi + 0x375], 1
pop ebx
add esp, 0x18
ret