Function at 0x14005d310
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 [0x1401b5e90]
xor rax, rsp
mov qword [rbp], rax
mov r12, 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 0x14005d3af
lea rax, str.Failure_to_set_pipe_name_0
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400cef68
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140180af8]
lea rcx, [rsp + 0x40]
call fcn.1400d39b8
int3
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call fcn.14005d150
nop
lea r8, [rbp - 0x38]
lea rcx, [rbp - 0x58]
call fcn.14005f7b0
nop
mov r8d, dword [0x1401bdd80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, 4
jne 0x14005d449
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x2f4
movsxd rcx, r8d
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400cb128
mov rcx, rax
call fcn.1400cc208
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 r9d, 1
xor r8d, r8d
mov edx, 0x40000001
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14005d4da
lea rax, str.Failure_to_create_pipes_0
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400cef68
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140180af8]
lea rcx, [rsp + 0x40]
call fcn.1400d39b8
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
lea edx, [rax + 1]
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 0x14005d554
lea rax, str.Failure_to_create_pipes_1
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.1400cef68
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140180af8]
lea rcx, [rsp + 0x40]
call fcn.1400d39b8
int3
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14005d71a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14005d71a
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 r15, rax
mov rdi, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14005d604
lea rax, str.Failure_to_create_pipes_3
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400cef68
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140180af8]
lea rcx, [rsp + 0x40]
call fcn.1400d39b8
int3
mov edx, 0x7d0
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14005d65d
lea rax, str.Failure_to_create_pipes_4
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400cef68
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140180af8]
lea rcx, [rsp + 0x40]
call fcn.1400d39b8
int3
lea rax, [rsp + 0x58]
cmp r13, rax
je 0x14005d685
xor edi, edi
mov qword [rsp + 0x58], rdi
mov rdx, qword [r13]
cmp r15, rdx
je 0x14005d685
test rdx, rdx
je 0x14005d681
call fcn.14004f620
mov qword [r13], r15
lea rax, [rsp + 0x68]
xor r15d, r15d
cmp r12, rax
je 0x14005d6b1
mov ebx, r15d
mov qword [rsp + 0x68], rbx
mov rdx, qword [r12]
cmp rsi, rdx
je 0x14005d6b1
test rdx, rdx
je 0x14005d6ad
call fcn.14004f620
mov qword [r12], rsi
test rdi, rdi
je 0x14005d6bf
mov rdx, rdi
call fcn.14004f620
nop
mov rdx, r14
call fcn.14004f620
nop
test rbx, rbx
je 0x14005d6d6
mov rdx, rbx
call fcn.14004f620
nop
cmp qword [rbp - 0x40], 8
jb 0x14005d6e6
mov rcx, qword [rbp - 0x58]
call fcn.1400cbac0
mov qword [rbp - 0x40], 7
mov qword [rbp - 0x48], r15
mov word [rbp - 0x58], r15w
cmp qword [rbp - 0x20], 8
jb 0x14005d707
mov rcx, qword [rbp - 0x38]
call fcn.1400cbac0
mov qword [rbp - 0x20], 7
mov qword [rbp - 0x28], r15
mov word [rbp - 0x38], r15w
jmp 0x14005d760
lea rax, str.Failure_to_create_pipes_2
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400cef68
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x40], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x40], rax
lea rdx, [0x140180af8]
lea rcx, [rsp + 0x40]
call fcn.1400d39b8
nop
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400cbae0
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret