Function at 0x14000c130
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x1c8]
sub rsp, 0x2c0
mov rax, qword [0x140120678]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov qword [r11 + 0x18], rsi
lea r9, str.INFO
mov qword [r11 + 0x20], rdi
lea r8, [0x1400cbd78]
mov rdi, rcx
lea rdx, [0x1400cdf90]
mov ecx, 1
call fcn.14000afc0
lea rax, [0x1400cc250]
mov ecx, 1
lea r9, str.INFO
mov qword [rsp + 0x20], rax
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___VERSION:__s_r_n
call fcn.14000afc0
lea rax, str.product
mov ecx, 1
lea r9, str.INFO
mov qword [rsp + 0x20], rax
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___FLAVOR:__s_r_n
call fcn.14000afc0
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, [0x1400cdf90]
call fcn.14000afc0
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__Ucs_proxy_Pipe_Init_r_n
call fcn.14000afc0
call fcn.14000c810
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x208
call fcn.1400a20f0
xor esi, esi
mov qword [rbp - 0x68], 7
lea rdx, str.WUCSProxy
mov qword [rbp - 0x70], rsi
lea rcx, [rbp - 0x80]
mov word [rbp - 0x80], si
lea r8d, [rsi + 9]
call fcn.140004810
mov qword [rsp + 0x2d8], rbx
test rdi, rdi
je 0x14000c26d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000c463
mov edx, 1
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
lea rcx, [rsp + 0x58]
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp qword [rbp - 0x68], 8
lea rax, [rsp + 0x58]
lea r9, [rbp - 0x80]
mov dword [rsp + 0x50], 1
cmovae r9, qword [rbp - 0x80]
lea r8, str..pipe_s
mov edx, 0x104
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x40], 0x18
call fcn.14000bde0
mov r9d, dword [0x140120130]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x30], esi
mov edx, 0x80003
mov dword [rsp + 0x28], 0x2810
mov r8d, 0xe
mov dword [rsp + 0x20], 0x2810
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c3df
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.ERROR
mov dword [rsp + 0x20], eax
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__CreateNamedPipe_failed_r_n
lea ecx, [rbx + 4]
call fcn.14000afc0
lea rcx, [rbp - 0x80]
call fcn.14000b810
test eax, eax
je 0x14000c255
lea r9, str.ERROR
mov dword [rsp + 0x20], eax
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s___0x_lx__GetAvailablePipeName_fail_r_n
lea ecx, [rbx + 4]
call fcn.14000afc0
mov rdx, qword [rbp - 0x68]
mov rdi, qword [rsp + 0x2e8]
mov rsi, qword [rsp + 0x2e0]
mov rbx, qword [rsp + 0x2d8]
cmp rdx, 8
jb 0x14000c3c7
mov rcx, qword [rbp - 0x80]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c3c2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c487
call fcn.14009fcc0
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400a0360
add rsp, 0x2c0
pop rbp
ret
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x14000c3f0
lea rdx, [rbp - 0x60]
lea rcx, [0x140120138]
call fcn.140004810
xor edx, edx
mov byte [0x140122f90], sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x14000c434
mov rcx, rbx
mov byte [0x140122f90], 1
call fcn.14000bb80
jmp 0x14000c255
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [0x140122f90], 1
cmp eax, 0x217
jne 0x14000c455
mov rcx, rbx
call fcn.14000bb80
jmp 0x14000c255
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000c255
lea r9, str.INFO
mov ecx, 1
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__Receive_Pipe_Stop_Event_r_n
call fcn.14000afc0
jmp 0x14000c36f
call fcn.1400a47dc
int3