Function at 0x43f3e0
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]
push 0xfffffffffffffff6
mov esi, eax
call edi
push 0xfffffffffffffff5
mov dword [esp + 0x14], eax
call edi
push 0xfffffffffffffff4
mov ebx, eax
call edi
cmp dword [0x48e5d4], 0
mov dword [esp + 0x14], eax
je 0x43f44a
cmp dword [esp + 0x10], 0
je 0x43f44a
test ebx, ebx
je 0x43f44a
test eax, eax
je 0x43f44a
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
cmp dword [0x48e5d4], 0
jne 0x43f50e
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
jne 0x43f456
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0x48e5d4], 0
jmp 0x43f437
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0xf
push 0x47b108
push esi
mov ebx, eax
call fcn.0042d660
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea eax, [esi + 0x40]
push eax
push esi
mov dword [esp + 0x30], 4
call fcn.00427ef0
add dword [esi + 8], 0x10
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 8]
add esp, 0x10
test eax, eax
je 0x43f4e4
cmp eax, 1
jne 0x43f4a9
cmp dword [ecx - 0x10], 0
je 0x43f4e4
cmp eax, 3
jne 0x43f4bc
fld qword [ecx - 0x10]
fldz
fucompp
fnstsw ax
test ah, 0x44
jnp 0x43f4e4
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 0x43f3c0
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 dword [esp + 0x14], eax
call edi
push 0xfffffffffffffff4
mov ebx, eax
call edi
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
add eax, 0x20
cmp eax, dword [esi + 8]
jae 0x43f526
cmp eax, 0x478708
je 0x43f526
cmp dword [eax + 8], 0
jg 0x43f52d
mov eax, dword [0x48fdd0]
jmp 0x43f53b
push 0
push 3
mov eax, esi
call fcn.0041c460
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x48fde4], 0
jne 0x43f67b
lea eax, [esp + 0x18]
xor edx, edx
push eax
push edx
push ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], 0x32000a
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 0xb7
push ecx
call esi
push 3
push ebx
call esi
push 0x4000
push ebx
call fcn.00457cce
add esp, 8
cmp eax, 0xffffffff
je 0x43f441
push 0x477d80
push eax
call fcn.004583c8
push 0
push 4
push 0
push eax
mov dword [0x48fde4], eax
call fcn.004571b0
mov esi, dword [0x48fde4]
mov ecx, 8
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
call fcn.004539c0
mov edx, dword [esp + 0x28]
lea edi, [eax + 0x20]
push 0x4000
mov ecx, 8
lea esi, [esp + 0x44]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00457cce
push 0x479890
push eax
call fcn.004583c8
push 0
push 4
push 0
push eax
mov dword [0x48fde8], eax
call fcn.004571b0
mov esi, dword [0x48fde8]
mov ecx, 8
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
call fcn.004539c0
mov edi, eax
mov eax, dword [esp + 0x4c]
push 0x4000
mov ecx, 8
lea esi, [esp + 0x64]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00457cce
add esp, 0x40
push 0x477d80
push eax
call fcn.004583c8
push 0
push 4
push 0
push eax
mov dword [0x48fdec], eax
call fcn.004571b0
mov esi, dword [0x48fdec]
mov ecx, 8
lea edi, [esp + 0x40]
add esp, 0x18
rep movsd dword es:[edi], dword [esi]
call fcn.004539c0
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