Function at 0x140003dc3
Capabilities:
Connect pipe
Create pipe

Disassembly:
jmp 0x14001b1b0
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc8
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rbp - 1], rax
mov edi, r9d
mov r12d, r8d
mov rsi, rdx
mov r15, rcx
mov r14d, dword [rbp + 0x7f]
cmp qword [rcx + 0x98], 0
je 0x14001b209
lea r8, str.isClosed__
mov edx, 0xd0
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentNamedPipe.cc
call fcn.1400040b1
mov ebx, r12d
and ebx, 3
jne 0x14001b229
lea r8, str._openMode__OpenMode::Duplex____0
mov edx, 0xd1
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentNamedPipe.cc
call fcn.1400040b1
or ebx, 0x40080000
lea rcx, [rbp - 0x69]
call fcn.14000463d
nop
mov rax, qword [rbp - 0x69]
test rax, rax
jne 0x14001b25e
lea r8, str.sd___error_creating_data_pipe_SECURITY_DESCRIPTOR_
mov edx, 0xd8
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentNamedPipe.cc
call fcn.1400040b1
mov rax, qword [rbp - 0x69]
xor r13d, r13d
mov qword [rbp - 0x59], 0x18
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x51], rax
call fcn.1400048e0
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], edi
lea r9d, [r13 + 1]
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call fcn.140003396
lea rdi, [r13 - 1]
test al, al
je 0x14001b39d
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r13w
mov r8, rdi
nop
inc r8
cmp word [rsi + r8*2], r13w
jne 0x14001b2d0
mov rdx, rsi
lea rcx, [rbp - 0x41]
call fcn.14000454d
nop
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.1400047d2
nop
cmp qword [rax + 0x18], 0x10
jb 0x14001b2ff
mov rax, qword [rax]
mov r8, rbx
mov rdx, rax
lea rcx, str.opened_server_pipe___s___handle___p
call fcn.140004610
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x14001b34d
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b348
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b5d6
call fcn.140003b75
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x14001b39d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b398
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b5dc
call fcn.140003b75
cmp rbx, 0xffffffffffffffff
jne 0x14001b3bb
lea r8, str.handle___INVALID_HANDLE_VALUE___Could_not_open_server_pipe_
mov edx, 0xe7
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentNamedPipe.cc
call fcn.1400040b1
mov r8, rdi
nop
inc r8
cmp word [rsi + r8*2], 0
jne 0x14001b3c0
mov rdx, rsi
mov rcx, r15
call fcn.14000454d
mov qword [r15 + 0x98], rbx
mov dword [r15 + 0x48], r12d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
test rax, rax
jne 0x14001b411
lea r8, str.ret___nullptr___CreateEventW_failed_
lea edx, [rax + 0x56]
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentNamedPipe.cc
call fcn.1400040b1
mov qword [rbp - 0x71], rbx
xor edx, edx
lea rcx, [r15 + 0x40]
call fcn.1400035fd
mov rax, qword [rbp - 0x71]
mov qword [rbp - 0x71], r13
mov qword [r15 + 0x40], rax
mov dl, 1
lea rcx, [rbp - 0x71]
call fcn.1400035fd
nop
lea rdx, [r15 + 0x20]
mov qword [r15 + 0x20], r13
mov qword [r15 + 0x28], r13
mov qword [r15 + 0x30], r13
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 0x14001b498
cmp eax, 0x217
je 0x14001b498
cmp eax, 0x3e5
je 0x14001b59d
lea r8, str.false___ConnectNamedPipe_call_failed_
mov edx, 0xfa
lea rcx, str.D:_a_arduino_ide_arduino_ideelectron_build_node_modules_node_ptydepswinpty_src_agentNamedPipe.cc
call fcn.1400040b1
jmp 0x14001b59d
call fcn.140003396
test al, al
je 0x14001b589
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], r13w
nop word [rax + rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x14001b4c0
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x41]
call fcn.14000454d
nop
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x21]
call fcn.1400047d2
nop
cmp qword [rax + 0x18], 0x10
jb 0x14001b4f2
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.Server_pipe___s__connected
call fcn.140004610
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x14001b53d
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b538
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b5e2
call fcn.140003b75
mov qword [rbp - 0x11], r13
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x14001b589
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b584
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001b5d0
call fcn.140003b75
xor edx, edx
lea rcx, [r15 + 0x40]
call fcn.1400035fd
mov rcx, r15
call fcn.140003b11
nop
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14001b5b0
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400029d2
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000215d
nop
call fcn.14000215d
nop
call fcn.14000215d
nop
call fcn.14000215d
int3