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

Disassembly:
mov eax, dword [0x412008]
sub esp, 0x484
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 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 ebx, dword [esp + 0x20]
push 0x400
xor eax, eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
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 [0x410544]
mov edi, dword [0x410540]
mov dword [esp + 0x94], eax
mov edx, esi
mov eax, edx
mov dword [esp + 0x98], edi
lea eax, [eax]
add esp, 0xc
mov dword [esp + 0x90], ecx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4021e0
lea edi, [esp + 0x88]
sub edx, eax
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4021f1
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x93]
lea edx, [eax + 1]
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
mov esi, eax
push ebp
push esi
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 edi, 0x100000
lea ebx, [esi + ebp]
sub edi, ebp
mov ecx, dword [esp + 0x1c]
push 0
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]
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 edi
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
push esi
mov eax, esi
call fcn.00401780
mov eax, esi
lea edx, [eax + 1]
add esp, 4
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4022f1
push 1
sub eax, edx
add eax, 0xa
push eax
push esi
mov ecx, 0x414774
call fcn.004018e0
movzx ebp, al
add esp, 0xc
jmp 0x402319
xor ebp, ebp
mov esi, dword [esp + 0x18]
push esi
call fcn.00403a12
add esp, 4
test ebp, ebp
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