Function at 0x445a10
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push esi
push edi
mov esi, eax
xor eax, eax
push 0xfffffffffffffff6
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x32000a
call ebx
push 0xfffffffffffffff5
mov dword [esp + 0x14], eax
call ebx
push 0xfffffffffffffff4
mov edi, eax
call ebx
cmp dword [0x497640], 0
mov dword [esp + 0x14], eax
je 0x445a64
cmp dword [esp + 0x10], 0
je 0x445a64
test edi, edi
je 0x445a64
test eax, eax
jne 0x445b5c
mov dword [0x497640], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edi, eax
test edi, edi
je 0x445acb
push 0x483a34
call fcn.0045b28e
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_FlushConsoleInputBuffer]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x445aa8
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x445ab1
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
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 0x445ade
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [esp + 0x10], eax
mov edi, str._STUDIO_INVOKED
mov eax, 0xffffd8ee
call fcn.0041b050
push 0xffffffffffffffff
push esi
call fcn.0041ad50
mov edi, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x445b32
push 0
push edi
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 0x4459e0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
add dword [esi + 8], 0xfffffff0
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xfffffffffffffff6
call ebx
push 0xfffffffffffffff5
mov dword [esp + 0x14], eax
call ebx
push 0xfffffffffffffff4
mov edi, eax
call ebx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
add eax, 0x20
cmp eax, dword [esi + 8]
jae 0x445b74
cmp eax, 0x480988
je 0x445b74
cmp dword [eax + 8], 0
jg 0x445b7b
mov eax, dword [0x49920c]
jmp 0x445b89
push 0
push 3
mov eax, esi
call fcn.0041db70
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea edx, [esp + 0x18]
push edx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0xa7
push eax
call esi
push 3
push edi
call esi
cmp dword [0x497640], 0
jne 0x445ce4
cmp dword [0x499220], 0
jne 0x445ce4
push 0x4000
push edi
call fcn.00460703
add esp, 8
cmp eax, 0xffffffff
je 0x445ad5
push 1
push eax
call fcn.0045ed98
push 0x47fe84
push 1
call fcn.00460dfd
push 0
push 4
push 0
push eax
mov dword [0x499220], eax
call fcn.0045fbe5
mov esi, dword [0x499220]
mov ecx, 8
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
call fcn.0045af65
lea edi, [eax + 0x20]
mov ecx, 8
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
push 0x4000
push ecx
call fcn.00460703
push 0
push eax
call fcn.0045ed98
push 0x481b18
push 0
call fcn.00460dfd
push 0
push 4
push 0
push eax
mov dword [0x499224], eax
call fcn.0045fbe5
mov esi, dword [0x499224]
mov ecx, 8
lea edi, [esp + 0x68]
add esp, 0x48
rep movsd dword es:[edi], dword [esi]
call fcn.0045af65
mov edx, dword [esp + 0x14]
mov edi, eax
push 0x4000
mov ecx, 8
lea esi, [esp + 0x24]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00460703
push 2
push eax
call fcn.0045ed98
push 0x47fe84
push 2
call fcn.00460dfd
push 0
push 4
push 0
push eax
mov dword [0x499228], eax
call fcn.0045fbe5
mov esi, dword [0x499228]
mov ecx, 8
lea edi, [esp + 0x48]
add esp, 0x28
rep movsd dword es:[edi], dword [esi]
call fcn.0045af65
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret