Function at 0x445160
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4854e1
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
push 0x540
mov dword [esi + 0x20], ebx
call fcn.00468c53
mov edi, eax
add esp, 4
mov dword [esp + 0x20], edi
test edi, edi
mov dword [esp + 0x80], 0
je 0x4451ce
push edi
call fcn.004499c0
mov dword [edi], vtable.GameMgr::GMVerticalLayout.0
mov dword [edi + 0x4ec], 2
jmp 0x4451d0
xor edi, edi
mov dword [esp + 0x80], 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 0x44520d
mov eax, dword [eax + 4]
jmp 0x445210
add eax, 4
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, eax
call fcn.00430ec0
mov eax, dword [esi + 0x20]
mov edx, dword [eax + 0x568]
mov edi, dword [eax + 0x564]
mov eax, dword [ebx]
lea ecx, [esp + 0x54]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x2dc]
push ecx
mov ecx, ebx
mov dword [esp + 0x28], edi
call edx
test edi, edi
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
je 0x445271
add ecx, edi
mov dword [esp + 0x3c], ecx
mov eax, dword [esi + 0x20]
add eax, 0x57c
push eax
lea edi, [esp + 0x48]
mov dword [esp + 0x14], 0
call fcn.00446000
mov dword [esp + 0x80], 1
mov eax, dword [esi + 0x20]
mov edx, dword [esp + 0x48]
test edx, edx
mov ecx, dword [eax + 0x590]
mov edi, dword [eax + 0x578]
jne 0x4452b1
xor eax, eax
jmp 0x4452ba
mov eax, dword [esp + 0x4c]
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 0x445327
mov edx, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
lea ecx, [edx + ecx*4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jmp 0x4452e5
mov edx, dword [esp + 0x48]
test edx, edx
je 0x4452f8
mov eax, dword [esp + 0x4c]
sub eax, edx
sar eax, 2
cmp dword [esp + 0x18], eax
jb 0x4452fd
call fcn.0046908b
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 0x4452e1
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x25c]
lea edx, [esp + 0x64]
push edx
call eax
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x10]
add edx, ecx
add edi, edx
cmp dword [esp + 0x20], 1
mov dword [esp + 0x10], edi
jbe 0x445371
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 0x44537f
mov dword [esp + 0x28], edi
jmp 0x44539d
mov edx, dword [esi + 0x20]
cmp byte [edx + 0x575], 0
je 0x44539d
cmp eax, edi
lea eax, [esp + 0x28]
jl 0x445397
lea eax, [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov eax, dword [ebx]
add edx, ecx
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x128]
mov ecx, ebx
call edx
mov eax, dword [eax + 0x178]
push 2
lea ecx, [esp + 0x38]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edx, dword [ebx]
mov eax, dword [edx + 0x128]
mov ecx, ebx
call eax
mov ecx, dword [eax + 0x178]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov edx, dword [esi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
test eax, eax
je 0x445415
call fcn.0041d690
test al, al
je 0x44549b
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
test eax, eax
jne 0x44542b
call fcn.0041d5e0
test al, al
je 0x44549b
test byte [0x4a3afc], 1
jne 0x44545d
or dword [0x4a3afc], 1
mov byte [esp + 0x80], 2
call fcn.0041b7f0
push 0x486110
call fcn.00468815
add esp, 4
mov byte [esp + 0x80], 1
mov ecx, dword [0x4a3ae8]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push esi
push ecx
mov ecx, dword [esp + 0x30]
push 0
push edx
sub ebx, ecx
push ebx
sub edi, eax
push edi
push ecx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push Ordinal_4
push 0
mov ecx, esi
call edx
push eax
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push edi
call ebx
test eax, eax
je 0x4454bc
jmp 0x4454b0
push edi
call ebx
mov edi, eax
push edi
call ebx
test eax, eax
jne 0x4454b0
mov eax, dword [esi + 0x20]
cmp byte [eax + 0x58c], 0
jne 0x4454e4
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 eax, dword [esp + 0x48]
test eax, eax
je 0x4454f5
push eax
call fcn.00468cbd
add esp, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4