Function at 0x442cd0
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 0x442d32
cmp ebx, ecx
je 0x442d32
cmp dword [esp + 0x10], ecx
je 0x442d32
cmp eax, ecx
je 0x442d32
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
mov dword [esp + 0x14], eax
jmp 0x442d38
mov dword [0x4945d0], ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x442d8c
cmp dword [esp + 0x14], 0
jne 0x442d8c
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x442d8c
push 0x480864
call fcn.00456e6e
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 0x442e64
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x442dac
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 0x47ff98
push esi
mov ebx, eax
call fcn.0042f120
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.00429970
add dword [esi + 8], 0x10
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 8]
add esp, 0x10
test eax, eax
je 0x442e3a
cmp eax, 1
jne 0x442dff
cmp dword [ecx - 0x10], 0
je 0x442e3a
cmp eax, 3
jne 0x442e12
fld qword [ecx - 0x10]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x442e3a
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 0x442ca0
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 0x442e7c
cmp eax, 0x47d830
je 0x442e7c
cmp dword [eax + 8], 0
jg 0x442e83
mov eax, dword [0x496214]
jmp 0x442e91
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 0x442fe8
cmp dword [0x496228], 0
jne 0x442fe8
push 0x4000
push esi
call fcn.0045ce10
add esp, 8
cmp eax, 0xffffffff
je 0x442da3
push 1
push eax
call fcn.0045b298
push 0x47ce14
push 1
call fcn.0045d50a
push 0
push 4
push 0
push eax
mov dword [0x496228], eax
call fcn.0045c2f2
mov esi, dword [0x496228]
mov ecx, 8
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
call fcn.00458880
lea edi, [eax + 0x20]
push 0x4000
mov ecx, 8
lea esi, [esp + 0x4c]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0045ce10
push 0
push eax
call fcn.0045b298
push 0x47e9f4
push 0
call fcn.0045d50a
push 0
push 4
push 0
push eax
mov dword [0x49622c], eax
call fcn.0045c2f2
mov esi, dword [0x49622c]
mov ecx, 8
lea edi, [esp + 0x70]
add esp, 0x48
rep movsd dword es:[edi], dword [esi]
call fcn.00458880
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.0045ce10
push 2
push eax
call fcn.0045b298
push 0x47ce14
push 2
call fcn.0045d50a
push 0
push 4
push 0
push eax
mov dword [0x496230], eax
call fcn.0045c2f2
mov esi, dword [0x496230]
mov ecx, 8
lea edi, [esp + 0x50]
add esp, 0x28
rep movsd dword es:[edi], dword [esi]
call fcn.00458880
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