Function at 0x401e84
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 0x401ebe
mov eax, 0
jmp 0x4020f0
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
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401f6d
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a0d0
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.00402ddc
jmp 0x402082
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
call sub.KERNEL32.dll_CreatePipe
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401ff7
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a0d0
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.00402ddc
jmp 0x402082
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402499
mov edx, dword [ebp - 0xc]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
test eax, eax
jne 0x402073
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.00402ddc
jmp 0x402082
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 0xc]
jmp 0x4020f0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x402097
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4020ac
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4020c5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x4020e0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, 0
leave
ret