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

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp - 8], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov ecx, 0x30
call sym.malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400022af
mov eax, 0
jmp 0x14000250a
mov rax, qword [rbp - 8]
mov qword [rax], 0
mov rax, qword [rbp - 8]
mov qword [rax + 8], 0
mov dword [rbp - 0x30], 0x18
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 1
mov rcx, qword [rbp - 8]
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x40]
mov r9d, 0
mov r8, rdx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x140002364
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140012060]
mov rdx, rax
call sym.itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.Failed_to_create_shell_stdout_pipe__error___s
mov rcx, rax
call sym.holler
jmp 0x140002487
mov rax, qword [rbp - 8]
lea rdx, [rax + 8]
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x1400023f0
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140012060]
mov rdx, rax
call sym.itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.Failed_to_create_shell_stdin_pipe__error___s
mov rcx, rax
call sym.holler
jmp 0x140002487
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.StartShell
mov rdx, qword [rbp - 8]
mov qword [rdx + 0x10], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140002472
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.Failed_to_execute_shell
mov rcx, rax
call sym.holler
jmp 0x140002487
mov rax, qword [rbp - 8]
mov qword [rax + 0x18], 0xffffffffffffffff
mov rax, qword [rbp - 8]
jmp 0x14000250a
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x1400024a0
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1400024b9
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax]
test rax, rax
je 0x1400024d8
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
test rax, rax
je 0x1400024f9
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.free
mov eax, 0
sub rsp, 0xffffffffffffff80
pop rbp
ret