Function at 0x14001040d
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
mov qword [rsp + 0x58], rcx
mov byte [rsp + 0x4b], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x6c], ecx
xor edi, edi
mov dword [rsp + 0x4c], 8
lea r13, [rsp + 0xa0]
lea rbp, [rsp + 0x110]
lea r12, [rsp + 0x70]
lea rsi, [rsp + 0xc0]
xor eax, eax
mov qword [rsp + 0x90], rax
call qword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [rsp + 0xa0], eax
mov rax, qword [0x14001c0e8]
test rax, rax
jne 0x14001048f
call fcn.1400108d3
xchg qword [0x14001c0e8], rax
jmp 0x140010475
mov eax, 1
lock xadd qword [0x14001c0e8], rax
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x70], r13
lea rax, [0x1400055f8]
mov qword [rsp + 0x78], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0xc0], rax
mov ecx, 2
mov qword [rsp + 0xc8], rcx
and qword [rsp + 0xe0], 0
mov qword [rsp + 0x80], rbp
lea rax, [0x140005926]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xd0], r12
mov qword [rsp + 0xd8], rcx
lea rcx, [rsp + 0xf8]
mov rdx, rsi
call fcn.140004e76
test dil, 1
je 0x140010527
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
call fcn.140004cc5
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x100]
mov r15, qword [rsp + 0x108]
lea rax, [rcx + r15]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
and word [rsp + 0x80], 0
mov dword [rsp + 0x88], 1
mov rcx, r12
call fcn.140009b0c
test ax, ax
je 0x14001065c
mov ebx, edx
mov rcx, rsi
mov rdx, r12
call fcn.140009b4e
mov rcx, qword [rsp + 0xc0]
inc rcx
mov rax, 0xffffffffffffffff
cmove rcx, rax
cmp rcx, 5
mov eax, 4
cmovb rcx, rax
call fcn.14000972b
mov r14, rdx
mov word [rdx], bx
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], 1
movups xmm0, xmmword [rsp + 0x70]
movups xmm1, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0xd0], xmm1
movaps xmmword [rsp + 0xc0], xmm0
mov edi, 1
mov rcx, rsi
call fcn.140009b0c
cmp ax, 1
jne 0x140010652
mov ebx, edx
cmp rdi, qword [rsp + 0xa0]
jne 0x140010640
mov rcx, rbp
mov rdx, rsi
call fcn.140009b4e
mov rdx, qword [rsp + 0x110]
inc rdx
mov rax, 0xffffffffffffffff
cmove rdx, rax
mov rcx, r13
call fcn.1400097dc
mov r14, qword [rsp + 0xa8]
mov word [r14 + rdi*2], bx
inc rdi
mov qword [rsp + 0xb0], rdi
jmp 0x1400105f5
mov rdi, qword [rsp + 0xa0]
jmp 0x140010664
mov r14d, 2
xor edi, edi
mov eax, 0x10000
mov dword [rsp + 0x28], eax
and qword [rsp + 0x38], 0
mov dword [rsp + 0x20], eax
and dword [rsp + 0x30], 0
mov rcx, r14
mov edx, dword [rsp + 0x6c]
mov r8d, dword [rsp + 0x4c]
mov r9d, 1
call qword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140010795
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xb8], rbx
mov rbx, r13
mov r13, r12
mov rax, qword [rsp + 0x90]
lea r12d, [rax + 1]
call fcn.14000aa88
mov r15, rax
mov rcx, rax
call fcn.14000ab2a
cmp r12d, 0xa
jge 0x140010757
mov edi, eax
mov ebp, edx
mov ecx, eax
mov r8d, 1
mov r9d, 5
call fcn.14000ab50
test al, al
je 0x140010701
mov eax, r12d
mov qword [rsp + 0x90], rax
jmp 0x140010729
cmp dword [rsp + 0x4c], 0
je 0x140010757
mov ecx, edi
mov edx, ebp
mov r8d, 1
mov r9d, 0x57
call fcn.14000ab50
mov dword [rsp + 0x4c], 0
test al, al
je 0x140010757
mov rcx, r15
call fcn.140006985
mov rcx, qword [rsp + 0x98]
mov rdx, r14
call fcn.140009e44
mov dil, 1
mov r12, r13
mov r13, rbx
lea rbp, [rsp + 0x110]
jmp 0x140010468
mov rax, qword [rsp + 0x58]
mov qword [rax + 8], r15
mov qword [rax], 1
mov rcx, qword [rsp + 0x98]
mov rdx, r14
call fcn.140009e44
mov rsi, 0xffffffffffffffff
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0xb8]
jmp 0x140010819
mov rcx, rdi
mov rdx, r14
call fcn.140009e44
lea r8, [rsp + 0xc0]
and qword [r8 + 0x10], 0
and dword [r8], 0
and qword [r8 + 0x1c], 0
and word [r8 + 0x24], 0
mov al, byte [rsp + 0x4b]
mov byte [r8 + 0x21], al
xor al, 1
mov byte [r8 + 0x20], al
and dword [r8 + 0x18], 0
mov dword [rsp + 0x70], 0x18
and qword [rsp + 0x78], 0
mov dword [rsp + 0x80], 1
mov qword [r8 + 8], r12
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
mov rdx, r15
call fcn.14000e752
test rax, rax
je 0x140010845
mov rax, qword [rsp + 0x58]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rsi, rbx
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call fcn.140004cc5
cmp rbx, 0xffffffffffffffff
je 0x140010830
mov rcx, rsi
call qword [sym.imp.kernel32.dll_CloseHandle]
nop
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x58]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
and qword [rax], 0
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call fcn.140004cc5
jmp 0x140010830