Function at 0x14004d11c
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14019be90]
xor rax, rsp
mov qword [rbp], rax
mov rbx, rdx
mov rdi, rcx
lea rcx, [rsp + 0x70]
call fcn.14004d060
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x30]
call fcn.14004ce30
nop
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.14004f2f4
nop
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
xor r15d, r15d
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r15d
mov eax, 0x2000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
lea r14d, [r15 + 1]
mov r9d, r14d
xor r8d, r8d
mov edx, 0x40000001
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14004d20f
lea rax, str.Failure_to_create_pipes_0
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.1400be558
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x70], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x70], rax
lea rdx, [0x140166650]
lea rcx, [rsp + 0x70]
call fcn.1400c2fa8
int3
mov qword [rbp - 0x78], r15
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x60], rax
test rax, rax
jne 0x14004d286
lea rax, str.Failure_to_create_pipes_1
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400be558
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x50], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x50], rax
lea rdx, [0x140166650]
lea rcx, [rsp + 0x50]
call fcn.1400c2fa8
int3
lea rdx, [rbp - 0x78]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14004d466
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14004d466
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
mov qword [rsp + 0x30], r15
mov edx, 0x40000000
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov qword [rsp + 0x40], rax
mov ecx, dword [0x1401a3d80]
lea r8d, [rcx + 1]
imul r8d, ecx
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x16
sub r8d, edx
mov eax, dword [0x1401a55ec]
mov ecx, 0xcacdc927
cmp r8d, 0x11
cmove eax, ecx
mov dword [0x1401a55ec], eax
test r14, r14
jne 0x14004d36d
lea rax, str.Failure_to_create_pipes_3
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400be558
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x50], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x50], rax
lea rdx, [0x140166650]
lea rcx, [rsp + 0x50]
call fcn.1400c2fa8
int3
mov edx, 0x7d0
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14004d3c6
lea rax, str.Failure_to_create_pipes_4
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400be558
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x50], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x50], rax
lea rdx, [0x140166650]
lea rcx, [rsp + 0x50]
call fcn.1400c2fa8
int3
lea rax, [rsp + 0x40]
cmp rdi, rax
je 0x14004d3e5
mov qword [rsp + 0x40], r15
cmp r14, qword [rdi]
je 0x14004d3e5
mov rcx, rdi
call fcn.14004bfb0
mov qword [rdi], r14
lea rax, [rsp + 0x68]
cmp rbx, rax
je 0x14004d404
mov qword [rsp + 0x68], r15
cmp rsi, qword [rbx]
je 0x14004d404
mov rcx, rbx
call fcn.14004bfb0
mov qword [rbx], rsi
lea rcx, [rsp + 0x40]
call fcn.14004bfb0
nop
lea rcx, [rsp + 0x70]
call fcn.14004bfb0
nop
lea rcx, [rsp + 0x68]
call fcn.14004bfb0
nop
cmp qword [rbp - 0x38], 8
jb 0x14004d435
mov rcx, qword [rbp - 0x50]
call fcn.1400bb0b4
mov ebx, 7
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
cmp qword [rbp - 0x18], 8
jb 0x14004d457
mov rcx, qword [rbp - 0x30]
call fcn.1400bb0b4
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
jmp 0x14004d4ac
lea rax, str.Failure_to_create_pipes_2
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.1400be558
nop
lea rax, vtable.CRSimpleIPCException.0
mov qword [rsp + 0x50], rax
lea rax, vtable.CRSimpleIPCExceptionServerException.0
mov qword [rsp + 0x50], rax
lea rdx, [0x140166650]
lea rcx, [rsp + 0x50]
call fcn.1400c2fa8
nop
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400bb0d0
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret