Function at 0x4023f0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Read pipe
Resolve function by parsing pe exports
Terminate process

Disassembly:
sub esp, 0x474
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, ecx
push str.Begin_CreateProcess
call fcn.00407f00
mov ecx, eax
call fcn.00407f70
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], eax
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], ecx
push ebx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x38], 1
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x402489
push 1
push str.Error_creating_pipe
call fcn.00407f00
mov ecx, eax
call fcn.00407f70
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x474
ret 4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x2c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x484]
lea eax, [esp + 0x3c]
push edx
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ecx
push ebx
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x90], 0x101
mov word [esp + 0x94], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x402509
push 1
push str.Error_CreateProcess
call fcn.00407f00
mov ecx, eax
call fcn.00407f70
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x474
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
lea ecx, [esp + 0x1c]
push ebp
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x90]
push 1
push ecx
push edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
call edi
test eax, eax
je 0x402626
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], ebx
je 0x4025f9
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x8c]
push 0x3ff
push ecx
push edx
call ebp
test eax, eax
je 0x402626
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
mov byte [esp + ecx + 0x84], bl
jbe 0x40259e
cmp byte [esp + eax + 0x84], 8
jne 0x402599
mov byte [esp + eax + 0x84], 0x20
inc eax
cmp eax, ecx
jb 0x402587
lea eax, [esp + 0x84]
push ecx
push eax
mov ecx, esi
call fcn.004026e0
lea ecx, [esp + 0x84]
push str.Press_any_key_to_continue_._._.
push ecx
call fcn.0041872f
add esp, 8
cmp eax, ebx
jne 0x4025f5
lea edx, [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x90]
push 1
push edx
push eax
mov dword [esp + 0x28], ebx
call edi
test eax, eax
jne 0x40254a
jmp 0x402626
mov byte [eax], bl
jmp 0x402626
mov ecx, dword [esp + 0x30]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
push ebx
jne 0x402615
push str.WaitForSingleObject_Out
jmp 0x40261a
push str.user_cancelled_the_operation__terminate_the_process
call fcn.00407f00
mov ecx, eax
call fcn.00407f70
mov edx, dword [esp + 0x30]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
push str.End_CreateProcess
call fcn.00407f00
mov ecx, eax
call fcn.00407f70
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
test eax, eax
pop ebp
jne 0x402669
push 1
push str.Error_closing_thread_handle
call fcn.00407f00
mov ecx, eax
call fcn.00407f70
mov ecx, dword [esp + 0x2c]
push ecx
call esi
test eax, eax
jne 0x402687
push 1
push str.Error_closing_process_handle
call fcn.00407f00
mov ecx, eax
call fcn.00407f70
mov edx, dword [esp + 0x10]
push edx
call esi
test eax, eax
jne 0x4026a5
push 1
push str.Error_closing_pipe_read_handle
call fcn.00407f00
mov ecx, eax
call fcn.00407f70
mov eax, dword [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x4026c3
push 1
push str.Error_closing_pipe_write_handle
call fcn.00407f00
mov ecx, eax
call fcn.00407f70
pop edi
pop esi
lea eax, [esp + 0x78]
pop ebx
add esp, 0x474
ret 4