Function at 0x40cb20
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x477434]
sub esp, 0x20
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x40ccfa
call fcn.00448260
mov ecx, dword [0x47744c]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x10]
mov dword [0x477434], 1
push eax
push ecx
call ebx
mov eax, dword [0x477358]
mov ebp, dword [sym.imp.USER32.dll_MapWindowPoints]
lea edx, [esp + 0x10]
push 2
push edx
push eax
push 0
call ebp
push 6
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
sub eax, ecx
cdq
sub eax, edx
mov edx, dword [0x47744c]
sar eax, 1
add eax, ecx
mov dword [esp + 0x20], eax
sub eax, ecx
mov ecx, dword [esp + 0x1c]
sub eax, 2
push eax
mov eax, dword [esp + 0x18]
sub ecx, eax
push ecx
push 0
push 0
push 0
push edx
call esi
push 4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, eax
add eax, 2
sub ecx, edx
mov edx, dword [esp + 0x14]
push ecx
push 4
push eax
mov eax, dword [0x477448]
push edx
push 0
push eax
call esi
mov ecx, dword [0x477448]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esp + 0x1c]
add edx, 0xfffffffe
push edx
call fcn.0040c7a0
mov edx, dword [0x4773dc]
lea ecx, [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
push edx
lea edi, [eax - 2]
call ebx
mov ecx, dword [0x477358]
lea eax, [esp + 0x20]
push 2
push eax
push ecx
push 0
call ebp
mov edx, edi
mov dword [esp + 0x2c], edi
mov ecx, dword [esp + 0x24]
push 6
sub edx, ecx
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x4773dc]
push edx
mov edx, dword [esp + 0x28]
sub eax, edx
push eax
push 0
push 0
push 0
push ecx
call esi
mov eax, dword [0x47741c]
lea edx, [esp + 0x20]
push edx
push eax
call ebx
mov edx, dword [0x477358]
lea ecx, [esp + 0x20]
push 2
push ecx
push edx
push 0
call ebp
mov ecx, dword [0x47741c]
push 5
mov eax, dword [esp + 0x24]
push 0
push 0
push edi
push eax
push 0
push ecx
mov dword [esp + 0x40], edi
call esi
mov eax, dword [0x477450]
lea edx, [esp + 0x20]
push edx
push eax
call ebx
mov edx, dword [0x477358]
lea ecx, [esp + 0x20]
push 2
push ecx
push edx
push 0
call ebp
mov eax, dword [0x47733c]
add edi, 4
mov ecx, dword [esp + 0x28]
sub eax, edi
push 4
mov edx, dword [0x477450]
push eax
mov eax, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x2c], edi
push ecx
push edi
push eax
push 0
push edx
call esi
mov eax, dword [0x47741c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x477338]
mov ebp, dword [0x477330]
mov edx, dword [0x477424]
push 6
sub ecx, ebp
push 4
push ecx
push 0
push 0
push 0
push edx
call esi
call fcn.00448540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
call fcn.00448260
mov eax, dword [0x477448]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
mov dword [0x477434], 0
call esi
mov ecx, dword [0x47741c]
push 5
push ecx
call esi
mov eax, dword [0x47744c]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x10]
push edx
push eax
call edi
mov edx, dword [0x477358]
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
lea ecx, [esp + 0x10]
push 2
push ecx
push edx
push 0
call ebx
mov eax, dword [0x47733c]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
sub eax, ecx
push 6
mov ecx, dword [0x47744c]
push eax
mov eax, dword [esp + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SetWindowPos]
sub eax, esi
push eax
push 0
push 0
push 0
push ecx
call ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, edx
add eax, 4
cdq
sub eax, edx
sar eax, 1
push eax
call fcn.0040c7a0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
sub eax, edx
add eax, 4
cdq
sub eax, edx
lea edx, [esp + 0x20]
mov esi, eax
mov eax, dword [0x4773dc]
push edx
push eax
sar esi, 1
call edi
mov edx, dword [0x477358]
lea ecx, [esp + 0x20]
push 2
push ecx
push edx
push 0
call ebx
mov eax, esi
push 6
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
sub eax, edx
mov dword [esp + 0x30], esi
push eax
mov eax, dword [esp + 0x28]
sub ecx, eax
push ecx
mov edx, dword [0x4773dc]
push 0
push 0
push 0
push edx
call ebp
mov ecx, dword [0x47741c]
lea eax, [esp + 0x20]
push eax
push ecx
call edi
mov eax, dword [0x477358]
lea edx, [esp + 0x20]
push 2
push edx
push eax
push 0
call ebx
mov edx, dword [0x47741c]
push 5
mov ecx, dword [esp + 0x24]
push 0
push 0
push esi
push ecx
push 0
push edx
mov dword [esp + 0x40], esi
call ebp
mov ecx, dword [0x477450]
lea eax, [esp + 0x20]
push eax
push ecx
call edi
mov eax, dword [0x477358]
lea edx, [esp + 0x20]
push 2
push edx
push eax
push 0
call ebx
mov ecx, dword [0x47733c]
add esi, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
sub ecx, esi
push 4
sub edx, eax
push ecx
push edx
push esi
push eax
mov eax, dword [0x477450]
push 0
push eax
mov dword [esp + 0x40], esi
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040c370
call fcn.00448540
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret