Function at 0x140021f30
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x14008d598]
xor rax, rsp
mov qword [rbp], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [0x1400a0410]
lea rcx, [rbp - 0x30]
call fcn.1400200c0
nop
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140021f80
mov rdx, rbx
lea rcx, [0x14008d4b8]
call fcn.1400044f0
mov qword [0x140090208], rdi
xor edi, edi
mov qword [rbp - 0x38], rdi
mov r8d, 0xc0000000
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x38]
call fcn.140021da0
mov dword [rbp - 0x60], 0x18
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], edi
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
lea r9d, [rdi + 1]
xor r8d, r8d
mov edx, 0x40000003
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [0x14008d4b0], rax
cmp rax, 0xffffffffffffffff
jne 0x14002205a
mov dl, 1
lea rbx, str.Unable_to_create_pipe.
mov rcx, rbx
call fcn.14000e9c0
mov rcx, qword [0x140090208]
test rcx, rcx
je 0x140022053
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x48], eax
mov dword [rbp - 0x40], edi
mov rcx, qword [rcx + 0xf8]
test rcx, rcx
je 0x1400221b3
mov rax, qword [rcx]
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x40]
call qword [rax + 0x10]
xor bl, bl
jmp 0x140022176
lea rdx, [0x1400a0410]
lea rcx, [rbp - 0x70]
call fcn.1400200c0
nop
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_1c86403137602a21fa3a5018d285fb02___void___.0
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [0x1400a0220]
call fcn.1400201d0
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400220b7
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
lea rdx, [0x1400a0220]
mov rcx, qword [0x14008d4b0]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14002216b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
je 0x14002215c
mov dl, 1
lea rdi, str.Unable_to_connect_pipe.
mov rcx, rdi
call fcn.14000e9c0
mov rcx, qword [0x140090208]
test rcx, rcx
je 0x14002212f
mov qword [rbp - 0x68], rdi
mov dword [rbp - 0x40], eax
mov dword [rbp - 0x48], 4
mov rcx, qword [rcx + 0xf8]
test rcx, rcx
je 0x1400221ad
mov rax, qword [rcx]
lea r9, [rbp - 0x68]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x48]
call qword [rax + 0x10]
mov r8d, ebx
mov edx, ebx
lea rcx, str.Unable_to_connect_pipe:__d__0x_x_
call fcn.14000e970
xor edx, edx
lea rcx, [0x1400a0220]
call fcn.140020320
nop
lea rcx, [rbp - 0x70]
call fcn.1400200f0
xor bl, bl
jmp 0x140022176
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [0x1400a02b1], 1
lea rcx, [rbp - 0x70]
call fcn.1400200f0
mov bl, 1
lea rcx, [rbp - 0x38]
call fcn.140021a90
nop
lea rcx, [rbp - 0x30]
call fcn.1400200f0
movzx eax, bl
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140028f90
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400273a4
nop
call fcn.1400273a4
int3