Function at 0x478fc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c67b3
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x540
mov dword [esi + 0x20], ebx
call fcn.004abce7
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
mov dword [esp + 0x78], 0
je 0x479028
push edi
call fcn.0047d790
mov dword [edi], vtable.GameMgr::GMVerticalLayout.0
mov dword [edi + 0x4ec], 2
jmp 0x47902a
xor edi, edi
mov dword [esp + 0x78], 0xffffffff
mov dword [esi + 0x24], edi
mov eax, dword [ebx]
mov edi, dword [edi]
mov edx, dword [eax + 0x128]
mov ecx, ebx
add edi, 0x12c
call edx
mov ecx, dword [esi + 0x24]
push eax
mov eax, dword [edi]
call eax
mov eax, dword [esi + 0x20]
add eax, 0x540
cmp dword [eax + 0x18], 8
jb 0x479064
mov eax, dword [eax + 4]
jmp 0x479067
add eax, 4
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, eax
call fcn.00441a70
mov eax, dword [esi + 0x20]
mov edx, dword [eax + 0x568]
mov edi, dword [eax + 0x564]
mov eax, dword [ebx]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x2e0]
push ecx
mov ecx, ebx
mov dword [esp + 0x28], edi
call edx
test edi, edi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], eax
je 0x4790c8
add ecx, edi
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 0x20]
add eax, 0x57c
push eax
lea edi, [esp + 0x40]
mov dword [esp + 0x14], 0
call fcn.00479dc0
mov dword [esp + 0x78], 1
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x40]
test edx, edx
mov ecx, dword [eax + 0x590]
mov edi, dword [eax + 0x578]
jne 0x479105
xor eax, eax
jmp 0x47910e
mov eax, dword [esp + 0x44]
sub eax, edx
sar eax, 2
sub eax, ecx
mov dword [esp + 0x20], eax
xor edx, edx
lea eax, [eax + edi - 1]
div edi
test eax, eax
jbe 0x47917b
mov edx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
lea ecx, [edx + ecx*4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jmp 0x479139
mov edx, dword [esp + 0x40]
test edx, edx
je 0x47914c
mov eax, dword [esp + 0x44]
sub eax, edx
sar eax, 2
cmp dword [esp + 0x18], eax
jb 0x479151
call fcn.004ac22f
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov edx, dword [eax + 0xe8]
call edx
add dword [esp + 0x10], eax
add dword [esp + 0x18], edi
lea eax, [edi*4]
add dword [esp + 0x14], eax
sub dword [esp + 0x1c], 1
jne 0x479135
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x25c]
lea edx, [esp + 0x5c]
push edx
call eax
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x10]
add edx, ecx
add edi, edx
cmp dword [esp + 0x20], 1
mov dword [esp + 0x10], edi
jbe 0x4791c5
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x264]
call edx
mov ecx, dword [esp + 0x20]
add ecx, 0xffffffff
imul eax, ecx
add edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4791d3
mov dword [esp + 0x28], edi
jmp 0x4791f1
mov edx, dword [esi + 0x20]
cmp byte [edx + 0x575], 0
je 0x4791f1
cmp eax, edi
lea eax, [esp + 0x28]
jl 0x4791eb
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov eax, dword [ebx]
add edx, ecx
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x128]
mov ecx, ebx
call edx
mov edx, dword [eax + 0x178]
push 2
lea ecx, [esp + 0x30]
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebx]
mov edx, dword [eax + 0x128]
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov eax, dword [eax + 0x178]
sub edx, ecx
push edx
mov edx, dword [esp + 0x30]
sub edi, edx
push edi
push ecx
push edx
push 0x88
push Ordinal_4
push 0
push eax
mov eax, esi
call fcn.0044e810
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push edi
call ebx
test eax, eax
je 0x47927c
nop
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x479270
mov ecx, dword [esi + 0x20]
cmp byte [ecx + 0x58c], 0
jne 0x4792a4
mov edx, dword [esi + 4]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4792b5
push eax
call fcn.004abbe4
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4