Function at 0x447af0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
xor eax, eax
push 0xfffffffffffffff6
mov dword [esp + 0x14], eax
lea edx, [eax + 0xa]
mov dword [esp + 0x18], 0x32000a
call edi
push 0xfffffffffffffff5
mov ebx, eax
call edi
push 0xfffffffffffffff4
mov esi, eax
call edi
cmp dword [0x499640], 0
mov dword [esp + 0xc], eax
je 0x447b40
test ebx, ebx
je 0x447b40
test esi, esi
je 0x447b40
test eax, eax
jne 0x447cad
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [0x499640], 0
call edi
mov esi, eax
test esi, esi
je 0x447ba5
push 0x485a80
call fcn.0045d4ee
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x447b82
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x447b8b
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x447bb8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edi
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov edi, 0x485150
mov eax, 0xffffd8ee
mov esi, ebx
call fcn.0041c9a0
mov esi, dword [ebx + 8]
add esi, 0xfffffff0
cmp esi, 0x482998
je 0x447c7b
mov eax, dword [esi + 8]
cmp eax, 4
je 0x447c1d
cmp eax, 3
jne 0x447c7b
cmp eax, 4
je 0x447c1d
mov edi, ebx
call fcn.0042cae0
test eax, eax
je 0x447c22
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x447c17
mov eax, ebx
call fcn.0042c8b0
mov esi, dword [ebx + 8]
sub esi, 0x10
mov eax, dword [esi]
add eax, 0x10
mov ecx, 0x483ad8
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x447c47
test dl, dl
je 0x447c43
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x447c47
add eax, 2
add ecx, 2
test dl, dl
jne 0x447c27
xor eax, eax
jmp 0x447c4c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x447c7b
mov edx, dword [esp + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0
push 0
push 1
push 0xf060
push eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
push 1
push 0x447ac0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov esi, dword [esp + 0xc]
add dword [ebx + 8], 0xfffffff0
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
call edi
push 0xfffffffffffffff5
mov ebx, eax
call edi
push 0xfffffffffffffff4
mov esi, eax
call edi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
add ecx, 0x20
cmp ecx, dword [eax + 8]
jae 0x447cc9
cmp ecx, 0x482998
je 0x447cc9
cmp dword [ecx + 8], 0
jg 0x447cd0
mov eax, dword [0x49b20c]
jmp 0x447cdc
push 0
push 3
call fcn.0041f4c0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea eax, [esp + 0x10]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0xa7
push ebx
call edi
push 3
push esi
call edi
cmp dword [0x499640], 0
jne 0x447e2f
cmp dword [0x49b220], 0
jne 0x447e2f
push 0x4000
push esi
call fcn.00462963
add esp, 8
cmp eax, 0xffffffff
je 0x447baf
push 1
push eax
call fcn.00460ff8
push 0x481e80
push 1
call fcn.0046305d
push 0
push 4
push 0
push eax
mov dword [0x49b220], eax
call fcn.00461e45
mov esi, dword [0x49b220]
mov ecx, 8
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
call fcn.0045d1c5
lea edi, [eax + 0x20]
push 0x4000
mov ecx, 8
lea esi, [esp + 0x3c]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00462963
push 0
push eax
call fcn.00460ff8
push 0x483b28
push 0
call fcn.0046305d
push 0
push 4
push 0
push eax
mov dword [0x49b224], eax
call fcn.00461e45
mov esi, dword [0x49b224]
mov ecx, 8
lea edi, [esp + 0x60]
add esp, 0x48
rep movsd dword es:[edi], dword [esi]
call fcn.0045d1c5
mov edi, eax
mov ecx, 8
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
push 0x4000
push ecx
call fcn.00462963
push 2
push eax
call fcn.00460ff8
push 0x481e80
push 2
call fcn.0046305d
push 0
push 4
push 0
push eax
mov dword [0x49b228], eax
call fcn.00461e45
mov esi, dword [0x49b228]
mov ecx, 8
lea edi, [esp + 0x40]
add esp, 0x28
rep movsd dword es:[edi], dword [esi]
call fcn.0045d1c5
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret