Function at 0x471530
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cfad3
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push edi
mov eax, dword [0x4f87d8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push 0x548
mov dword [esi + 0x20], ebx
call fcn.004a84f2
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
mov dword [esp + 0x78], 0
je 0x471598
push edi
call fcn.00462ca0
mov dword [edi], vtable.GameMgr::GMVerticalLayout.0
mov dword [edi + 0x4f4], 2
jmp 0x47159a
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, 0x54c
cmp dword [eax + 0x18], 8
jb 0x4715d4
mov eax, dword [eax + 4]
jmp 0x4715d7
add eax, 4
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, eax
call fcn.004464c0
mov eax, dword [esi + 0x20]
mov edx, dword [eax + 0x574]
mov edi, dword [eax + 0x570]
mov eax, dword [ebx]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x2f0]
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 0x471638
add ecx, edi
mov dword [esp + 0x34], ecx
mov eax, dword [esi + 0x20]
add eax, 0x58c
push eax
lea edi, [esp + 0x40]
mov dword [esp + 0x14], 0
call fcn.004724c0
mov dword [esp + 0x78], 1
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x40]
test edx, edx
mov ecx, dword [eax + 0x5a0]
mov edi, dword [eax + 0x588]
jne 0x471675
xor eax, eax
jmp 0x47167e
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 0x4716eb
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 0x4716a9
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4716bc
mov eax, dword [esp + 0x44]
sub eax, edx
sar eax, 2
cmp dword [esp + 0x18], eax
jb 0x4716c1
call fcn.004a8d14
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 0x4716a5
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x26c]
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 0x471735
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x274]
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 0x471743
mov dword [esp + 0x28], edi
jmp 0x471761
mov edx, dword [esi + 0x20]
cmp byte [edx + 0x585], 0
je 0x471761
cmp eax, edi
lea eax, [esp + 0x28]
jl 0x47175b
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 closesocket
push 0
push eax
mov eax, esi
call fcn.0043d210
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push edi
call ebx
test eax, eax
je 0x4717ec
nop
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x4717e0
mov ecx, dword [esi + 0x20]
cmp byte [ecx + 0x59c], 0
jne 0x471814
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 0x471825
push eax
call fcn.004a85e6
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