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

Disassembly:
add esp, 0xfffffb7c
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, esi
push edi
push esi
call fcn.00401820
sub esp, 0xfffffffc
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x2c], eax
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]
or 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 edi, dword [esp + 0x20]
xor eax, eax
push 0x400
lea edx, [esp + 0x8c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], edi
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 edi, dword [0x410540]
mov edx, dword [0x410544]
mov ebx, esi
mov eax, dword [str.cmd.exe__c]
mov dword [esp + 0x94], eax
mov eax, ebx
mov dword [esp + 0x98], edi
sub esp, 0xfffffff4
mov dword [esp + 0x90], edx
lea eax, [eax]
mov dl, byte [ebx]
inc ebx
or dl, dl
jne 0x4021e0
sub ebx, eax
lea edi, [esp + 0x88]
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
or 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 esi, eax
push ebp
push esi
call fcn.00406b00
sub esp, 0xfffffff0
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
lea ebx, [esi + ebp]
mov ecx, dword [esp + 0x1c]
push 0
mov edi, 0x100000
sub edi, ebp
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [esp + 0x14]
or 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 edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
or 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 esi
mov eax, esi
call fcn.00401780
mov eax, esi
sub esp, 0xfffffffc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
or cl, cl
jne 0x4022f1
mov ecx, 0x414774
push 1
sub eax, edx
sub eax, 0xfffffff6
push eax
push esi
call fcn.004018e0
sub esp, 0xfffffff4
movzx edi, al
jmp 0x402319
xor edi, edi
mov esi, dword [esp + 0x18]
push esi
call fcn.00403a12
add esp, 4
or edi, edi
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