Function at 0x1400027e8
Capabilities:
Connect pipe
Create pipe

Disassembly:
jmp 0x14001ba40
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc8
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 7], rax
mov esi, r9d
mov r12d, r8d
mov rdi, rdx
mov r15, rcx
mov r14d, dword [rbp + 0x7f]
cmp qword [rcx + 0x98], 0
je 0x14001baa1
lea r8, str.isClosed__
mov edx, 0xd0
lea rcx, str.agentNamedPipe.cc
call fcn.1400045f7
mov ebx, r12d
and ebx, 3
jne 0x14001bac1
lea r8, str._openMode__OpenMode::Duplex____0
mov edx, 0xd1
lea rcx, str.agentNamedPipe.cc
call fcn.1400045f7
or ebx, 0x40080000
lea rcx, [rbp - 0x69]
call fcn.140002298
nop
mov rax, qword [rbp - 0x69]
test rax, rax
jne 0x14001baf6
lea r8, str.sd___error_creating_data_pipe_SECURITY_DESCRIPTOR_
mov edx, 0xd8
lea rcx, str.agentNamedPipe.cc
call fcn.1400045f7
mov rax, qword [rbp - 0x69]
xor ecx, ecx
mov qword [rbp - 0x59], rcx
mov qword [rbp - 0x49], rcx
mov dword [rbp - 0x59], 0x18
mov qword [rbp - 0x51], rax
call fcn.140001627
mov r8d, eax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x7530
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], esi
mov r9d, 1
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call fcn.14000335f
xor r13d, r13d
or rsi, 0xffffffffffffffff
test al, al
je 0x14001bc8b
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r13
mov word [rbp - 0x39], r13w
cmp word [rdi], r13w
jne 0x14001bb71
mov r8d, r13d
jmp 0x14001bb7e
mov r8, rsi
inc r8
cmp word [rdi + r8*2], r13w
jne 0x14001bb74
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14000346d
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.140003189
nop
cmp qword [rax + 0x18], 0x10
jb 0x14001bba3
mov rax, qword [rax]
mov r8, rbx
mov rdx, rax
lea rcx, str.opened_server_pipe___s___handle___p
call fcn.140001e10
nop
mov rax, qword [rbp - 1]
cmp rax, 0x10
jb 0x14001bc0c
inc rax
mov rcx, qword [rbp - 0x19]
cmp rax, 0x1000
jb 0x14001bc07
test cl, 0x1f
je 0x14001bbda
call fcn.140003f85
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001bbe9
call fcn.140003f85
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001bbf8
call fcn.140003f85
int3
cmp rcx, 0x27
jbe 0x14001bc04
call fcn.140003f85
int3
mov rcx, rax
call fcn.140001a28
mov qword [rbp - 1], 0xf
mov qword [rbp - 9], r13
mov byte [rbp - 0x19], 0
mov rax, qword [rbp - 0x21]
cmp rax, 8
jb 0x14001bc8b
inc rax
mov rcx, qword [rbp - 0x39]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x14001bc42
call fcn.140003f85
int3
add rax, rax
cmp rax, 0x1000
jb 0x14001bc86
test byte [rbp - 0x39], 0x1f
je 0x14001bc59
call fcn.140003f85
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001bc68
call fcn.140003f85
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001bc77
call fcn.140003f85
int3
cmp rcx, 0x27
jbe 0x14001bc83
call fcn.140003f85
int3
mov rcx, rax
call fcn.140001a28
cmp rbx, 0xffffffffffffffff
jne 0x14001bca9
lea r8, str.handle___INVALID_HANDLE_VALUE___Could_not_open_server_pipe_
mov edx, 0xe7
lea rcx, str.agentNamedPipe.cc
call fcn.1400045f7
cmp word [rdi], 0
jne 0x14001bcb4
mov r8, r13
jmp 0x14001bccb
mov r8, rsi
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x14001bcc0
mov rdx, rdi
mov rcx, r15
call fcn.14000346d
mov qword [r15 + 0x98], rbx
mov dword [r15 + 0x48], r12d
lea rcx, [rbp - 0x71]
call fcn.14001b9a0
mov rbx, rax
xor edx, edx
lea rcx, [r15 + 0x40]
call fcn.140004205
mov rcx, qword [rbx]
mov qword [rbx], r13
mov qword [r15 + 0x40], rcx
mov dl, 1
lea rcx, [rbp - 0x71]
call fcn.140004205
nop
lea rdx, [r15 + 0x20]
xor eax, eax
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rax
mov rax, qword [r15 + 0x40]
mov qword [r15 + 0x38], rax
mov rcx, qword [r15 + 0x98]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14001bd73
cmp eax, 0x217
je 0x14001bd73
cmp eax, 0x3e5
je 0x14001be76
lea r8, str.false___ConnectNamedPipe_call_failed_
mov edx, 0xfa
lea rcx, str.agentNamedPipe.cc
call fcn.1400045f7
jmp 0x14001be76
call fcn.14000335f
test al, al
je 0x14001be62
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r13
mov word [rbp - 0x39], r13w
cmp word [rdi], 0
jne 0x14001bda0
mov rsi, r13
jmp 0x14001bdaa
inc rsi
cmp word [rdi + rsi*2], 0
jne 0x14001bda0
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.14000346d
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.140003189
nop
cmp qword [rax + 0x18], 0x10
jb 0x14001bdd2
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.Server_pipe___s__connected
call fcn.140001e10
nop
mov rax, qword [rbp - 1]
cmp rax, 0x10
jb 0x14001be38
inc rax
mov rcx, qword [rbp - 0x19]
cmp rax, 0x1000
jb 0x14001be33
test cl, 0x1f
je 0x14001be06
call fcn.140003f85
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14001be15
call fcn.140003f85
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001be24
call fcn.140003f85
int3
cmp rcx, 0x27
jbe 0x14001be30
call fcn.140003f85
int3
mov rcx, rax
call fcn.140001a28
mov qword [rbp - 1], 0xf
mov qword [rbp - 9], r13
mov byte [rbp - 0x19], 0
mov r8, qword [rbp - 0x21]
cmp r8, 8
jb 0x14001be62
inc r8
mov rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x39]
call fcn.14000452a
xor edx, edx
lea rcx, [r15 + 0x40]
call fcn.140004205
mov rcx, r15
call fcn.1400036b6
nop
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14001be89
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140003cb0
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret