Function at 0x14000cd90
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1401fa010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov byte [rcx + 0x14], dl
mov rbx, rcx
neg dl
lea rcx, str..pipeVisualizer
mov edx, 0x40000003
mov r9d, 0xff
sbb r8d, r8d
xor edi, edi
mov qword [rsp + 0x38], rdi
and r8d, 6
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 0x100000
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x14000ce55
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.CreateNamedPipe_failed_during_initialization_of_the_server._Error__d_n
mov edx, 0x100
mov r9d, eax
lea rcx, [rsp + 0x50]
call fcn.140008bb0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x40], edi
cmp rax, 0xffffffffffffffff
je 0x14000d03b
lea rcx, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], dil
jne 0x14000ce47
jmp 0x14000d019
cmp qword [rbx + 0x50], 0xffffffffffffffff
jne 0x14000ced2
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
cmp rax, 0xffffffffffffffff
jne 0x14000ced2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Could_not_create_the_overlap_instruction_event._Error__d_n
mov edx, 0x100
mov r9d, eax
lea rcx, [rsp + 0x50]
call fcn.140008bb0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x40], edi
cmp rax, 0xffffffffffffffff
je 0x14000d03b
lea rcx, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], dil
jne 0x14000cec4
jmp 0x14000d019
mov rcx, qword [rbx + 0x58]
lea rdx, [rbx + 0x38]
mov dword [rbx + 0x10], 2
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [rbx + 0xc], eax
test eax, eax
jne 0x14000d03f
mov dword [rbx + 0x10], edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x14000cf92
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x40], edi
cmp rax, 0xffffffffffffffff
je 0x14000cf4d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, 0x28
lea rdx, str.ConnectNamedPipe__ERROR_PIPE_CONNECTED__n
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000cf4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x14000d086
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x40], edi
cmp rax, 0xffffffffffffffff
je 0x14000d086
mov r8d, 0x28
lea rdx, str.ConnectNamedPipe_SetEvent_returned_true_n
jmp 0x14000d069
cmp eax, 0x3e5
jne 0x14000cfcc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x40], edi
cmp rax, 0xffffffffffffffff
je 0x14000d086
mov r8d, 0x25
lea rdx, str.ConnectNamedPipe__ERROR_IO_PENDING_._n
jmp 0x14000d069
mov r9d, eax
lea r8, str.ConnectNamedPipe_returned_error._Error__d_n
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140008bb0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x40], edi
cmp rax, 0xffffffffffffffff
je 0x14000d03b
lea rcx, [rsp + 0x50]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rcx + r8], dil
jne 0x14000d010
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000d03b
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x14000d088
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [rsp + 0x40], edi
cmp rax, 0xffffffffffffffff
je 0x14000d086
mov r8d, 0x35
lea rdx, str.ConnectNamedPipe_returned_true__which_is_unexpected._n
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000d086
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140183d70
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret