Function at 0x1800ae430
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 + 0x68], rcx
mov byte [rbp + 0x8f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov qword [rbp - 8], 0
mov r14d, 8
xorps xmm6, xmm6
lea rbx, [rbp + 0x20]
xor edi, edi
mov qword [rbp - 0x10], 0
nop dword [rax + rax]
call sub.kernel32.dll_GetCurrentProcessId
mov dword [rbp + 0x50], eax
mov rax, qword [0x1801651b0]
test rax, rax
jne 0x1800ae4d8
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x20], xmm6
mov edx, 0x10
mov rcx, rbx
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rbp + 0x20]
mov qword [0x1801651b0], rax
mov rax, qword [0x1801651b0]
test rax, rax
je 0x1800ae4b0
mov eax, 1
lock xadd qword [0x1801651b0], rax
mov qword [rbp - 0x20], rax
lea rax, [rbp + 0x50]
mov qword [rbp], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u32_::fmt::hdc03406a7df5e8fe]
mov qword [rbp + 8], rax
lea rax, [rbp - 0x20]
mov qword [rbp + 0x10], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u64_::fmt::hdfb866ac1c355e69]
mov qword [rbp + 0x18], rax
lea rax, [0x180125ec0]
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 - 0x38]
mov rdx, rbx
mov rsi, qword [rbp + 0x78]
call sym.alloc::fmt::format::format_inner::h0033b6d4996550c5
test rsi, rsi
setne al
and dil, al
cmp dil, 1
jne 0x1800ae56e
mov r8d, 1
mov rcx, qword [rbp + 0x80]
mov rdx, rsi
call sym.__rust_dealloc
mov r8, qword [rbp - 0x38]
mov r9, qword [rbp - 0x30]
mov r10, qword [rbp - 0x28]
lea rax, [r9 + r10]
mov qword [rbp + 0x60], rax
test r10, r10
mov qword [rbp + 0x78], r8
mov qword [rbp + 0x80], r9
mov dword [rbp + 0x54], r14d
mov qword [rbp - 0x18], r10
je 0x1800ae5b0
movzx eax, byte [r9]
test al, al
js 0x1800ae5d0
lea r12, [r9 + 1]
mov r13d, eax
jmp 0x1800ae62d
mov r15d, 4
mov edi, 8
xor ebx, ebx
xor r12d, r12d
xor r13d, r13d
mov qword [rbp + 0x70], 0
jmp 0x1800ae685
mov r13d, eax
and r13d, 0x1f
movzx edx, byte [r9 + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x1800ae622
movzx ecx, byte [r9 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x1800ae946
lea r12, [r9 + 4]
movzx eax, byte [r9 + 3]
and r13d, 7
shl r13d, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or r13d, eax
cmp r13d, 0xffff
jbe 0x1800ae62d
jmp 0x1800ae95e
lea r12, [r9 + 2]
shl r13d, 6
or r13d, edx
mov eax, 1
xor ebx, ebx
mov r8, qword [rbp + 0x60]
sub r8, r12
add r8, 3
mov rdx, 0xffffffffffffffff
cmovb r8, rdx
shr r8, 2
add r8, rax
cmp r8, 4
mov r15d, 3
cmovae r15, r8
lea rdi, [r15*2 + 2]
movabs rax, 0x3ffffffffffffffe
cmp r8, rax
ja 0x1800aeaf4
inc r15
mov ax, 1
mov qword [rbp + 0x70], rax
mov rax, qword [0x180143fe8]
movzx eax, byte [rax]
mov r14d, 2
mov edx, 2
mov rcx, rdi
call sym.__rust_alloc
test rax, rax
je 0x1800aeaf7
mov rsi, rax
mov rax, qword [rbp - 0x10]
inc eax
mov dword [rbp + 0x58], eax
mov word [rsi], r13w
mov r14d, 1
mov r9, qword [rbp + 0x70]
jmp 0x1800ae6e0
mov r13, r15
mov ebx, eax
mov word [rsi + r14*2], di
inc r14
mov r15, r13
test r12, r12
je 0x1800ae740
test bx, bx
je 0x1800ae720
xor eax, eax
mov edi, ebx
cmp r14, r15
jne 0x1800ae6d0
mov rcx, qword [rbp + 0x60]
sub rcx, r12
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
movzx edx, r9w
cmp ax, 1
sbb rcx, 0xffffffffffffffff
add rcx, rdx
mov ebx, eax
jmp 0x1800ae760
cmp r12, qword [rbp + 0x60]
je 0x1800ae740
movzx eax, byte [r12]
test al, al
js 0x1800ae80a
inc r12
mov edi, eax
xor eax, eax
jmp 0x1800ae6ee
cmp r9w, 1
jne 0x1800ae8a0
xor r12d, r12d
xor r9d, r9d
mov edi, 0
mov ecx, 0
cmp r14, r15
jne 0x1800ae7d0
lea rax, [rcx + 1]
add rax, r14
jb 0x1800aead4
lea r13, [rcx + r14]
inc r13
lea rax, [r15 + r15]
cmp rax, r13
cmova r13, rax
cmp r13, 5
jae 0x1800ae78b
mov r13d, 4
test r13, r13
js 0x1800aead4
lea r8, [r13*2]
movabs rcx, 0x7ffffffffffffffe
cmp r8, rcx
ja 0x1800aeae9
mov rcx, r15
mov r15, rsi
mov qword [rbp + 0x70], rcx
mov rsi, r9
test rcx, rcx
je 0x1800ae7da
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x30], rax
mov eax, 2
jmp 0x1800ae7dc
mov r13, r15
xor edi, edi
jmp 0x1800ae6d5
xor eax, eax
mov qword [rbp + 0x28], rax
mov edx, 2
mov rcx, rbp
lea r9, [rbp + 0x20]
call sym.alloc::raw_vec::finish_grow::hc74308f005f37d9a
cmp dword [rbp], 1
je 0x1800aead6
mov rax, qword [rbp + 8]
mov r9, rsi
mov rsi, rax
jmp 0x1800ae6d5
mov edi, eax
and edi, 0x1f
movzx edx, byte [r12 + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x1800ae857
movzx ecx, byte [r12 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x1800ae867
movzx eax, byte [r12 + 3]
add r12, 4
and edi, 7
shl edi, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or edi, eax
cmp edi, 0xffff
ja 0x1800ae878
xor eax, eax
jmp 0x1800ae6ee
add r12, 2
shl edi, 6
or edi, edx
xor eax, eax
jmp 0x1800ae6ee
add r12, 3
shl edi, 0xc
or edi, ecx
cmp edi, 0xffff
jbe 0x1800ae850
lea ecx, [rdi + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov eax, edi
mov edi, ecx
jmp 0x1800ae6ee
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rsi
mov edx, dword [rbp + 0x5c]
mov r14d, dword [rbp + 0x54]
mov r8d, r14d
mov r9d, 1
call sub.kernel32.dll_CreateNamedPipeW
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800aea00
call sub.kernel32.dll_GetLastError
mov ecx, dword [rbp + 0x58]
cmp ecx, 9
jg 0x1800ae98c
cmp eax, 5
jne 0x1800ae910
mov eax, ecx
mov qword [rbp - 0x10], rax
jmp 0x1800ae91d
test r14d, r14d
je 0x1800ae98c
xor r14d, r14d
cmp eax, 0x57
jne 0x1800ae98c
mov dil, 1
test r15, r15
lea rbx, [rbp + 0x20]
je 0x1800ae490
add r15, r15
mov r8d, 2
mov rcx, rsi
mov rdx, r15
call sym.__rust_dealloc
jmp 0x1800ae490
lea r12, [r9 + 3]
shl r13d, 0xc
or r13d, ecx
cmp r13d, 0xffff
jbe 0x1800ae62d
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, 2
mov ebx, r13d
mov r13d, ecx
jmp 0x1800ae634
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp + 0x68]
mov qword [rcx + 8], rax
mov qword [rcx], 1
test r15, r15
je 0x1800ae9bc
add r15, r15
mov r8d, 2
mov rcx, rsi
mov rdx, r15
call sym.__rust_dealloc
mov rdx, qword [rbp + 0x78]
test rdx, rdx
je 0x1800ae9d7
mov r8d, 1
mov rcx, qword [rbp + 0x80]
call sym.__rust_dealloc
cmp rbx, 0xffffffffffffffff
je 0x1800ae9e5
mov rcx, rbx
call fcn.18010210c
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
test r15, r15
je 0x1800aea19
add r15, r15
mov r8d, 2
mov rcx, rsi
mov rdx, r15
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
mov sil, 1
lea r8, [rbp + 0x20]
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp - 0x18]
call sym.std::sys::pal::windows::fs::File::open::hc5f4d9ae76270501
test rax, rax
je 0x1800aea9d
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdx, qword [rbp + 0x78]
test rdx, rdx
jne 0x1800ae9c5
jmp 0x1800ae9d7
mov rax, qword [rbp + 0x68]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
mov rdx, qword [rbp + 0x78]
test rdx, rdx
je 0x1800ae9e5
mov r8d, 1
mov rcx, qword [rbp + 0x80]
call sym.__rust_dealloc
jmp 0x1800ae9e5
jmp 0x1800aeae9
mov rax, qword [rbp + 8]
mov qword [rbp - 8], rax
mov rdx, qword [rbp + 0x10]
mov rsi, r15
mov r15, qword [rbp + 0x70]
mov rcx, qword [rbp - 8]
call sym.alloc::raw_vec::handle_error::hcf880acc1984e8dc
jmp 0x1800aeb04
xor r14d, r14d
xor esi, esi
mov rcx, r14
mov rdx, rdi
call sym.alloc::raw_vec::handle_error::hcf880acc1984e8dc
ud2