Function at 0x1400623c0
Capabilities:
Connect pipe
Create pipe

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x1401c3e90]
xor rax, rsp
mov qword [rbp], rax
mov r13, rdx
mov r12, rcx
xor ebx, ebx
mov qword [rsp + 0x70], rbx
xor eax, eax
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jns 0x14006245f
lea rax, str.Failure_to_set_pipe_name_0
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400d4b08
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x14018e508]
lea rcx, [rsp + 0x40]
call fcn.1400d9558
int3
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call fcn.1400621a0
nop
mov eax, dword [0x1401cbd80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 5
jne 0x1400624b9
call fcn.1400d2038
mov ecx, dword [0x1401cbd80]
cmp ecx, eax
jne 0x1400624b9
dec ecx
mov dword [0x1401cbd80], ecx
lea r8, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.140064950
nop
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 0x2000
mov r9d, 1
xor r8d, r8d
mov edx, 0x40000001
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r14, rax
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x140062558
lea rax, str.Failure_to_create_pipes_0
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400d4b08
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x14018e508]
lea rcx, [rsp + 0x40]
call fcn.1400d9558
int3
mov qword [rbp - 0x80], rbx
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rsi, rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x68], rax
test rax, rax
jne 0x1400625d2
lea rax, str.Failure_to_create_pipes_1
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400d4b08
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x14018e508]
lea rcx, [rsp + 0x40]
call fcn.1400d9558
int3
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1400627b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400627b9
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x140062682
lea rax, str.Failure_to_create_pipes_3
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400d4b08
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x14018e508]
lea rcx, [rsp + 0x40]
call fcn.1400d9558
int3
mov edx, 0x7d0
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400626db
lea rax, str.Failure_to_create_pipes_4
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400d4b08
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x14018e508]
lea rcx, [rsp + 0x40]
call fcn.1400d9558
int3
lea rax, [rsp + 0x58]
cmp r12, rax
je 0x14006270a
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov rcx, qword [r12]
cmp r15, rcx
je 0x14006270a
test rcx, rcx
je 0x140062706
cmp rcx, 0xffffffffffffffff
je 0x140062706
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12], r15
lea rax, [rsp + 0x68]
xor r15d, r15d
cmp r13, rax
je 0x14006273d
mov edi, r15d
mov qword [rsp + 0x68], r15
mov rcx, qword [r13]
cmp r14, rcx
je 0x14006273d
test rcx, rcx
je 0x140062739
cmp rcx, 0xffffffffffffffff
je 0x140062739
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r13], r14
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140062751
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp rsi, 0xffffffffffffffff
je 0x140062761
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140062775
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x40], 8
jb 0x140062785
mov rcx, qword [rbp - 0x58]
call fcn.1400d1660
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r15
mov word [rbp - 0x58], r15w
cmp qword [rbp - 0x20], 8
jb 0x1400627a6
mov rcx, qword [rbp - 0x38]
call fcn.1400d1660
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r15
mov word [rbp - 0x38], r15w
jmp 0x1400627ff
lea rax, str.Failure_to_create_pipes_2
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400d4b08
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x14018e508]
lea rcx, [rsp + 0x40]
call fcn.1400d9558
nop
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400d1680
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret