Function at 0x404439
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10068
call fcn.0040c360
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x44
mov edi, eax
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], bx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [ebp - 0x28], eax
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
call esi
push ebx
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 8]
push eax
call esi
push 3
push 1
lea eax, [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push ebx
push eax
push edi
push dword [ebp - 0x10]
push edi
call esi
push 3
push 1
lea eax, [ebp - 0x2c]
push ebx
push eax
push edi
push dword [ebp - 4]
push edi
call esi
cmp dword [ebp + 8], ebx
mov esi, 0x2000
jne 0x404592
push 0x41eec8
push dword [ebp + 0xc]
call fcn.00404694
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x4045ae
push eax
lea eax, [ebp - 0x2068]
push esi
push eax
mov byte [ebp - 0x2067], bl
mov byte [ebp - 0x2068], bl
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
cmp byte [ebp - 0x2068], 0x23
mov byte [ebp - 0x69], bl
jne 0x404583
cmp byte [ebp - 0x2067], 0x21
jne 0x404583
lea eax, [ebp - 0x2066]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x2066]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
lea edi, [ebp + eax - 0x2067]
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x40455f
movzx eax, byte [edi]
push 8
push eax
call dword [sym.imp.MSVCRT.dll__isctype]
pop ecx
pop ecx
jmp 0x404570
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movzx eax, byte [edi]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 8
cmp eax, ebx
je 0x404583
lea eax, [ebp - 0x2066]
cmp edi, eax
jbe 0x404583
mov byte [edi], bl
dec edi
jmp 0x404545
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_fclose]
cmp dword [ebp + 8], ebx
pop ecx
je 0x4045ae
lea eax, [ebp - 0x6068]
push esi
push eax
push dword [ebp + 8]
call fcn.004048b3
lea eax, [ebp - 0x6068]
add esp, 0xc
mov dword [ebp + 8], eax
lea eax, [ebp - 0x4068]
push esi
push eax
push dword [ebp + 0x18]
call fcn.004048b3
lea eax, [ebp - 0xa068]
push esi
push eax
push dword [ebp + 0x18]
call fcn.0040403b
add esp, 0x18
cmp dword [ebp + 8], ebx
mov eax, 0x420968
mov ecx, 0x41eec4
jne 0x4045e2
mov ecx, eax
cmp dword [ebp + 8], ebx
je 0x4045ea
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push ecx
push eax
push str._s_s__s_
lea eax, [ebp - 0xc068]
push esi
push eax
call fcn.00402a01
lea eax, [ebp - 0x10068]
push esi
push eax
lea eax, [ebp - 0xc068]
push eax
call fcn.0040403b
add esp, 0x24
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xa068]
push eax
lea eax, [ebp - 0x10068]
push dword [ebp + 0x10]
push 0x200
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x404670
push 0x4046d9
push dword [ebp - 0xc]
push dword [ebp + 0x1c]
call fcn.0040488c
push 0x4047da
push dword [ebp - 8]
push dword [ebp + 0x1c]
call fcn.0040488c
add esp, 0x18
jmp 0x404682
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
call esi
push dword [ebp + 0x1c]
call sub.WS2_32.dll_closesocket
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x30]
call esi
mov eax, dword [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret