Function at 0x1400016d0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp qword [rdx + 0x18], 7
mov rbx, rcx
mov rcx, rdx
mov rdi, rdx
jbe 0x1400016fb
mov rcx, qword [rdx]
xor r15d, r15d
mov edx, 3
mov qword [rsp + 0x38], r15
mov r9d, edx
mov dword [rsp + 0x30], r15d
mov r8d, 6
mov dword [rsp + 0x28], 0x200
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x140001745
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_named_pipe.
jmp 0x140001753
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Named_pipe_created_successfully.
call fcn.140004610
lea rdx, [0x1400047f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x70], rbp
cmp rdx, qword [rbx + 0x10]
je 0x140001781
mov qword [rdx], rbp
add qword [rbx + 8], 8
jmp 0x14000178e
lea r8, [rsp + 0x70]
mov rcx, rbx
call fcn.140005110
cmp qword [rdi + 0x18], 7
lea rbp, [rbx + 8]
mov rcx, rdi
jbe 0x1400017a3
mov rcx, qword [rdi]
lea rbp, [rbx + 8]
mov qword [rsp + 0x38], r15
mov edx, 3
mov dword [rsp + 0x30], r15d
mov r9d, edx
mov dword [rsp + 0x28], 0x200
mov r8d, 6
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400017ea
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_named_pipe.
jmp 0x1400017f8
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Named_pipe_created_successfully.
call fcn.140004610
lea rdx, [0x1400047f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x70], r14
cmp rdx, qword [rbx + 0x10]
je 0x140001826
mov qword [rdx], r14
add qword [rbp], 8
jmp 0x140001833
lea r8, [rsp + 0x70]
mov rcx, rbx
call fcn.140005110
cmp qword [rdi + 0x18], 7
jbe 0x14000183d
mov rdi, qword [rdi]
mov qword [rsp + 0x38], r15
mov edx, 3
mov dword [rsp + 0x30], r15d
mov r9d, edx
mov dword [rsp + 0x28], 0x200
mov r8d, 6
mov rcx, rdi
mov dword [rsp + 0x20], 0x200
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001887
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_named_pipe.
jmp 0x140001895
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Named_pipe_created_successfully.
call fcn.140004610
lea rdx, [0x1400047f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x70], rdi
cmp rdx, qword [rbx + 0x10]
je 0x1400018c3
mov qword [rdx], rdi
add qword [rbx + 8], 8
jmp 0x1400018d0
lea r8, [rsp + 0x70]
mov rcx, rbx
call fcn.140005110
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret