Function at 0x415470
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [0x491428]
mov esi, ecx
jne 0x4154bc
cmp dword [esi + 0x210], 0
je 0x4154bc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp + 0xc]
jne 0x4154b1
cmp dword [ebp + 0x10], 0
mov ecx, dword [esi + 0x210]
setne al
push eax
push ecx
call fcn.004181a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, dword [0x49142c]
jne 0x415563
mov eax, dword [ebp + 0x10]
xor edi, edi
cmp eax, 1
jne 0x4154ea
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov edi, eax
neg edi
sbb edi, edi
and edi, 0xfffffffb
add edi, 5
jmp 0x4154f1
test eax, eax
jne 0x4154f1
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x415537
cmp edi, 5
jne 0x415537
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 9
push ecx
call edi
mov ecx, dword [esi + 0x210]
push 9
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call edi
lea ecx, [esi + 0x24]
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMPaintManager::Invalidate_void_]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push edx
call ebx
mov ecx, dword [esi + 0x210]
test ecx, ecx
je 0x415558
push edi
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 0x112
mov ebx, dword [ebp + 0xc]
jne 0x4155d9
cmp ebx, 0xf060
jne 0x41558e
mov esi, dword [esi + 0x210]
mov bl, 1
call fcn.00417910
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0xf020
jne 0x4155f0
lea ecx, [esp + 0x10]
call dword [sym.imp.K8UIRender.dll_public:_void___thiscall_GameMgr::GMRect::constructor_void_]
mov ecx, dword [esi + 0x210]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.K8UIRender.dll_public:_struct_HWND______thiscall_GameMgr::GMWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 4
push 0
sub ecx, eax
push ecx
push edx
push eax
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
push edi
mov ecx, esi
call dword [sym.imp.K8UIRender.dll_public_virtual:_long_int___thiscall_GameMgr::GMWindowImplBase::HandleMessage_unsigned_int__unsigned_int__long_int_]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0xf120
jne 0x4155d9
mov ecx, dword [esi + 4]
push 9
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x218]
mov edx, dword [esi + 0x220]
mov ecx, dword [esi + 0x214]
push 4
sub edx, eax
push edx
mov edx, dword [esi + 0x21c]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc