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

Disassembly:
sub esp, 0x474
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x470], eax
push ebp
push esi
mov esi, dword [esp + 0x480]
push esi
push esi
call fcn.004018e0
add esp, 8
xor eax, eax
mov dword [esp + 0x20], eax
xor ebp, ebp
push ebp
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], 0xc
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x402276
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004038f9
add esp, 0x474
ret
push 0x40
lea eax, [esp + 0x3c]
push ebp
push eax
mov dword [esp + 0x40], ebp
call fcn.00403910
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x14]
push 0x400
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], eax
xor eax, eax
lea edx, [esp + 0x7c]
push ebp
push edx
mov dword [esp + 0x6c], 0x101
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00403910
mov eax, dword [str.cmd.exe__c]
mov ecx, dword [0x40f2b4]
mov edx, dword [0x40f2b8]
mov dword [esp + 0x84], eax
mov eax, esi
mov dword [esp + 0x88], ecx
add esp, 0xc
mov dword [esp + 0x80], edx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4022f8
push ebx
push edi
lea edi, [esp + 0x80]
sub eax, ecx
add edi, 0xffffffff
nop
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x402310
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x8b]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402332
sub eax, edx
je 0x402437
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x40]
push ecx
push ebp
push ebp
push ebp
push 1
push ebp
push ebp
lea edx, [esp + 0xa0]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x100000
call fcn.00403e92
push 0x100000
mov ebx, eax
push ebp
push ebx
call fcn.00403910
add esp, 0x10
push 0xbb8
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x10], ebp
je 0x402404
cmp ebp, 0xff800
jae 0x402404
mov ecx, dword [esp + 0x18]
push 0
push 0
lea eax, [esp + 0x18]
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 + 0x10]
test eax, eax
je 0x402404
push 1
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x14]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4023f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
add ebp, dword [esp + 0x14]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x10], 0
jne 0x402397
push ebx
push ebx
call fcn.00401870
mov eax, ebx
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402413
push 1
sub eax, edx
push 0x413d34
add eax, 0xa
push eax
push ebx
call fcn.004019c0
add esp, 0x10
movzx esi, al
jmp 0x40243d
mov ebx, dword [esp + 0x14]
xor esi, esi
push ebx
call fcn.00404267
mov ecx, dword [esp + 0x484]
add esp, 4
pop edi
test esi, esi
pop ebx
pop esi
setne al
pop ebp
xor ecx, esp
call fcn.004038f9
add esp, 0x474
ret