Function at 0x4020bc
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [esp], 0x18
call sub.msvcrt.dll_malloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4020f6
mov eax, 0
jmp 0x40233e
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
lea edx, [ebp - 0x24]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreatePipe]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4021a9
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a4b0
mov dword [esp], eax
call sub.msvcrt.dll__itoa
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_create_shell_stdout_pipe__error___s
call fcn.0040307f
jmp 0x4022c8
mov eax, dword [ebp - 0xc]
lea edx, [eax + 4]
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
lea eax, [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreatePipe]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402237
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a4b0
mov dword [esp], eax
call sub.msvcrt.dll__itoa
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_create_shell_stdin_pipe__error___s
call fcn.0040307f
jmp 0x4022c8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402715
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
test eax, eax
jne 0x4022b9
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.Failed_to_execute_shell
call fcn.0040307f
jmp 0x4022c8
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x40233e
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4022df
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4022f6
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
je 0x402311
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x40232e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, 0
leave
ret