Function at 0x140142770
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x118
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x80], xmm6
mov qword [rbp + 0x58], rcx
mov byte [rbp + 0x7f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x4c], ecx
mov r14d, 8
mov dil, 1
xorps xmm6, xmm6
lea rbx, [rbp + 0x10]
xor eax, eax
mov qword [rbp - 0x18], rax
nop dword [rax]
call fcn.140195814
mov dword [rbp + 0x40], eax
mov rax, qword [0x140339370]
test rax, rax
jne 0x140142808
nop word cs:[rax + rax]
movaps xmmword [rbp + 0x10], xmm6
mov edx, 0x10
mov rcx, rbx
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rbp + 0x10]
mov qword [0x140339370], rax
mov rax, qword [0x140339370]
test rax, rax
je 0x1401427e0
mov eax, 1
lock xadd qword [0x140339370], rax
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rbp - 0x10], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u32_::fmt::h7a08b4d58ae04675]
mov qword [rbp - 8], rax
lea rax, [rbp - 0x28]
mov qword [rbp], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u64_::fmt::h1b6250528066096a]
mov qword [rbp + 8], rax
lea rax, [0x1402e6cd8]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 2
mov qword [rbp + 0x30], 0
lea rax, [rbp - 0x10]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 2
lea rcx, [rbp - 0x40]
mov rdx, rbx
mov rsi, qword [rbp + 0x68]
call sym.alloc::fmt::format::format_inner::hc0a4dc59a01219ca
test rsi, rsi
sete al
or dil, al
test dil, 1
jne 0x14014289c
mov r8d, 1
mov rcx, qword [rbp + 0x70]
mov rdx, rsi
call sym.__rust_dealloc
mov r8, qword [rbp - 0x40]
mov r9, qword [rbp - 0x38]
mov r10, qword [rbp - 0x30]
lea rax, [r9 + r10]
mov qword [rbp + 0x50], rax
test r10, r10
mov qword [rbp + 0x68], r8
mov qword [rbp + 0x70], r9
mov dword [rbp + 0x44], r14d
mov qword [rbp - 0x20], r10
je 0x1401428e0
movzx eax, byte [r9]
test al, al
js 0x140142900
lea r15, [r9 + 1]
mov r13d, eax
jmp 0x14014295d
mov r12d, 4
mov edi, 8
xor ebx, ebx
xor r15d, r15d
xor r13d, r13d
xor eax, eax
jmp 0x1401429af
mov r13d, eax
and r13d, 0x1f
movzx edx, byte [r9 + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x140142952
movzx ecx, byte [r9 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x140142ca3
lea r15, [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 0x14014295d
jmp 0x140142cbb
lea r15, [r9 + 2]
shl r13d, 6
or r13d, edx
xor ebx, ebx
xor eax, eax
mov r8, qword [rbp + 0x50]
sub r8, r15
add r8, 3
mov rdx, 0xffffffffffffffff
cmovb r8, rdx
shr r8, 2
add r8, rax
cmp r8, 3
mov r12d, 2
cmovae r12, r8
lea rdi, [r12*2 + 4]
movabs rax, 0x3ffffffffffffffd
cmp r8, rax
ja 0x140142e3a
add r12, 2
mov ax, 1
mov qword [rbp + 0x60], rax
mov rax, qword [str.Ap3_]
movzx eax, byte [rax]
mov r14d, 2
mov edx, 2
mov rcx, rdi
call sym.__rust_alloc
test rax, rax
je 0x140142e3d
mov rsi, rax
mov rax, qword [rbp - 0x18]
inc eax
mov dword [rbp + 0x48], eax
mov word [rsi], r13w
mov r14d, 1
mov r9, qword [rbp + 0x60]
jmp 0x140142a10
mov r13, r12
mov ebx, eax
mov word [rsi + r14*2], di
inc r14
mov r12, r13
test r15, r15
je 0x140142a80
test bx, bx
je 0x140142a60
xor eax, eax
mov edi, ebx
cmp r14, r12
jne 0x140142a00
mov r13, qword [rbp + 0x50]
sub r13, r15
add r13, 3
mov rcx, 0xffffffffffffffff
cmovb r13, rcx
shr r13, 2
cmp ax, 1
sbb r13, 0xffffffffffffffff
cmp r9w, 1
sbb r13, 0xffffffffffffffff
mov ebx, eax
jmp 0x140142aa1
cmp r15, qword [rbp + 0x50]
je 0x140142a80
movzx eax, byte [r15]
test al, al
js 0x140142b43
inc r15
mov edi, eax
xor eax, eax
jmp 0x140142a1e
cmp r9w, 1
jne 0x140142be0
xor r15d, r15d
xor r9d, r9d
mov edi, 0
mov r13d, 0
cmp r14, r12
jne 0x140142b00
inc r13
add r13, r14
jb 0x140142e31
mov r10, r12
mov r12, rsi
lea rcx, [r10 + r10]
cmp rcx, r13
cmova r13, rcx
movabs rax, 0x3ffffffffffffffd
add rax, 2
xor edx, edx
cmp r13, rax
setbe al
cmp r13, 5
mov r8d, 4
cmovb r13, r8
mov qword [rbp + 0x60], r10
mov rsi, r9
test r10, r10
je 0x140142b0a
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x20], rcx
mov ecx, 2
jmp 0x140142b0c
mov r13, r12
xor edi, edi
jmp 0x140142a05
xor ecx, ecx
lea r8, [r13*2]
mov dl, al
add edx, edx
mov qword [rbp + 0x18], rcx
lea rcx, [rbp - 0x10]
lea r9, [rbp + 0x10]
call sym.alloc::raw_vec::finish_grow::hfca5c6109800afa3
cmp qword [rbp - 0x10], 0
jne 0x140142e20
mov rax, qword [rbp - 8]
mov r9, rsi
mov rsi, rax
jmp 0x140142a05
mov edi, eax
and edi, 0x1f
movzx edx, byte [r15 + 1]
and edx, 0x3f
cmp al, 0xdf
jbe 0x140142b8d
movzx ecx, byte [r15 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp al, 0xf0
jb 0x140142b9d
movzx eax, byte [r15 + 3]
add r15, 4
and edi, 7
shl edi, 0x12
shl ecx, 6
and eax, 0x3f
or eax, ecx
or edi, eax
cmp edi, 0xffff
ja 0x140142bae
xor eax, eax
jmp 0x140142a1e
add r15, 2
shl edi, 6
or edi, edx
xor eax, eax
jmp 0x140142a1e
add r15, 3
shl edi, 0xc
or edi, ecx
cmp edi, 0xffff
jbe 0x140142b86
lea ecx, [rdi + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov eax, edi
mov edi, ecx
jmp 0x140142a1e
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 + 0x4c]
mov r14d, dword [rbp + 0x44]
mov r8d, r14d
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140142d52
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rbp + 0x10], rcx
mov edx, dword [rbp + 0x48]
cmp edx, 0xa
jge 0x140142ce9
cmp eax, 5
jne 0x140142c60
mov eax, edx
mov qword [rbp - 0x18], rax
jmp 0x140142c71
test r14d, r14d
je 0x140142ce9
xor r14d, r14d
cmp eax, 0x57
jne 0x140142ce9
lea rbx, [rbp + 0x10]
mov rcx, rbx
call sym.core::ptr::drop_in_place_std::io::error::Error_::h0fc9c81cf29452ee
xor edi, edi
test r12, r12
je 0x1401427c0
add r12, r12
mov r8d, 2
mov rcx, rsi
mov rdx, r12
call sym.__rust_dealloc
xor edi, edi
jmp 0x1401427c0
lea r15, [r9 + 3]
shl r13d, 0xc
or r13d, ecx
cmp r13d, 0xffff
jbe 0x14014295d
lea ecx, [r13 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r13d, 0x3ff
or r13d, 0xdc00
mov eax, 1
mov ebx, r13d
mov r13d, ecx
jmp 0x140142961
mov rax, qword [rbp + 0x58]
mov qword [rax + 8], rcx
mov qword [rax], 1
test r12, r12
je 0x140142d11
add r12, r12
mov r8d, 2
mov rcx, rsi
mov rdx, r12
call sym.__rust_dealloc
mov rdx, qword [rbp + 0x68]
test rdx, rdx
je 0x140142d29
mov r8d, 1
mov rcx, qword [rbp + 0x70]
call sym.__rust_dealloc
cmp rbx, 0xffffffffffffffff
je 0x140142d37
mov rcx, rbx
call fcn.140195904
movaps xmm6, xmmword [rbp + 0x80]
add rsp, 0x118
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
test r12, r12
je 0x140142d6b
add r12, r12
mov r8d, 2
mov rcx, rsi
mov rdx, r12
call sym.__rust_dealloc
mov dword [rbp + 0x10], 0
mov dword [rbp + 0x30], 0
mov word [rbp + 0x34], 0
movzx eax, byte [rbp + 0x7f]
mov byte [rbp + 0x31], al
xor al, 1
mov byte [rbp + 0x30], al
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov dword [rbp - 0x10], 0x18
mov qword [rbp - 8], 0
mov dword [rbp], 1
lea rax, [rbp - 0x10]
mov qword [rbp + 0x18], rax
xor r15d, r15d
lea r8, [rbp + 0x10]
mov rsi, qword [rbp + 0x70]
mov rcx, rsi
mov rdx, qword [rbp - 0x20]
call sym.std::sys::pal::windows::fs::File::open::hacdae04461f5ab18
test rax, rax
je 0x140142ded
mov rax, qword [rbp + 0x58]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdx, qword [rbp + 0x68]
test rdx, rdx
jne 0x140142d1a
jmp 0x140142d29
mov rax, qword [rbp + 0x58]
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdx
mov qword [rax], 0
mov rdx, qword [rbp + 0x68]
test rdx, rdx
je 0x140142d37
mov r8d, 1
mov rcx, rsi
call sym.__rust_dealloc
jmp 0x140142d37
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp]
mov rsi, r12
mov r12, qword [rbp + 0x60]
jmp 0x140142e33
xor ecx, ecx
call sym.alloc::raw_vec::handle_error::hc482cb000d7a2d91
jmp 0x140142e4f
xor r14d, r14d
mov r15b, 1
mov rcx, r14
mov rdx, rdi