Function at 0x140019600
Capabilities:
Get disk information
Get disk size
Get storage device properties

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x368
mov rbx, rcx
mov eax, dword [rdx]
bt eax, r8d
jae 0x140019712
mov ebp, r8d
add ebp, 0x41
mov word [rsp + 0x50], bp
mov dword [rsp + 0x52], 0x5c003a
mov word [rsp + 0x56], 0
lea rcx, [rsp + 0x50]
call sub.KERNEL32.dll_GetDriveTypeW
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x140019712
mov dword [rsp + 0xd4], eax
lea rsi, [rsp + 0x15e]
mov r14d, 0x20a
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0x20
lea rcx, [rsp + 0x50]
mov rdx, rsi
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x140019712
mov edi, 2
nop dword [rax + rax]
cmp word [rsp + rdi*2 + 0x15a], 0
je 0x14001972d
cmp word [rsp + rdi*2 + 0x15c], 0
je 0x140019733
cmp word [rsp + rdi*2 + 0x15e], 0
je 0x140019736
add rdi, 3
add r14, 0xfffffffffffffffa
jne 0x1400196e0
mov edi, 0x105
jmp 0x140019743
mov qword [rbx], 3
add rsp, 0x368
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rdi, 0xfffffffffffffffe
jmp 0x140019736
dec rdi
cmp rdi, 0x106
jae 0x140019ac7
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x68], 0
mov rax, rdi
shr rax, 1
mov r8d, edi
and r8d, 1
add r8, rax
je 0x14001977c
lea rcx, [rsp + 0x58]
xor edx, edx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::ha3beaca1ba2d0bad
lea rax, [rsp + rdi*2]
add rax, 0x15e
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xe0], rax
mov word [rsp + 0xe8], 0
lea rcx, [rsp + 0xd8]
lea rdx, [rsp + 0x58]
call sym._ZN102__LT_core..iter..adapters..map..Map_LT_I_C_F_GT__u20_as_u20_core..iter..traits..iterator..Iterator_GT_4fold17hbb31b9c616
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
movzx eax, word [rsp + 0x80]
test ax, ax
mov word [rsp + 0x4e], ax
je 0x1400199b1
cmp word [rsp + 0x82], 0
je 0x1400199bf
cmp word [rsp + 0x84], 0
je 0x1400199ca
cmp word [rsp + 0x86], 0
je 0x1400199d5
cmp word [rsp + 0x88], 0
je 0x1400199e0
cmp word [rsp + 0x8a], 0
je 0x1400199eb
cmp word [rsp + 0x8c], 0
je 0x1400199f6
cmp word [rsp + 0x8e], 0
je 0x140019a01
cmp word [rsp + 0x90], 0
je 0x140019a0c
cmp word [rsp + 0x92], 0
je 0x140019a17
cmp word [rsp + 0x94], 0
je 0x140019a22
cmp word [rsp + 0x96], 0
je 0x140019a2d
cmp word [rsp + 0x98], 0
je 0x140019a38
cmp word [rsp + 0x9a], 0
je 0x140019a43
cmp word [rsp + 0x9c], 0
je 0x140019a4e
cmp word [rsp + 0x9e], 0
je 0x140019a59
cmp word [rsp + 0xa0], 0
je 0x140019a64
cmp word [rsp + 0xa2], 0
je 0x140019a6f
cmp word [rsp + 0xa4], 0
je 0x140019a77
cmp word [rsp + 0xa6], 0
je 0x140019a7f
cmp word [rsp + 0xa8], 0
je 0x140019a87
cmp word [rsp + 0xaa], 0
je 0x140019a8f
cmp word [rsp + 0xac], 0
je 0x140019a97
cmp word [rsp + 0xae], 0
je 0x140019a9f
cmp word [rsp + 0xb0], 0
je 0x140019aa7
cmp word [rsp + 0xb2], 0
je 0x140019aaf
cmp word [rsp + 0xb4], 0
je 0x140019ab7
cmp word [rsp + 0xb6], 0
je 0x140019abf
cmp word [rsp + 0xb8], 0
je 0x140019adb
cmp word [rsp + 0xba], 0
je 0x140019ae3
cmp word [rsp + 0xbc], 0
je 0x140019aeb
cmp word [rsp + 0xbe], 1
mov r14d, 0x20
sbb r14, 0
jmp 0x140019af1
mov r15d, 1
xor r14d, r14d
jmp 0x140019bf6
mov r14d, 1
jmp 0x140019af1
mov r14d, 2
jmp 0x140019af1
mov r14d, 3
jmp 0x140019af1
mov r14d, 4
jmp 0x140019af1
mov r14d, 5
jmp 0x140019af1
mov r14d, 6
jmp 0x140019af1
mov r14d, 7
jmp 0x140019af1
mov r14d, 8
jmp 0x140019af1
mov r14d, 9
jmp 0x140019af1
mov r14d, 0xa
jmp 0x140019af1
mov r14d, 0xb
jmp 0x140019af1
mov r14d, 0xc
jmp 0x140019af1
mov r14d, 0xd
jmp 0x140019af1
mov r14d, 0xe
jmp 0x140019af1
mov r14d, 0xf
jmp 0x140019af1
mov r14d, 0x10
jmp 0x140019af1
mov r14d, 0x11
jmp 0x140019af1
mov r14d, 0x12
jmp 0x140019af1
mov r14d, 0x13
jmp 0x140019af1
mov r14d, 0x14
jmp 0x140019af1
mov r14d, 0x15
jmp 0x140019af1
mov r14d, 0x16
jmp 0x140019af1
mov r14d, 0x17
jmp 0x140019af1
mov r14d, 0x18
jmp 0x140019af1
mov r14d, 0x19
jmp 0x140019af1
mov r14d, 0x1a
jmp 0x140019af1
mov r14d, 0x1b
jmp 0x140019af1
lea r8, str._home_kylian_.local_share_cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_disk.rs
mov edx, 0x105
mov rcx, rdi
call sym.core::slice::index::slice_end_index_len_fail::hdaa9bbd2fcad4cbb
mov r14d, 0x1c
jmp 0x140019af1
mov r14d, 0x1d
jmp 0x140019af1
mov r14d, 0x1e
mov rax, qword [0x1401d2a88]
movzx eax, byte [rax]
mov edx, 1
mov rcx, r14
call sym.__rust_alloc
test rax, rax
je 0x140019bae
mov r15, rax
cmp r14, 0x10
jae 0x140019b21
xor eax, eax
jmp 0x14001a0a2
mov eax, r14d
and eax, 0x30
movdqa xmm0, xmmword [0x1401a8ce0]
movdqa xmm1, xmmword [rsp + 0x80]
pand xmm1, xmm0
movdqa xmm2, xmmword [rsp + 0x90]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [r15], xmm1
cmp rax, 0x10
je 0x14001a099
movdqa xmm1, xmmword [rsp + 0xa0]
pand xmm1, xmm0
movdqa xmm2, xmmword [rsp + 0xb0]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [r15 + 0x10], xmm1
cmp eax, 0x20
je 0x14001a099
movdqa xmm1, xmmword [rsp + 0xc0]
pand xmm1, xmm0
pand xmm0, xmmword [rsp + 0xd0]
packuswb xmm1, xmm0
movdqu xmmword [r15 + 0x20], xmm1
jmp 0x14001a099
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0xc0], rdi
mov ecx, 1
mov rdx, r14
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
jmp 0x140019fcb
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x118], rax
mov word [rsp + 0x120], bp
mov dword [rsp + 0x122], 0x3a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x118]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x140019e20
mov r13, rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x58], 0
mov qword [rsp + 0xd8], 0
lea rcx, [rsp + 0x50]
lea r8, [rsp + 0x58]
lea r9, [rsp + 0xd8]
xor edx, edx
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140019dd4
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140019dd4
mov qword [rsp + 0xc0], rdi
mov rbp, qword [rsp + 0xd8]
mov qword [rsp + 0x134], 7
mov byte [rsp + 0x13c], 0
mov dword [rsp + 0x110], 0
mov qword [rsp + 0x108], 0
mov dword [rsp + 0x7c], 0
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
lea r8, [rsp + 0x134]
mov rcx, r13
mov edx, 0x2d1400
mov r9d, 0xc
call sub.KERNEL32.dll_DeviceIoControl
xor edi, edi
cmp byte [rsp + 0x110], 0
sete dil
cmp dword [rsp + 0x7c], 0xc
mov ecx, 2
cmovne rdi, rcx
test eax, eax
cmove rdi, rcx
lea rcx, [rsp + 0xd8]
mov rdx, qword [rsp + 0x70]
mov r8, r12
call sym.std::sys::os_str::wtf8::Slice::to_owned::h13bae00f91567cc3
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xc8], rax
mov r12, qword [rsp + 0xe0]
movdqu xmm0, xmmword [rsp + 0xe8]
movdqa xmmword [rsp + 0x140], xmm0
test r14, r14
mov qword [rsp + 0x100], r12
mov qword [rsp + 0x128], rbp
je 0x140019e3d
mov rax, qword [0x1401d2a88]
movzx eax, byte [rax]
mov edx, 1
mov rcx, r14
call sym.__rust_alloc
test rax, rax
jne 0x140019e42
mov ecx, 1
mov rdx, r14
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
jmp 0x140019fcb
mov qword [rbx], 3
mov rcx, r13
call fcn.1400cd924
cmp word [rsp + 0x4e], 0
mov rsi, qword [rsp + 0x70]
je 0x140019e01
mov r8d, 1
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
test rdi, rdi
je 0x140019719
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x140019719
mov rcx, 0xffffffffffffffff
call fcn.1400cd924
mov qword [rbx], 3
cmp word [rsp + 0x4e], 0
jne 0x140019df0
jmp 0x140019e01
mov eax, 1
mov qword [rsp + 0xf8], rax
mov rcx, rax
mov rdx, r15
mov r8, r14
call sym.memcpy
mov r12, qword [rsp + 0x50]
mov rax, qword [0x1401d2a88]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 2
call sym.__rust_alloc
test rax, rax
je 0x140019fbc
mov rbp, rax
mov qword [rax], r12
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x68], 0
lea rcx, [rsp + 0x58]
mov r8d, 2
xor edx, edx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::ha3beaca1ba2d0bad
lea rax, [rsp + 0x50]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x56]
mov qword [rsp + 0xe0], rax
mov word [rsp + 0xe8], 0
lea rcx, [rsp + 0xd8]
lea rdx, [rsp + 0x58]
call sym._ZN102__LT_core..iter..adapters..map..Map_LT_I_C_F_GT__u20_as_u20_core..iter..traits..iterator..Iterator_GT_4fold17hbb31b9c616
cmp dword [rsp + 0xd4], 2
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x70], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbx + 0x60], xmm0
mov rax, qword [rsp + 0xc8]
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x100]
mov qword [rbx + 0x18], rax
movdqa xmm0, xmmword [rsp + 0x140]
movdqu xmmword [rbx + 0x20], xmm0
mov qword [rbx + 0x30], r14
mov rax, qword [rsp + 0xf8]
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], 4
mov qword [rbx + 0x50], rbp
mov qword [rbx + 0x58], 4
mov qword [rbx], rdi
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx + 0x78], rsi
mov rax, qword [rsp + 0x128]
mov qword [rbx + 0x80], rax
sete byte [rbx + 0x88]
mov rcx, r13
call fcn.1400cd924
cmp word [rsp + 0x4e], 0
je 0x140019f96
mov r8d, 1
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
mov rcx, qword [rsp + 0x70]
je 0x140019719
mov r8d, 1
call sym.__rust_dealloc
jmp 0x140019719
mov ecx, 2
mov edx, 8
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
ud2
cmp r14, rax
je 0x140019bf6
movzx ecx, byte [rsp + rax*2 + 0x80]
mov byte [r15 + rax], cl
inc rax
jmp 0x14001a099