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 ebx, ebx
mov dword [esp + 0x2c], ebx
xor ebp, ebp
push ebp
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ebx
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 eax, dword [str.cmd.exe__c]
mov ecx, dword [0x410540]
mov ebx, esi
mov edx, dword [0x410544]
mov dword [esp + 0x94], eax
mov eax, ebx
lea eax, [eax]
mov dword [esp + 0x98], ecx
sub esp, 0xfffffff4
mov dword [esp + 0x90], edx
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
or 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
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]
lea edi, [ebx + ebp]
mov esi, 0x100000
sub esi, ebp
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push esi
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]
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 ebx
mov eax, ebx
call fcn.00401780
mov eax, ebx
lea edx, [eax + 1]
add esp, 4
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 ebx
call fcn.004018e0
add esp, 0xc
movzx esi, al
jmp 0x402319
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
sub esp, 0xfffffb7c
ret