Function at 0x442bd0
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
xor eax, eax
push 0xfffffffffffffff6
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x32000a
call edi
push 0xfffffffffffffff5
mov ebx, eax
call edi
push 0xfffffffffffffff4
mov dword [esp + 0x14], eax
call edi
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
cmp dword [0x4945d0], ecx
je 0x442c32
cmp ebx, ecx
je 0x442c32
cmp dword [esp + 0x10], ecx
je 0x442c32
cmp eax, ecx
je 0x442c32
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
mov dword [esp + 0x14], eax
jmp 0x442c38
mov dword [0x4945d0], ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x442c8c
cmp dword [esp + 0x14], 0
jne 0x442c8c
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x442c8c
push 0x480834
call fcn.00456d8e
mov esi, dword [esp + 0x20]
add esp, 4
push 5
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
cmp dword [0x4945d0], 0
jne 0x442d64
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x442cac
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0xf
push 0x47ff68
push esi
mov ebx, eax
call fcn.0042f030
mov ecx, dword [esi + 8]
add esp, 0xc
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
push edx
lea eax, [esi + 0x40]
push eax
push esi
mov dword [esp + 0x40], 4
call fcn.00429880
add dword [esi + 8], 0x10
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 8]
add esp, 0x10
test eax, eax
je 0x442d3a
cmp eax, 1
jne 0x442cff
cmp dword [ecx - 0x10], 0
je 0x442d3a
cmp eax, 3
jne 0x442d12
fld qword [ecx - 0x10]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x442d3a
push 0
push ebx
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 0x442ba0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
add dword [esi + 8], 0xfffffff0
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0xfffffffffffffff6
call edi
push 0xfffffffffffffff5
mov ebx, eax
call edi
push 0xfffffffffffffff4
mov dword [esp + 0x14], eax
call edi
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0xc]
add eax, 0x20
cmp eax, dword [esi + 8]
jae 0x442d7c
cmp eax, 0x47d830
je 0x442d7c
cmp dword [eax + 8], 0
jg 0x442d83
mov eax, dword [0x496214]
jmp 0x442d91
push 0
push 3
mov eax, esi
call fcn.0041d410
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0xb7
push ebx
call edi
push 3
push esi
call edi
cmp dword [0x4945d0], 0
jne 0x442ee8
cmp dword [0x496228], 0
jne 0x442ee8
push 0x4000
push esi
call fcn.0045cd30
add esp, 8
cmp eax, 0xffffffff
je 0x442ca3
push 1
push eax
call fcn.0045b1b8
push 0x47ce14
push 1
call fcn.0045d42a
push 0
push 4
push 0
push eax
mov dword [0x496228], eax
call fcn.0045c212
mov esi, dword [0x496228]
mov ecx, 8
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
call fcn.004587a0
lea edi, [eax + 0x20]
push 0x4000
mov ecx, 8
lea esi, [esp + 0x4c]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0045cd30
push 0
push eax
call fcn.0045b1b8
push 0x47e9f4
push 0
call fcn.0045d42a
push 0
push 4
push 0
push eax
mov dword [0x49622c], eax
call fcn.0045c212
mov esi, dword [0x49622c]
mov ecx, 8
lea edi, [esp + 0x70]
add esp, 0x48
rep movsd dword es:[edi], dword [esi]
call fcn.004587a0
mov edi, eax
mov ecx, 8
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
push 0x4000
push ecx
call fcn.0045cd30
push 2
push eax
call fcn.0045b1b8
push 0x47ce14
push 2
call fcn.0045d42a
push 0
push 4
push 0
push eax
mov dword [0x496230], eax
call fcn.0045c212
mov esi, dword [0x496230]
mov ecx, 8
lea edi, [esp + 0x50]
add esp, 0x28
rep movsd dword es:[edi], dword [esi]
call fcn.004587a0
lea edi, [eax + 0x40]
mov ecx, 8
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret