Function at 0x140226d30
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 0x140226e42
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 0x140226e42
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 0x140226e42
mov edi, 2
nop dword [rax + rax]
cmp word [rsp + rdi*2 + 0x15a], 0
je 0x140226e5d
cmp word [rsp + rdi*2 + 0x15c], 0
je 0x140226e63
cmp word [rsp + rdi*2 + 0x15e], 0
je 0x140226e66
add rdi, 3
add r14, 0xfffffffffffffffa
jne 0x140226e10
mov edi, 0x105
jmp 0x140226e73
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 0x140226e66
dec rdi
cmp rdi, 0x106
jae 0x1402271f7
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 0x140226eac
lea rcx, [rsp + 0x58]
xor edx, edx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h342c723aad6a170c
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_4fold17h1e9dea8e3a
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 0x1402270e1
cmp word [rsp + 0x82], 0
je 0x1402270ef
cmp word [rsp + 0x84], 0
je 0x1402270fa
cmp word [rsp + 0x86], 0
je 0x140227105
cmp word [rsp + 0x88], 0
je 0x140227110
cmp word [rsp + 0x8a], 0
je 0x14022711b
cmp word [rsp + 0x8c], 0
je 0x140227126
cmp word [rsp + 0x8e], 0
je 0x140227131
cmp word [rsp + 0x90], 0
je 0x14022713c
cmp word [rsp + 0x92], 0
je 0x140227147
cmp word [rsp + 0x94], 0
je 0x140227152
cmp word [rsp + 0x96], 0
je 0x14022715d
cmp word [rsp + 0x98], 0
je 0x140227168
cmp word [rsp + 0x9a], 0
je 0x140227173
cmp word [rsp + 0x9c], 0
je 0x14022717e
cmp word [rsp + 0x9e], 0
je 0x140227189
cmp word [rsp + 0xa0], 0
je 0x140227194
cmp word [rsp + 0xa2], 0
je 0x14022719f
cmp word [rsp + 0xa4], 0
je 0x1402271a7
cmp word [rsp + 0xa6], 0
je 0x1402271af
cmp word [rsp + 0xa8], 0
je 0x1402271b7
cmp word [rsp + 0xaa], 0
je 0x1402271bf
cmp word [rsp + 0xac], 0
je 0x1402271c7
cmp word [rsp + 0xae], 0
je 0x1402271cf
cmp word [rsp + 0xb0], 0
je 0x1402271d7
cmp word [rsp + 0xb2], 0
je 0x1402271df
cmp word [rsp + 0xb4], 0
je 0x1402271e7
cmp word [rsp + 0xb6], 0
je 0x1402271ef
cmp word [rsp + 0xb8], 0
je 0x14022720b
cmp word [rsp + 0xba], 0
je 0x140227213
cmp word [rsp + 0xbc], 0
je 0x14022721b
cmp word [rsp + 0xbe], 1
mov r14d, 0x20
sbb r14, 0
jmp 0x140227221
mov r15d, 1
xor r14d, r14d
jmp 0x140227326
mov r14d, 1
jmp 0x140227221
mov r14d, 2
jmp 0x140227221
mov r14d, 3
jmp 0x140227221
mov r14d, 4
jmp 0x140227221
mov r14d, 5
jmp 0x140227221
mov r14d, 6
jmp 0x140227221
mov r14d, 7
jmp 0x140227221
mov r14d, 8
jmp 0x140227221
mov r14d, 9
jmp 0x140227221
mov r14d, 0xa
jmp 0x140227221
mov r14d, 0xb
jmp 0x140227221
mov r14d, 0xc
jmp 0x140227221
mov r14d, 0xd
jmp 0x140227221
mov r14d, 0xe
jmp 0x140227221
mov r14d, 0xf
jmp 0x140227221
mov r14d, 0x10
jmp 0x140227221
mov r14d, 0x11
jmp 0x140227221
mov r14d, 0x12
jmp 0x140227221
mov r14d, 0x13
jmp 0x140227221
mov r14d, 0x14
jmp 0x140227221
mov r14d, 0x15
jmp 0x140227221
mov r14d, 0x16
jmp 0x140227221
mov r14d, 0x17
jmp 0x140227221
mov r14d, 0x18
jmp 0x140227221
mov r14d, 0x19
jmp 0x140227221
mov r14d, 0x1a
jmp 0x140227221
mov r14d, 0x1b
jmp 0x140227221
lea r8, str._home_revy_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.27.8_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 0x140227221
mov r14d, 0x1d
jmp 0x140227221
mov r14d, 0x1e
mov rax, qword [0x1403591d8]
movzx eax, byte [rax]
mov edx, 1
mov rcx, r14
call sym.__rust_alloc
test rax, rax
je 0x1402272de
mov r15, rax
cmp r14, 0x10
jae 0x140227251
xor eax, eax
jmp 0x1402277d2
mov eax, r14d
and eax, 0x30
movdqa xmm0, xmmword [0x14032fac0]
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 0x1402277c9
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 0x1402277c9
movdqa xmm1, xmmword [rsp + 0xc0]
pand xmm1, xmm0
pand xmm0, xmmword [rsp + 0xd0]
packuswb xmm1, xmm0
movdqu xmmword [r15 + 0x20], xmm1
jmp 0x1402277c9
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 0x1402276fb
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 0x140227550
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 0x140227504
mov rsi, qword [rsp + 0x58]
test rsi, rsi
je 0x140227504
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 0x14022756d
mov rax, qword [0x1403591d8]
movzx eax, byte [rax]
mov edx, 1
mov rcx, r14
call sym.__rust_alloc
test rax, rax
jne 0x140227572
mov ecx, 1
mov rdx, r14
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
jmp 0x1402276fb
mov qword [rbx], 3
mov rcx, r13
call sub.kernel32.dll_CloseHandle
cmp word [rsp + 0x4e], 0
mov rsi, qword [rsp + 0x70]
je 0x140227531
mov r8d, 1
mov rcx, r15
mov rdx, r14
call sym.__rust_dealloc
test rdi, rdi
je 0x140226e49
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
call sym.__rust_dealloc
jmp 0x140226e49
mov rcx, 0xffffffffffffffff
call sub.kernel32.dll_CloseHandle
mov qword [rbx], 3
cmp word [rsp + 0x4e], 0
jne 0x140227520
jmp 0x140227531
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 [0x1403591d8]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 2
call sym.__rust_alloc
test rax, rax
je 0x1402276ec
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::h342c723aad6a170c
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_4fold17h1e9dea8e3a
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 sub.kernel32.dll_CloseHandle
cmp word [rsp + 0x4e], 0
je 0x1402276c6
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 0x140226e49
mov r8d, 1
call sym.__rust_dealloc
jmp 0x140226e49
mov ecx, 2
mov edx, 8
call sym.alloc::raw_vec::handle_error::hd43ffb3afada7951
ud2
cmp r14, rax
je 0x140227326
movzx ecx, byte [rsp + rax*2 + 0x80]
mov byte [r15 + rax], cl
inc rax
jmp 0x1402277c9