Function at 0x14003f5e0
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x90], xmm6
mov qword [rbp + 0x70], rcx
mov byte [rbp + 0x8f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x64], ecx
xor eax, eax
mov qword [rbp - 8], rax
mov ebx, 8
mov r14b, 1
xorps xmm6, xmm6
lea rsi, [rbp + 0x20]
xor eax, eax
mov qword [rbp - 0x10], rax
nop word cs:[rax + rax]
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rbp + 0x58], eax
nop dword [rax + rax]
mov rax, qword [0x1400580f8]
test rax, rax
jne 0x14003f680
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, rsi
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rbp + 0x20]
mov qword [0x1400580f8], rax
jmp 0x14003f650
mov eax, 1
lock xadd qword [0x1400580f8], rax
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rbp], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u32_::fmt::hffb574642817ad4a]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x28]
mov qword [rbp + 0x10], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u64_::fmt::h57e859256a3b26f6]
mov qword [rbp + 0x18], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 2
mov qword [rbp + 0x40], 0
mov rax, rbp
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 2
lea rcx, [rbp - 0x40]
mov rdx, rsi
call sym.alloc::fmt::format::format_inner::h5a493f368b54610e
cmp qword [rbp + 0x78], 0
sete al
or r14b, al
test r14b, 1
jne 0x14003f710
mov edx, 1
mov rcx, qword [rbp + 0x80]
call sym.__rust_dealloc
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0x78], rax
mov r8, qword [rbp - 0x38]
mov r9, qword [rbp - 0x30]
lea rax, [r8 + r9]
mov qword [rbp + 0x68], rax
test r9, r9
mov qword [rbp + 0x80], r8
mov dword [rbp + 0x5c], ebx
mov qword [rbp - 0x18], r9
je 0x14003f750
movzx r12d, byte [r8]
test r12b, r12b
js 0x14003f770
lea rdi, [r8 + 1]
jmp 0x14003f7d1
mov r13d, 4
mov ebx, 8
xor r15d, r15d
xor edi, edi
xor r12d, r12d
xor esi, esi
jmp 0x14003f826
mov eax, r12d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r12b, 0xdf
jbe 0x14003f7c5
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r12b, 0xf0
jb 0x14003fb10
lea rdi, [r8 + 4]
movzx r12d, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and r12d, 0x3f
or r12d, ecx
or r12d, eax
cmp r12d, 0xffff
jbe 0x14003f7d1
jmp 0x14003fb29
lea rdi, [r8 + 2]
shl eax, 6
or eax, edx
mov r12d, eax
mov eax, 1
xor r15d, r15d
mov rcx, qword [rbp + 0x68]
sub rcx, rdi
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
add rcx, rax
cmp rcx, 4
mov r13d, 3
cmovae r13, rcx
lea rbx, [r13*2 + 2]
movabs rax, 0x3ffffffffffffffe
cmp rcx, rax
ja 0x14003fca3
inc r13
mov si, 1
movzx eax, byte [0x140058030]
mov rcx, rbx
call sym.std::sys::pal::windows::alloc::process_heap_alloc::h1ca289f3d44bb24b
test rax, rax
je 0x14003fc9a
mov r14, rax
mov rax, qword [rbp - 0x10]
inc eax
mov dword [rbp + 0x60], eax
mov word [r14], r12w
mov ebx, 1
mov r9, rsi
jmp 0x14003f874
mov rsi, r13
mov eax, r15d
mov word [r14 + rbx*2], ax
inc rbx
mov r13, rsi
mov r15d, r12d
test rdi, rdi
je 0x14003f8e0
test r15w, r15w
je 0x14003f8c0
xor r12d, r12d
cmp rbx, r13
jne 0x14003f860
mov rax, qword [rbp + 0x68]
sub rax, rdi
add rax, 3
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
shr rax, 2
movzx ecx, r9w
cmp r12w, 1
sbb rax, 0xffffffffffffffff
add rax, rcx
jmp 0x14003f8ff
cmp rdi, qword [rbp + 0x68]
je 0x14003f8e0
movzx r15d, byte [rdi]
test r15b, r15b
js 0x14003f9b6
inc rdi
jmp 0x14003f87f
cmp r9w, 1
jne 0x14003fa70
xor edi, edi
xor eax, eax
cmp rbx, r13
jne 0x14003f970
xor r9d, r9d
mov r12d, r15d
xor r15d, r15d
xor eax, eax
lea rcx, [rax + 1]
add rcx, rbx
jb 0x14003fc91
mov qword [rbp - 0x20], rdi
lea rsi, [rax + rbx]
inc rsi
mov r10, r13
lea rcx, [r13*2]
cmp rcx, rsi
cmova rsi, rcx
movabs rax, 0x3ffffffffffffffe
inc rax
xor edx, edx
cmp rsi, rax
setbe al
cmp rsi, 5
mov r8d, 4
cmovb rsi, r8
mov rdi, r9
test r13, r13
je 0x14003f97e
mov qword [rbp + 0x20], r14
mov qword [rbp + 0x30], rcx
mov ecx, 2
jmp 0x14003f980
mov rsi, r13
mov r12d, r15d
xor r9d, r9d
jmp 0x14003f866
xor ecx, ecx
lea r8, [rsi + rsi]
mov dl, al
add edx, edx
mov qword [rbp + 0x28], rcx
mov rcx, rbp
lea r9, [rbp + 0x20]
call sym.alloc::raw_vec::finish_grow::h1bf62b060934712b
cmp qword [rbp], 0
jne 0x14003fc87
mov r14, qword [rbp + 8]
mov eax, r15d
mov r9, rdi
mov rdi, qword [rbp - 0x20]
jmp 0x14003f866
mov eax, r15d
and eax, 0x1f
movzx edx, byte [rdi + 1]
and edx, 0x3f
cmp r15b, 0xdf
jbe 0x14003fa06
movzx ecx, byte [rdi + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r15b, 0xf0
jb 0x14003fa17
movzx r15d, byte [rdi + 3]
add rdi, 4
and eax, 7
shl eax, 0x12
shl ecx, 6
and r15d, 0x3f
or r15d, ecx
or r15d, eax
cmp r15d, 0xffff
jbe 0x14003f87f
jmp 0x14003fa30
add rdi, 2
shl eax, 6
or eax, edx
mov r15d, eax
jmp 0x14003f87f
add rdi, 3
shl eax, 0xc
or ecx, eax
mov r15d, ecx
cmp r15d, 0xffff
jbe 0x14003f87f
lea eax, [r15 + 0xff0000]
shr eax, 0xa
or eax, 0xd800
and r15d, 0x3ff
or r15d, 0xdc00
mov r12d, r15d
mov r15d, eax
cmp rbx, r13
jne 0x14003f860
jmp 0x14003f887
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rdi, r14
mov rcx, r14
mov edx, dword [rbp + 0x64]
mov ebx, dword [rbp + 0x5c]
mov r8d, ebx
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14003fb91
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [rbp + 0x60]
cmp ecx, 9
jg 0x14003fb58
cmp eax, 5
jne 0x14003fae0
mov eax, ecx
mov qword [rbp - 0x10], rax
jmp 0x14003faeb
test ebx, ebx
je 0x14003fb58
xor ebx, ebx
cmp eax, 0x57
jne 0x14003fb58
xor r14d, r14d
test r13, r13
lea rsi, [rbp + 0x20]
je 0x14003f640
mov edx, 2
mov rcx, rdi
call sym.__rust_dealloc
xor r14d, r14d
jmp 0x14003f640
lea rdi, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov r12d, ecx
cmp r12d, 0xffff
jbe 0x14003f7d1
lea ecx, [r12 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r12d, 0x3ff
or r12d, 0xdc00
mov eax, 2
mov r15d, r12d
mov r12d, ecx
jmp 0x14003f7d9
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x70]
mov qword [rcx + 8], rax
mov qword [rcx], 1
mov rbx, 0xffffffffffffffff
test r13, r13
je 0x14003fc17
mov edx, 2
mov rcx, rdi
call sym.__rust_dealloc
jmp 0x14003fc17
test r13, r13
je 0x14003fba3
mov edx, 2
mov rcx, rdi
call sym.__rust_dealloc
mov dword [rbp + 0x20], 0
mov dword [rbp + 0x40], 0
mov word [rbp + 0x44], 0
movzx eax, byte [rbp + 0x8f]
mov byte [rbp + 0x41], al
xor al, 1
mov byte [rbp + 0x40], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov dword [rbp], 0x18
mov qword [rbp + 8], 0
mov dword [rbp + 0x10], 1
mov rax, rbp
mov qword [rbp + 0x28], rax
xor esi, esi
lea r8, [rbp + 0x20]
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp - 0x18]
call sym.std::sys::pal::windows::fs::File::open::hc26adf99dd0cd861
test rax, rax
je 0x14003fc5a
mov rax, qword [rbp + 0x70]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rbx, r12
mov rcx, qword [rbp + 0x80]
mov rax, qword [rbp + 0x78]
test rax, rax
je 0x14003fc31
mov edx, 1
call sym.__rust_dealloc
cmp r12, 0xffffffffffffffff
je 0x14003fc3f
mov rcx, rbx
call fcn.140045bec
movaps xmm6, xmmword [rbp + 0x90]
add rsp, 0x128
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rbp + 0x70]
mov qword [rax + 8], r12
mov qword [rax + 0x10], rdx
mov qword [rax], 0
cmp qword [rbp + 0x78], 0
mov rcx, qword [rbp + 0x80]
je 0x14003fc3f
mov edx, 1
call sym.__rust_dealloc
jmp 0x14003fc3f
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp + 0x10]
jmp 0x14003fc93
xor ecx, ecx
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
jmp 0x14003fcb2
mov eax, 2
mov qword [rbp - 8], rax
mov sil, 1
mov rcx, qword [rbp - 8]
mov rdx, rbx
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
ud2