Function at 0x14005ed70
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 [0x1401bbe90]
xor rax, rsp
mov qword [rbp], rax
mov qword [rsp + 0x58], rdx
mov r13, rcx
xor edi, edi
mov qword [rsp + 0x70], rdi
xor eax, eax
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jns 0x14005ee11
lea rax, str.Failure_to_set_pipe_name_0
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400d0f48
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140186940]
lea rcx, [rsp + 0x40]
call fcn.1400d5998
int3
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call fcn.14005eb30
nop
lea r8, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.140061360
nop
mov r9d, dword [0x1401c3d80]
lea r8d, [r9 + 1]
imul r8d, r9d
mov eax, 0x2aaaaaab
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
shl ecx, 2
sub r8d, ecx
cmp r8d, 1
jne 0x14005ee8d
mov r8d, edi
test r9d, r9d
je 0x14005ee86
nop
mov ecx, r9d
and ecx, 1
add r8d, ecx
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
jne 0x14005ee70
mov dword [0x1401c3d80], r8d
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 0x2000
mov esi, 1
mov r9d, esi
xor r8d, r8d
mov edx, 0x40000001
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r15, rax
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14005ef20
lea rax, str.Failure_to_create_pipes_0
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400d0f48
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140186940]
lea rcx, [rsp + 0x40]
call fcn.1400d5998
int3
mov qword [rbp - 0x80], rdi
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x68], rax
test rax, rax
jne 0x14005ef99
lea rax, str.Failure_to_create_pipes_1
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400d0f48
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140186940]
lea rcx, [rsp + 0x40]
call fcn.1400d5998
int3
lea rdx, [rbp - 0x80]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14005f21b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14005f21b
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rcx, qword [rbp - 0x58]
mov qword [rsp + 0x30], rdi
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 r12, rax
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x14005f049
lea rax, str.Failure_to_create_pipes_3
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400d0f48
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140186940]
lea rcx, [rsp + 0x40]
call fcn.1400d5998
int3
mov edx, 0x7d0
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14005f0a2
lea rax, str.Failure_to_create_pipes_4
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400d0f48
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140186940]
lea rcx, [rsp + 0x40]
call fcn.1400d5998
int3
lea rax, [rsp + 0x60]
cmp r13, rax
je 0x14005f0d1
xor edi, edi
mov qword [rsp + 0x60], rdi
mov rcx, qword [r13]
cmp r12, rcx
je 0x14005f0d1
test rcx, rcx
je 0x14005f0cd
cmp rcx, 0xffffffffffffffff
je 0x14005f0cd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r13], r12
mov r8d, dword [0x1401c3d80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 6
jne 0x14005f124
mov eax, esi
mov ecx, 0x21
nop dword [rax + rax]
lea r8d, [rax + rsi]
lea esi, [rax]
mov eax, r8d
dec ecx
jns 0x14005f110
mov dword [0x1401c3d80], r8d
lea rax, [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
xor r12d, r12d
cmp rsi, rax
je 0x14005f161
mov ebx, r12d
mov qword [rsp + 0x68], rbx
mov rcx, qword [rsi]
cmp r15, rcx
je 0x14005f161
test rcx, rcx
je 0x14005f15e
cmp rcx, 0xffffffffffffffff
je 0x14005f15e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [0x1401c3d80]
mov qword [rsi], r15
imul r8d, r8d
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub r8d, edx
mov esi, 7
cmp r8d, 2
jne 0x14005f1a7
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401c3d80]
test rax, rax
cmove ecx, esi
mov dword [0x1401c3d80], ecx
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005f1bb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp r14, 0xffffffffffffffff
je 0x14005f1cb
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14005f1df
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp qword [rbp - 0x40], 8
jb 0x14005f1ef
mov rcx, qword [rbp - 0x58]
call fcn.1400cdaa0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x48], r12
mov word [rbp - 0x58], r12w
cmp qword [rbp - 0x20], 8
jb 0x14005f20c
mov rcx, qword [rbp - 0x38]
call fcn.1400cdaa0
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x28], r12
mov word [rbp - 0x38], r12w
jmp 0x14005f261
lea rax, str.Failure_to_create_pipes_2
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400d0f48
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140186940]
lea rcx, [rsp + 0x40]
call fcn.1400d5998
nop
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400cdac0
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret