Function at 0x14005a0f0
Capabilities:
Create pipe

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rsp + 0x140], rbx
mov rax, qword [0x1400fb088]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x40], ebx
cmp qword [rcx + 0x38], rbx
jne 0x14005a236
lea rsi, [rcx + 0x18]
movdqa xmm0, xmmword [0x1400dbe30]
movdqu xmmword [rbp - 0x71], xmm0
mov word [rsp + 0x48], bx
mov dword [rsp + 0x40], 1
lea r14, [rsi + 0x10]
mov rdx, qword [r14]
add rdx, 9
cmp rdx, 8
jb 0x14005a175
lea rcx, [rsp + 0x48]
call fcn.14001eca0
mov qword [rbp - 0x71], rbx
mov r8d, 9
lea rdx, str..pipe_
lea rcx, [rsp + 0x48]
call fcn.14000a14c
cmp qword [rsi + 0x18], 8
jb 0x14005a196
mov rsi, qword [rsi]
mov r8, qword [r14]
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.14000a14c
lea rcx, [rsp + 0x48]
cmp qword [rbp - 0x69], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov edx, 3
lea r9d, [rdx - 2]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rdi + 0x38]
cmp rax, rcx
je 0x14005a1f5
test rcx, rcx
je 0x14005a1f1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x38], rsi
mov rdx, qword [rbp - 0x69]
cmp rdx, 8
jb 0x14005a236
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a231
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a4ff
call fcn.14006fa74
movdqa xmm0, xmmword [0x1400dbe30]
movdqu xmmword [rbp - 0x51], xmm0
mov word [rbp - 0x61], bx
lea rdx, [0x1400d94a8]
lea rcx, [rbp - 0x61]
call fcn.1400056b0
nop
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x140100cc4], eax
jle 0x14005a2be
lea rcx, [0x140100cc4]
call fcn.14006fcf4
cmp dword [0x140100cc4], 0xffffffff
jne 0x14005a2be
xor eax, eax
mov qword [0x140100cd0], rax
mov qword [0x140100cc8], 0xffffffffffffffff
mov dword [0x140100cd0], 0xc0000225
lea rcx, [0x1400bb7b0]
call fcn.1400700c4
lea rcx, [0x140100cc4]
call fcn.14006fc94
lea rdx, [rbp - 0x61]
lea rcx, [0x140100cc8]
call fcn.140029660
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x14005a30f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a30a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a4f9
call fcn.14006fa74
mov eax, dword [rsi]
cmp dword [0x140100cc4], eax
jle 0x14005a364
lea rcx, [0x140100cc4]
call fcn.14006fcf4
cmp dword [0x140100cc4], 0xffffffff
jne 0x14005a364
xor eax, eax
mov qword [0x140100cd0], rax
mov qword [0x140100cc8], 0xffffffffffffffff
mov dword [0x140100cd0], 0xc0000225
lea rcx, [0x1400bb7b0]
call fcn.1400700c4
lea rcx, [0x140100cc4]
call fcn.14006fc94
mov rax, qword [rdi]
mov edx, dword [rax + 8]
xor eax, eax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
mov dword [rbp - 0x39], ebx
mov rcx, qword [0x140100cc8]
cmp rcx, 0xffffffffffffffff
jne 0x14005a39e
mov ebx, 0xc00000c0
jmp 0x14005a4d4
mov dword [rbp - 0x29], edx
mov qword [rbp - 0x31], r15
mov dword [rbp - 0x25], 1
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x10
lea r8, [rbp - 0x31]
mov edx, 0x8005e01c
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14005a3fb
mov rax, qword gs:[0x30]
mov ebx, dword [rax + 0x1250]
test ebx, ebx
js 0x14005a4d4
xor eax, eax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
call fcn.140017070
mov qword [rbp - 9], rax
mov eax, dword [rsi]
cmp dword [0x140100cc4], eax
jle 0x14005a46f
lea rcx, [0x140100cc4]
call fcn.14006fcf4
cmp dword [0x140100cc4], 0xffffffff
jne 0x14005a46f
xor eax, eax
mov qword [0x140100cd0], rax
mov qword [0x140100cc8], 0xffffffffffffffff
mov dword [0x140100cd0], 0xc0000225
lea rcx, [0x1400bb7b0]
call fcn.1400700c4
lea rcx, [0x140100cc4]
call fcn.14006fc94
mov rax, qword [rdi]
lea r8, [rdi + 0x18]
lea rdx, [rbp - 0x21]
mov qword [rsp + 0x20], rdx
mov edx, dword [rax + 8]
lea rcx, [0x140100cc8]
call fcn.140029c70
test eax, eax
js 0x14005a4bd
lea r8, [rdi + 8]
lea rax, [rbp - 9]
cmp r8, rax
je 0x14005a4bd
mov rcx, qword [r8]
mov rax, qword [rbp - 9]
mov qword [r8], rax
mov qword [rbp - 9], rcx
mov rdx, qword [r8 + 8]
mov rcx, qword [rbp - 1]
mov qword [r8 + 8], rcx
mov qword [rbp - 1], rdx
lea rcx, [rbp - 9]
call fcn.14005aac0
mov edx, 0x38
mov rcx, qword [rbp - 9]
call fcn.14006fa74
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14006fa50
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140097f2c
int3
call fcn.140097f2c
int3