Function at 0x4565a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x481c63
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [esi + 0x18], ebx
mov eax, dword [ebx + 0x418]
push 0x3f8
mov dword [esi + 0x1bc], eax
call fcn.00469d66
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
xor ecx, ecx
cmp edi, ecx
mov dword [esp + 0x58], ecx
je 0x456608
push edi
call fcn.0044a290
mov dword [edi], vtable.GameMgr::GMVerticalLayout.0
mov ecx, edi
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esi + 0x18]
add eax, 0x3f8
mov dword [esi + 0x1c], ecx
cmp dword [eax + 0x18], 8
jb 0x456626
mov eax, dword [eax + 4]
jmp 0x456629
add eax, 4
push eax
push ecx
call fcn.00436330
mov eax, dword [esi + 0x18]
mov edi, dword [eax + 0x41c]
mov eax, dword [eax + 0x420]
mov edx, dword [ebx]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0xb0]
mov ecx, ebx
call eax
test edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
je 0x456678
add ecx, edi
mov dword [esp + 0x24], ecx
cmp dword [esp + 0x18], 0
jne 0x456753
mov eax, dword [esi + 0x18]
add eax, 0x430
push eax
lea edi, [esp + 0x30]
call fcn.00457020
mov dword [esp + 0x58], 1
mov ecx, dword [esp + 0x30]
xor edi, edi
cmp ecx, edi
jne 0x4566ad
mov dword [esp + 0x10], edi
jmp 0x4566ba
mov eax, dword [esp + 0x34]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], edi
jbe 0x4566fa
jmp 0x4566c6
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x4566d7
mov eax, dword [esp + 0x34]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4566e0
call fcn.00469efa
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + edi*4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd8]
call edx
add dword [esp + 0x18], eax
add edi, 1
cmp edi, dword [esp + 0x10]
jb 0x4566c2
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1ec]
lea edx, [esp + 0x3c]
push edx
call eax
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x10]
add edx, ecx
add dword [esp + 0x18], edx
cmp edi, 1
jbe 0x45673a
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1f4]
call edx
add edi, 0xffffffff
imul eax, edi
add dword [esp + 0x18], eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x30]
test eax, eax
je 0x456753
push eax
call fcn.00469d48
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [ebx]
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x114]
mov ecx, ebx
call eax
mov edx, dword [eax + 0x164]
push 2
lea ecx, [esp + 0x20]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebx]
mov edx, dword [eax + 0x114]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov eax, dword [eax + 0x164]
sub edx, ecx
push edx
mov edx, dword [esp + 0x20]
sub edi, edx
push edi
push ecx
push edx
push 0x88
push SysReAllocString
push 0
push eax
mov eax, esi
call fcn.00432010
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push edi
call ebx
test eax, eax
je 0x4567dd
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x4567d1
mov ecx, dword [esi + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4