Function at 0x14005b500
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov edi, r9d
mov r14d, edx
mov rsi, rcx
mov r12d, dword [rbp + 0x78]
mov r15d, dword [rcx + 0x34]
cmp r12d, 4
jne 0x14005b5d8
test r15d, r15d
jne 0x14005b5d8
movzx eax, byte [0x140122141]
mov ecx, 0x88
mov edx, 1
call fcn.14003cf10
test rax, rax
je 0x14005b725
mov rsi, rax
lea rdx, str.cannot_create_pipe_server_that_has_byte_type_but_reads_messages__have_you_forgotten_to_set_the__mode__field_in__PipeListenerOptions___
mov r8d, 0x88
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0x88
mov qword [rbp - 0x10], 0x88
movzx eax, byte [0x140122141]
mov ecx, 0x18
mov edx, 8
call fcn.14003cf10
test rax, rax
je 0x14005b760
mov rcx, qword [rbp - 0x10]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rax], xmm0
lea r8, fcn.140001940
mov cl, 0x14
mov rdx, rax
call fcn.1400b2e20
mov rsi, rax
mov ebx, 1
jmp 0x14005b6ef
mov r13d, dword [rbp + 0x70]
cmp byte [rsi + 0x18], 2
mov byte [rbp - 1], r8b
jne 0x14005b5ef
mov rax, qword [rsi]
mov r8, qword [rsi + 8]
jmp 0x14005b5fa
mov rcx, rsi
call fcn.1400bf8a0
mov r8, rdx
xor ebx, ebx
test r12d, r12d
setne bl
lea rcx, [rbp - 0x20]
mov rdx, rax
xor r9d, r9d
call fcn.14005ba30
inc r13d
mov eax, r13d
or eax, 0x80000
test r14b, r14b
cmove eax, r13d
mov ecx, eax
or ecx, 0x80000000
cmp byte [rsi + 0x3a], 0
cmove ecx, eax
mov edx, ecx
or edx, 0x40000000
test dil, dil
cmove edx, ecx
add ebx, ebx
cmp r12d, 5
mov eax, 0
cmove ebx, eax
movzx eax, byte [rbp - 1]
or eax, ebx
or eax, r15d
mov r8d, eax
or r8d, 8
cmp byte [rsi + 0x3b], 0
cmovne r8d, eax
mov rdi, qword [rbp - 0x20]
movzx eax, byte [rsi + 0x38]
mov r9d, 0xff
test eax, eax
je 0x14005b686
cmp eax, 0xff
je 0x14005b79b
mov r9d, eax
mov rax, qword [rsi + 0x28]
mov rcx, rax
shr rcx, 0x20
jne 0x14005b736
mov rcx, qword [rsi + 0x20]
mov r10, rcx
shr r10, 0x20
jne 0x14005b771
mov r10d, dword [rsi + 0x30]
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x38], 0
mov rcx, rdi
call sub.kernel32.dll_CreateNamedPipeW
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14005b706
xor ebx, ebx
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14005b6ef
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.14003cf20
mov rax, rbx
mov rdx, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call sub.kernel32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rdx, qword [rbp - 0x18]
test rdx, rdx
jne 0x14005b6de
jmp 0x14005b6ef
mov ecx, 1
mov edx, 0x88
call fcn.1400db210
ud2
lea rax, [0x1400e71f8]
mov qword [rsp + 0x20], rax
lea rcx, str.output_buffer_size_hint_overflowed_DWORD6q
lea r9, fcn.1400011a0
lea r8, [rbp - 2]
mov edx, 0x28
call fcn.1400db700
jmp 0x14005b7b3
mov ecx, 8
mov edx, 0x18
call fcn.1400db210
jmp 0x14005b7b3
lea rax, [0x1400e7238]
mov qword [rsp + 0x20], rax
lea rcx, str.input_buffer_size_hint_overflowed_DWORD
lea r9, fcn.1400011a0
lea r8, [rbp - 2]
mov edx, 0x27
call fcn.1400db700
jmp 0x14005b7b3
lea rcx, str.cannot_set_255_as_the_named_pipe_instance_limit_due_to_255_being_a_reserved_value
lea r8, [0x1400e73a8]
mov edx, 0x51
call fcn.1400d9e20
ud2