Function at 0x40d730
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [edi + 0x388]
call fcn.0040fdb0
test eax, eax
je 0x40d751
call fcn.0040fdb0
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 + 0x28]
push 0x79
mov ecx, ebp
call ebx
test eax, eax
je 0x40d791
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd8]
push 1
call eax
push 0x6b
mov ecx, ebp
call ebx
test eax, eax
je 0x40d7a9
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd8]
push 1
call eax
push 0x89
mov ecx, ebp
call ebx
test eax, eax
je 0x40d7c4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd8]
push 1
call eax
push 0x75
mov ecx, ebp
call ebx
test eax, eax
je 0x40d7dc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd8]
push 1
call eax
push 0x76
mov ecx, ebp
call ebx
test eax, eax
je 0x40d7f4
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd8]
push 1
call eax
push 0x93
mov ecx, ebp
call ebx
test eax, eax
je 0x40d80f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xd8]
push 0
call eax
mov esi, dword [edi + 0x388]
call fcn.0040fdb0
test eax, eax
je 0x40d82a
call fcn.0040fdb0
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 0x40d887
cmp byte [edi + 0x2da], 0
jne 0x40d887
mov edx, dword [esi]
mov eax, dword [edx + 0xd8]
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 + 0xc8]
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 0x40d908
cmp byte [edi + 0x2da], 0
jne 0x40d908
mov eax, dword [esi]
mov edx, dword [eax + 0xd8]
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 + 0x39d], 1
pop ebx
add esp, 0x18
ret