Function at 0x4429d0
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 0x442a32
cmp ebx, ecx
je 0x442a32
cmp dword [esp + 0x10], ecx
je 0x442a32
cmp eax, ecx
je 0x442a32
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
mov dword [esp + 0x14], eax
jmp 0x442a38
mov dword [0x4945d0], ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x442a8c
cmp dword [esp + 0x14], 0
jne 0x442a8c
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x442a8c
push 0x48080c
call fcn.00456b5e
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 0x442b64
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x442aac
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 str._STUDIO_INVOKED
push esi
mov ebx, eax
call fcn.0042eef0
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.00429740
add dword [esi + 8], 0x10
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 8]
add esp, 0x10
test eax, eax
je 0x442b3a
cmp eax, 1
jne 0x442aff
cmp dword [ecx - 0x10], 0
je 0x442b3a
cmp eax, 3
jne 0x442b12
fld qword [ecx - 0x10]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x442b3a
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 0x4429a0
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 0x442b7c
cmp eax, 0x47d830
je 0x442b7c
cmp dword [eax + 8], 0
jg 0x442b83
mov eax, dword [0x496214]
jmp 0x442b91
push 0
push 3
mov eax, esi
call fcn.0041d360
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 [0x496228], 0
jne 0x442cdb
push 0x4000
push esi
call fcn.0045cb00
add esp, 8
cmp eax, 0xffffffff
je 0x442aa3
push 1
push eax
call fcn.0045af88
push 0x47ce14
push 1
call fcn.0045d1fa
push 0
push 4
push 0
push eax
mov dword [0x496228], eax
call fcn.0045bfe2
mov esi, dword [0x496228]
mov ecx, 8
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
call fcn.00458570
lea edi, [eax + 0x20]
push 0x4000
mov ecx, 8
lea esi, [esp + 0x4c]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.0045cb00
push 0
push eax
call fcn.0045af88
push 0x47e9f4
push 0
call fcn.0045d1fa
push 0
push 4
push 0
push eax
mov dword [0x49622c], eax
call fcn.0045bfe2
mov esi, dword [0x49622c]
mov ecx, 8
lea edi, [esp + 0x70]
add esp, 0x48
rep movsd dword es:[edi], dword [esi]
call fcn.00458570
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.0045cb00
push 2
push eax
call fcn.0045af88
push 0x47ce14
push 2
call fcn.0045d1fa
push 0
push 4
push 0
push eax
mov dword [0x496230], eax
call fcn.0045bfe2
mov esi, dword [0x496230]
mov ecx, 8
lea edi, [esp + 0x50]
add esp, 0x28
rep movsd dword es:[edi], dword [esi]
call fcn.00458570
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