Function at 0x445050
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 [0x496640], 0
mov dword [esp + 0x14], eax
je 0x4450a4
cmp dword [esp + 0x10], 0
je 0x4450a4
test edi, edi
je 0x4450a4
test eax, eax
jne 0x44519c
mov dword [0x496640], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edi, eax
test edi, edi
je 0x44510b
push 0x482a24
call fcn.0045a93e
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 0x4450e8
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4450f1
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 0x44511e
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, 0x482110
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 0x445172
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 0x445020
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 0x4451b4
cmp eax, 0x47f988
je 0x4451b4
cmp dword [eax + 8], 0
jg 0x4451bb
mov eax, dword [0x49820c]
jmp 0x4451c9
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 [0x496640], 0
jne 0x445324
cmp dword [0x498220], 0
jne 0x445324
push 0x4000
push edi
call fcn.0045fdb3
add esp, 8
cmp eax, 0xffffffff
je 0x445115
push 1
push eax
call fcn.0045e448
push 0x47ee84
push 1
call fcn.004604ad
push 0
push 4
push 0
push eax
mov dword [0x498220], eax
call fcn.0045f295
mov esi, dword [0x498220]
mov ecx, 8
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
call fcn.0045a615
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.0045fdb3
push 0
push eax
call fcn.0045e448
push 0x480b20
push 0
call fcn.004604ad
push 0
push 4
push 0
push eax
mov dword [0x498224], eax
call fcn.0045f295
mov esi, dword [0x498224]
mov ecx, 8
lea edi, [esp + 0x68]
add esp, 0x48
rep movsd dword es:[edi], dword [esi]
call fcn.0045a615
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.0045fdb3
push 2
push eax
call fcn.0045e448
push 0x47ee84
push 2
call fcn.004604ad
push 0
push 4
push 0
push eax
mov dword [0x498228], eax
call fcn.0045f295
mov esi, dword [0x498228]
mov ecx, 8
lea edi, [esp + 0x48]
add esp, 0x28
rep movsd dword es:[edi], dword [esi]
call fcn.0045a615
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