Function at 0x4020f0
Capabilities:
Create pipe
Create process on windows
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push esi
mov eax, esi
call fcn.00401820
add esp, 4
xor eax, eax
mov dword [ebp - 0x420], eax
xor ebx, ebx
push ebx
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x418]
push edx
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x428], 0xc
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40216a
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403107
mov esp, ebp
pop ebp
ret
push 0x40
lea eax, [ebp - 0x47c]
push ebx
push eax
mov dword [ebp - 0x480], ebx
call fcn.004063c0
add esp, 0xc
lea ecx, [ebp - 0x480]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x41c]
push 0x400
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x444], eax
xor eax, eax
lea edx, [ebp - 0x408]
push ebx
push edx
mov dword [ebp - 0x454], 0x101
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
call fcn.004063c0
mov eax, dword [0x40eb54]
mov ecx, dword [0x40eb58]
mov edx, dword [0x40eb5c]
mov dword [ebp - 0x408], eax
mov eax, esi
mov dword [ebp - 0x404], ecx
add esp, 0xc
mov dword [ebp - 0x400], edx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402201
lea edi, [ebp - 0x408]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402211
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebp - 0x3fd]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402230
sub eax, edx
je 0x402372
lea eax, [ebp - 0x438]
push eax
lea ecx, [ebp - 0x480]
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea edx, [ebp - 0x408]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x100000
call fcn.0040371f
push 0x100000
mov edi, eax
push ebx
push edi
mov dword [ebp - 0x410], edi
call fcn.004063c0
add esp, 0x10
push 0xbb8
mov dword [ebp - 0x40c], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x40c], ebx
je 0x40233c
jmp 0x4022b6
mov edi, dword [ebp - 0x410]
cmp ebx, 0xff800
jae 0x40233c
mov ecx, dword [ebp - 0x418]
push 0
push 0
lea eax, [ebp - 0x40c]
push eax
mov esi, 0x100000
sub esi, ebx
push esi
add edi, ebx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov eax, dword [ebp - 0x40c]
test eax, eax
je 0x402336
push 1
mov dword [ebp - 0x414], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x418]
push 0
lea edx, [ebp - 0x40c]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40231b
call dword [sym.imp.KERNEL32.dll_GetLastError]
add ebx, dword [ebp - 0x414]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x40c], 0
jne 0x4022b0
mov edi, dword [ebp - 0x410]
push edi
mov eax, edi
call fcn.00401770
mov eax, edi
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402350
sub eax, edx
push 1
add eax, 0xa
push eax
push edi
mov ecx, 0x412714
call fcn.004018c0
add esp, 0xc
movzx esi, al
jmp 0x40237a
mov edi, dword [ebp - 0x410]
xor esi, esi
push edi
call fcn.004036e5
mov ecx, dword [ebp - 4]
add esp, 4
test esi, esi
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.00403107
mov esp, ebp
pop ebp
ret