Function at 0x140009ea0
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x47]
sub rsp, 0xa0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x140047088]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rcx
mov qword [rbp - 1], rcx
xor edi, edi
mov qword [rcx + 0x18], 7
mov qword [rcx + 0x10], rdi
cmp qword [rcx + 0x18], 8
jb 0x140009eee
mov rax, qword [rcx]
jmp 0x140009ef1
mov rax, rbx
mov word [rax], di
mov r8d, 9
lea rdx, str..pipe_
call fcn.140008940
nop
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x28], rdi
movzx eax, word [str.treadstone_local_service]
neg ax
sbb r8, r8
and r8d, 0x18
lea rdx, str.treadstone_local_service
mov rcx, rbx
call fcn.140008a90
mov dword [rbx + 0x20], 3
mov dword [rbx + 0x24], 6
mov ecx, 0x28
call fcn.140015d10
mov rdi, rax
test rax, rax
jne 0x140009f9c
lea rax, vtable.std::exception.0
mov qword [rbp - 0x21], rax
xor eax, eax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
lea rax, str.Allocation_failed.
mov qword [rbp + 7], rax
mov byte [rbp + 0xf], 1
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.14000e1d0
lea rax, vtable.std::runtime_error.0
mov qword [rbp - 0x21], rax
lea rdx, [0x140045e40]
lea rcx, [rbp - 0x21]
call fcn.14000e714
int3
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x140009ffb
lea rax, vtable.std::exception.0
mov qword [rbp - 0x21], rax
xor eax, eax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
lea rax, str.SD_initialization_failed.
mov qword [rbp + 7], rax
mov byte [rbp + 0xf], 1
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.14000e1d0
lea rax, vtable.std::runtime_error.0
mov qword [rbp - 0x21], rax
lea rdx, [0x140045e40]
lea rcx, [rbp - 0x21]
call fcn.14000e714
int3
mov dword [rbp + 0x17], 0x18
mov dword [rbp + 0x27], 1
mov qword [rbp + 0x1f], rdi
xor r9d, r9d
lea r8, [rbp + 0x1f]
lea edx, [r9 + 1]
lea rcx, str.D:_A_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GRGWGX___AU__A_OICI_GA___BA_
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x14000a076
lea rax, vtable.std::exception.0
mov qword [rbp - 0x21], rax
xor eax, eax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
lea rax, str.DACL_creation_failed.
mov qword [rbp + 7], rax
mov byte [rbp + 0xf], 1
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.14000e1d0
lea rax, vtable.std::runtime_error.0
mov qword [rbp - 0x21], rax
lea rdx, [0x140045e40]
lea rcx, [rbp - 0x21]
call fcn.14000e714
int3
cmp qword [rbx + 0x18], 8
jb 0x14000a082
mov rcx, qword [rbx]
jmp 0x14000a085
mov rcx, rbx
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x3e8
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 0x200
mov r9d, 0xff
mov r8d, dword [rbx + 0x24]
mov edx, dword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x28], rax
mov rcx, rdi
call fcn.14000ff24
cmp qword [rbx + 0x28], 0xffffffffffffffff
jne 0x14000a119
lea rax, vtable.std::exception.0
mov qword [rbp - 0x21], rax
xor eax, eax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
lea rax, str.Named_pipe_creation_failed.
mov qword [rbp + 7], rax
mov byte [rbp + 0xf], 1
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.14000e1d0
lea rax, vtable.std::runtime_error.0
mov qword [rbp - 0x21], rax
lea rdx, [0x140045e40]
lea rcx, [rbp - 0x21]
call fcn.14000e714
nop
mov rax, rbx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14000b980
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret