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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [esp], 0x18
call sym._malloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4013f6
mov dword [esp], 0x408064
call sym._puts
mov eax, 0
jmp 0x401640
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x10]
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 sym._CreatePipe_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4014b1
call sym._GetLastError_0
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a138
mov dword [esp], eax
call sym._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 dbg.holler
mov dword [esp], 0x408097
call sym._puts
jmp 0x4015d2
mov eax, dword [ebp - 0x10]
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 sym._CreatePipe_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401547
call sym._GetLastError_0
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a138
mov dword [esp], eax
call sym._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 dbg.holler
mov dword [esp], 0x4080ca
call sym._puts
jmp 0x4015d2
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.StartShell
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
test eax, eax
jne 0x4015c3
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 dbg.holler
jmp 0x4015d2
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x401640
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4015e7
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4015fc
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x401615
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x401630
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._free
mov eax, 0
leave
ret