Function at 0x4aa090
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x514de3
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x544
mov dword [esi + 0x20], ebx
call fcn.004e7d83
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
mov dword [esp + 0x78], 0
je 0x4aa0f8
push edi
call fcn.004ae860
mov dword [edi], vtable.GameMgr::GMVerticalLayout.0
mov dword [edi + 0x4f0], 2
jmp 0x4aa0fa
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, 0x548
cmp dword [eax + 0x18], 8
jb 0x4aa134
mov eax, dword [eax + 4]
jmp 0x4aa137
add eax, 4
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, eax
call fcn.00493060
mov eax, dword [esi + 0x20]
mov edx, dword [eax + 0x570]
mov edi, dword [eax + 0x56c]
mov eax, dword [ebx]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x2e8]
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 0x4aa198
add ecx, edi
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 0x20]
add eax, 0x588
push eax
lea edi, [esp + 0x40]
mov dword [esp + 0x14], 0
call fcn.004ab020
mov dword [esp + 0x78], 1
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x40]
test edx, edx
mov ecx, dword [eax + 0x59c]
mov edi, dword [eax + 0x584]
jne 0x4aa1d5
xor eax, eax
jmp 0x4aa1de
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 0x4aa24b
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 0x4aa209
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4aa21c
mov eax, dword [esp + 0x44]
sub eax, edx
sar eax, 2
cmp dword [esp + 0x18], eax
jb 0x4aa221
call fcn.004e89bf
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 0x4aa205
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x264]
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 0x4aa295
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x26c]
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 0x4aa2a3
mov dword [esp + 0x28], edi
jmp 0x4aa2c1
mov edx, dword [esi + 0x20]
cmp byte [edx + 0x581], 0
je 0x4aa2c1
cmp eax, edi
lea eax, [esp + 0x28]
jl 0x4aa2bb
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.00487370
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push edi
call ebx
test eax, eax
je 0x4aa34c
nop
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x4aa340
mov ecx, dword [esi + 0x20]
cmp byte [ecx + 0x598], 0
jne 0x4aa374
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 0x4aa385
push eax
call fcn.004e7d7e
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