Function at 0x14002afa0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x1402a2cf8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, rdx
mov qword [rbp - 0x19], rdx
mov rsi, rcx
xor edi, edi
cmp qword [rcx + 0x38], rdi
jg 0x14002b120
lea r14, [rcx + 0x18]
mov r13, qword [r14 + 0x10]
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r13
cmp rax, 9
jb 0x14002b31a
cmp qword [r14 + 0x18], 8
jb 0x14002b00c
mov r14, qword [r14]
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], rdi
lea r12, [r13 + 9]
mov ebx, 7
lea r15, [rbp - 0x39]
cmp r12, rbx
jbe 0x14002b057
mov rbx, r12
or rbx, 7
cmp rbx, rcx
jbe 0x14002b037
mov rbx, rcx
jmp 0x14002b043
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x39]
call fcn.1400099e0
mov r15, rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x21], rbx
movups xmm0, xmmword [0x140120598]
movups xmmword [r15], xmm0
movzx eax, word [0x1401205a8]
mov word [r15 + 0x10], ax
lea r8, [r13*2]
lea rcx, [r15 + 0x12]
mov rdx, r14
call fcn.1400b76e0
mov word [r15 + r12*2], di
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rcx, qword [rbp - 0x39]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov edx, 3
lea r9d, [rdx - 2]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
mov rcx, qword [rsi + 0x38]
cmp rax, rcx
je 0x14002b0dc
test rcx, rcx
jle 0x14002b0d8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x38], rbx
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14002b11c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b117
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b320
call fcn.14009aa1c
mov r14, qword [rbp - 0x19]
call fcn.140001a00
mov rbx, rax
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], di
xor r8d, r8d
lea rdx, [0x14011f8ac]
lea rcx, [rbp - 0x39]
call fcn.1400098b0
nop
lea rdx, [rbp - 0x39]
mov rcx, rbx
call fcn.140025920
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x14002b199
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b194
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b314
call fcn.14009aa1c
call fcn.140001a00
mov rcx, qword [rax]
mov rax, qword [rsi]
mov edx, dword [rax + 8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
mov dword [rbp - 0x19], edi
cmp rcx, 0xffffffffffffffff
jne 0x14002b1c5
mov edi, 0xc00000c0
jmp 0x14002b2eb
mov dword [rbp - 0x31], edx
mov qword [rbp - 0x39], r14
mov dword [rbp - 0x2d], 1
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rbp - 0x39]
mov edx, 0x8005e01c
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14002b222
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x1250]
test edi, edi
js 0x14002b2eb
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], rax
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
lea ecx, [rax + 0x38]
call fcn.14009a9e0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp + 7], rax
call fcn.140001a00
mov rcx, rax
mov rax, qword [rsi]
lea r8, [rsi + 0x18]
lea rdx, [rbp - 0x11]
mov qword [rsp + 0x20], rdx
mov edx, dword [rax + 8]
call fcn.140025e20
test eax, eax
js 0x14002b2a5
lea rdx, [rsi + 8]
lea rax, [rbp + 7]
cmp rdx, rax
je 0x14002b2a5
mov r8, qword [rdx]
mov rax, qword [rbp + 7]
mov qword [rdx], rax
mov qword [rbp + 7], r8
mov rcx, qword [rdx + 8]
mov rax, qword [rbp + 0xf]
mov qword [rdx + 8], rax
mov qword [rbp + 0xf], rcx
jmp 0x14002b2a9
mov r8, qword [rbp + 7]
mov rbx, qword [r8 + 8]
cmp byte [rbx + 0x19], 0
jne 0x14002b2de
mov r8, qword [rbx + 0x10]
lea rdx, [rbp + 7]
lea rcx, [rbp + 7]
call fcn.14002b960
mov rcx, rbx
mov rbx, qword [rbx]
mov edx, 0x38
call fcn.14009aa1c
cmp byte [rbx + 0x19], 0
je 0x14002b2b3
mov r8, qword [rbp + 7]
mov edx, 0x38
mov rcx, r8
call fcn.14009aa1c
mov eax, edi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14009a9c0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400c88c8
int3
call fcn.140001830
int3
call fcn.1400c88c8
int3