Function at 0x4020f0
Capabilities:
Create pipe
Create process on windows
Read file on windows
Read pipe
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x484
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
push esi
mov eax, esi
call fcn.00401820
add esp, 4
xor ecx, ecx
mov dword [esp + 0x2c], ecx
xor ebp, ebp
push ebp
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x34], 0xc
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x402152
xor al, al
jmp 0x402327
push 0x40
lea eax, [esp + 0x48]
push ebp
push eax
mov dword [esp + 0x4c], ebp
call fcn.00406b00
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x20]
push 0x400
mov dword [esp + 0x84], eax
lea edx, [esp + 0x8c]
mov dword [esp + 0x80], eax
xor eax, eax
push ebp
push edx
mov dword [esp + 0x78], 0x101
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
call fcn.00406b00
mov eax, dword [str.cmd.exe__c]
mov ebx, esi
mov ecx, dword [0x410544]
mov edi, dword [0x410540]
mov dword [esp + 0x94], eax
mov eax, ebx
lea eax, [eax]
mov dword [esp + 0x98], edi
add esp, 0xc
mov dword [esp + 0x90], ecx
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x4021e0
lea edi, [esp + 0x88]
sub ebx, eax
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4021f1
lea eax, [esp + 0x93]
lea edx, [eax + 1]
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402211
sub eax, edx
je 0x402313
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x44]
push ecx
push ebp
push ebp
push ebp
push 1
push ebp
push ebp
lea edx, [esp + 0xa8]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x100000
call fcn.00403aef
push 0x100000
push ebp
mov edi, eax
push edi
call fcn.00406b00
add esp, 0x10
push 0xbb8
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], ebp
je 0x4022e1
cmp ebp, 0xff800
jae 0x4022e1
mov ecx, dword [esp + 0x1c]
mov esi, 0x100000
sub esi, ebp
lea ebx, [edi + ebp]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4022e1
push 1
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push edx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4022ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
add ebp, dword [esp + 0x18]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 0
jne 0x402274
mov eax, edi
push edi
call fcn.00401780
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022f1
sub eax, edx
mov ecx, 0x414774
add eax, 0xa
push 1
push eax
push edi
call fcn.004018e0
movzx ebx, al
add esp, 0xc
jmp 0x402319
mov edi, dword [esp + 0x18]
xor ebx, ebx
push edi
call fcn.00403a12
add esp, 4
test ebx, ebx
setne al
mov ecx, dword [esp + 0x48c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004033e4
add esp, 0x484
ret