Function at 0x140041590
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x4f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x70], ecx
xor eax, eax
mov qword [rsp + 0xd0], rax
mov ebp, 8
mov sil, 1
xorps xmm6, xmm6
lea rdi, [rsp + 0x80]
nop
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsp + 0x7c], eax
nop dword [rax]
mov rax, qword [0x14079e0f0]
test rax, rax
jne 0x140041630
movaps xmmword [rsp + 0x80], xmm6
mov edx, 0x10
mov rcx, rdi
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, qword [rsp + 0x80]
xchg qword [0x14079e0f0], rax
jmp 0x1400415f0
mov eax, 1
lock xadd qword [0x14079e0f0], rax
mov qword [rsp + 0xe0], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0xb0], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u32_::fmt::he9e030c211458638]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xc0], rax
lea rax, [sym.core::fmt::num::imp::__impl_core::fmt::Display_for_u64_::fmt::h5a1dc1766ba07ad9]
mov qword [rsp + 0xc8], rax
lea rax, str..pipe__rust_anonymous_pipe1__.
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 2
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 2
lea rcx, [rsp + 0xe8]
mov rdx, rdi
call sym.alloc::fmt::format::format_inner::h568354758f835798
cmp qword [rsp + 0x58], 0
sete al
or sil, al
test sil, 1
jne 0x1400416f5
mov edx, 1
mov rcx, qword [rsp + 0x50]
call sym.__rust_dealloc
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0xf0]
mov r9, qword [rsp + 0xf8]
lea rax, [r8 + r9]
mov qword [rsp + 0x68], rax
test r9, r9
mov qword [rsp + 0x50], r8
mov dword [rsp + 0x78], ebp
mov qword [rsp + 0xd8], r9
je 0x140041750
movzx r14d, byte [r8]
test r14b, r14b
js 0x140041770
lea rdi, [r8 + 1]
jmp 0x1400417d1
mov r13d, 4
mov ebp, 8
xor r15d, r15d
xor edi, edi
xor r14d, r14d
xor r12d, r12d
jmp 0x140041826
mov eax, r14d
and eax, 0x1f
movzx edx, byte [r8 + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x1400417c5
movzx ecx, byte [r8 + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r14b, 0xf0
jb 0x140041b12
lea rdi, [r8 + 4]
movzx r14d, byte [r8 + 3]
and eax, 7
shl eax, 0x12
shl ecx, 6
and r14d, 0x3f
or r14d, ecx
or r14d, eax
cmp r14d, 0xffff
jbe 0x1400417d1
jmp 0x140041b2b
lea rdi, [r8 + 2]
shl eax, 6
or eax, edx
mov r14d, eax
xor r15d, r15d
xor eax, eax
mov rcx, qword [rsp + 0x68]
sub rcx, rdi
add rcx, 3
mov rdx, 0xffffffffffffffff
cmovb rcx, rdx
shr rcx, 2
add rcx, rax
cmp rcx, 3
mov r13d, 2
cmovae r13, rcx
movabs rax, 0x3ffffffffffffffd
cmp rcx, rax
ja 0x140041ce9
lea rbp, [r13*2 + 4]
add r13, 2
mov r12w, 1
movzx eax, byte [0x14079e030]
xor ecx, ecx
mov rdx, rbp
call sym.std::sys::pal::windows::alloc::process_heap_alloc::hcb06944149433091
test rax, rax
je 0x140041cd7
mov rbx, rax
mov rax, qword [rsp + 0xd0]
inc eax
mov dword [rsp + 0x74], eax
mov word [rbx], r14w
mov ebp, 1
jmp 0x140041871
mov rsi, r13
mov r15d, eax
mov word [rbx + rbp*2], r14w
inc rbp
mov r13, rsi
test rdi, rdi
je 0x1400418e0
test r15w, r15w
je 0x1400418c0
xor eax, eax
mov r14d, r15d
cmp rbp, r13
jne 0x140041860
mov rsi, qword [rsp + 0x68]
sub rsi, rdi
add rsi, 3
mov rcx, 0xffffffffffffffff
cmovb rsi, rcx
shr rsi, 2
cmp ax, 1
sbb rsi, 0xffffffffffffffff
cmp r12w, 1
sbb rsi, 0xffffffffffffffff
mov r15d, eax
jmp 0x140041900
cmp rdi, qword [rsp + 0x68]
je 0x1400418e0
movzx r14d, byte [rdi]
test r14b, r14b
js 0x1400419ae
inc rdi
xor eax, eax
jmp 0x140041881
cmp r12w, 1
jne 0x140041a50
xor edi, edi
xor r12d, r12d
mov r14d, 0
mov esi, 0
cmp rbp, r13
jne 0x140041960
inc rsi
add rsi, rbp
jb 0x140041cc1
lea rcx, [r13*2]
cmp rcx, rsi
cmova rsi, rcx
movabs rax, 0x3ffffffffffffffd
add rax, 2
xor edx, edx
cmp rsi, rax
setbe al
cmp rsi, 5
mov r8d, 4
cmovb rsi, r8
test r13, r13
je 0x14004196b
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x90], rcx
mov ecx, 2
jmp 0x14004196d
mov rsi, r13
xor r14d, r14d
jmp 0x140041866
xor ecx, ecx
lea r8, [rsi + rsi]
mov dl, al
add edx, edx
mov qword [rsp + 0x88], rcx
lea rcx, [rsp + 0xb0]
lea r9, [rsp + 0x80]
call sym.alloc::raw_vec::finish_grow::h2f64a373dae205e6
cmp qword [rsp + 0xb0], 0
jne 0x140041cb4
mov rbx, qword [rsp + 0xb8]
jmp 0x140041866
mov eax, r14d
and eax, 0x1f
movzx edx, byte [rdi + 1]
and edx, 0x3f
cmp r14b, 0xdf
jbe 0x1400419ff
movzx ecx, byte [rdi + 2]
shl edx, 6
and ecx, 0x3f
or ecx, edx
cmp r14b, 0xf0
jb 0x140041a12
movzx r14d, byte [rdi + 3]
add rdi, 4
and eax, 7
shl eax, 0x12
shl ecx, 6
and r14d, 0x3f
or r14d, ecx
or r14d, eax
cmp r14d, 0xffff
ja 0x140041a27
xor eax, eax
jmp 0x140041881
add rdi, 2
shl eax, 6
or eax, edx
mov r14d, eax
xor eax, eax
jmp 0x140041881
add rdi, 3
shl eax, 0xc
or ecx, eax
mov r14d, ecx
cmp r14d, 0xffff
jbe 0x1400419f8
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, r14d
mov r14d, ecx
jmp 0x140041881
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
mov rcx, rbx
mov edx, dword [rsp + 0x70]
mov ebp, dword [rsp + 0x78]
mov r8d, ebp
mov r9d, 1
call sub.KERNEL32.dll_CreateNamedPipeW
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140041b8b
call sub.KERNEL32.dll_GetLastError
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x80], rcx
mov edx, dword [rsp + 0x74]
cmp edx, 0xa
lea rdi, [rsp + 0x80]
jge 0x140041b59
cmp eax, 5
jne 0x140041ae0
mov eax, edx
mov qword [rsp + 0xd0], rax
jmp 0x140041aeb
test ebp, ebp
je 0x140041b59
xor ebp, ebp
cmp eax, 0x57
jne 0x140041b59
mov rcx, rdi
call sym.core::ptr::drop_in_place_std::io::error::Error_::ha5de4730a10cc339
xor esi, esi
test r13, r13
je 0x1400415e0
mov edx, 2
mov rcx, rbx
call sym.__rust_dealloc
xor esi, esi
jmp 0x1400415e0
lea rdi, [r8 + 3]
shl eax, 0xc
or ecx, eax
mov r14d, ecx
cmp r14d, 0xffff
jbe 0x1400417d1
lea ecx, [r14 + 0xff0000]
shr ecx, 0xa
or ecx, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov eax, 1
mov r15d, r14d
mov r14d, ecx
jmp 0x1400417d6
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], rcx
mov qword [rax], 1
mov rdi, 0xffffffffffffffff
test r13, r13
je 0x140041c44
mov edx, 2
mov rcx, rbx
call sym.__rust_dealloc
jmp 0x140041c44
test r13, r13
je 0x140041b9d
mov edx, 2
mov rcx, rbx
call sym.__rust_dealloc
mov dword [rsp + 0x80], 0
mov dword [rsp + 0xa0], 0
mov word [rsp + 0xa4], 0
movzx eax, byte [rsp + 0x4f]
mov byte [rsp + 0xa1], al
xor al, 1
mov byte [rsp + 0xa0], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xb0], 0x18
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xc0], 1
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x88], rax
xor r14d, r14d
lea r8, [rsp + 0x80]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0xd8]
call sym.std::sys::pal::windows::fs::File::open::h60b9ea54d13c2b6b
test rax, rax
je 0x140041c87
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], rdx
mov qword [rax], 1
mov rdi, rsi
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140041c5d
mov edx, 1
call sym.__rust_dealloc
cmp rsi, 0xffffffffffffffff
je 0x140041c6b
mov rcx, rdi
call fcn.1400489dc
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdx
mov qword [rax], 0
cmp qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x50]
je 0x140041c6b
mov edx, 1
call sym.__rust_dealloc
jmp 0x140041c6b
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
jne 0x140041cc8
call sym.alloc::raw_vec::capacity_overflow::hdd637e33b68717d9
jmp 0x140041cf1
mov rdx, qword [rsp + 0xc0]
call sym.alloc::alloc::handle_alloc_error::ha700c182da133e1c
jmp 0x140041cf1
mov r14b, 1
mov ecx, 2
mov rdx, rbp
call sym.alloc::alloc::handle_alloc_error::ha700c182da133e1c
jmp 0x140041cf1
mov r14b, 1
call sym.alloc::raw_vec::capacity_overflow::hdd637e33b68717d9
ud2