Function at 0x10028e06
Capabilities:
Get disk information
Get storage device properties

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x388
mov rsi, rcx
mov rax, qword [rdx]
mov eax, dword [rax]
bt eax, r8d
jae 0x10028ed2
mov ebx, r8d
add ebx, 0x41
lea rcx, [rsp + 0x48]
mov word [rcx], bx
mov dword [rcx + 2], 0x5c003a
and word [rcx + 6], 0
call sub.kernel32.dll_GetDriveTypeW
mov r12d, eax
lea eax, [r12 - 4]
cmp eax, 0xfffffffe
jb 0x10028ed2
lea rdi, [rsp + 0x17e]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm0, xmm0
lea rax, [rsp + 0x130]
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0x20
lea rcx, [rsp + 0x48]
mov rdx, rdi
mov r8d, 0x105
xor r9d, r9d
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x10028ed2
xor r8d, r8d
cmp r8, 0x105
je 0x10028ef0
cmp word [rsp + r8*2 + 0x17e], 0
je 0x10028ef0
inc r8
jmp 0x10028eb8
mov qword [rsi], 3
mov rax, rsi
add rsp, 0x388
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r9, str._cargo_registry_src_github.com_1ecc6299db9ec823_sysinfo_0.27.7_src_windows_disk.rs
lea rcx, [rsp + 0x17e]
mov edx, 0x105
call fcn.10028662
mov r8, rdx
lea rdi, [rsp + 0xc8]
mov rcx, rdi
mov rdx, rax
call fcn.1002889c
mov r14, qword [rdi]
mov r15, qword [rdi + 0x10]
xor r8d, r8d
cmp r8, 0x20
je 0x10028f40
cmp word [rsp + r8*2 + 0x130], 0
je 0x10028f40
inc r8
jmp 0x10028f29
lea r9, str._cargo_registry_src_github.com_1ecc6299db9ec823_sysinfo_0.27.7_src_windows_disk.rs
lea rcx, [rsp + 0x130]
mov edx, 0x20
call fcn.10028662
lea r8, [rax + rdx*2]
lea rcx, [rsp + 0x80]
mov rdx, rax
call fcn.1002d04e
movabs rax, 0x5c002e005c005c
lea rcx, [rsp + 0x122]
mov qword [rcx], rax
mov word [rcx + 8], bx
mov dword [rcx + 0xa], 0x3a
mov edx, 7
xor r8d, r8d
call fcn.1002caef
test rax, rax
je 0x100291bb
mov rbx, rdx
mov qword [rsp + 0x58], rdx
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0x48]
mov r8d, 4
call fcn.1002cb45
cmp qword [rsp + 0x60], 0
je 0x100291aa
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x100291aa
mov r13, qword [rsp + 0x70]
lea r8, [rsp + 0x110]
mov qword [r8], 7
lea rax, [rsp + 0xe0]
and dword [rax + 8], 0
mov byte [r8 + 8], 0
and qword [rax], 0
lea rcx, [rsp + 0x54]
and dword [rcx], 0
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rax
and qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
mov rcx, rbx
mov edx, 0x2d1400
mov r9d, 0xc
call sub.kernel32.dll_DeviceIoControl
xor ebp, ebp
cmp byte [rsp + 0xe8], 0
sete bpl
cmp dword [rsp + 0x54], 0xc
mov ecx, 2
cmovne rbp, rcx
test eax, eax
cmove rbp, rcx
lea rcx, [rsp + 0x60]
mov rdx, r14
mov r8, r15
call fcn.1009ef60
movups xmm0, xmmword [rsp + 0x60]
movups xmm1, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x100], xmm1
movaps xmmword [rsp + 0xf0], xmm0
mov r14, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
mov rcx, rbx
xor edx, edx
call fcn.1003de93
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rdx
mov rcx, rax
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0xa8], rbx
mov ecx, 4
xor edx, edx
call fcn.100230be
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rdx
lea rdx, [rsp + 0x48]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov qword [rsp + 0xc0], 4
lea rcx, [rsp + 0x60]
mov r8d, 3
call fcn.1002889c
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmm1, xmmword [rsp + 0x100]
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
mov rax, qword [rsp + 0xa8]
mov qword [rsi + 0x40], rax
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsi + 0x30], xmm0
mov rax, qword [rsp + 0xc0]
mov qword [rsi + 0x58], rax
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsi + 0x48], xmm0
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x60], xmm0
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x70], rax
or qword [rsi + 8], 0xffffffffffffffff
cmp r12d, 2
mov qword [rsi], rbp
mov qword [rsi + 0x78], rdi
mov qword [rsi + 0x80], r13
sete byte [rsi + 0x88]
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x63]
mov dword [rsi + 0x8c], ecx
mov dword [rsi + 0x89], eax
mov rcx, qword [rsp + 0x58]
call sub.kernel32.dll_CloseHandle
lea rcx, [rsp + 0x80]
call fcn.10028467
jmp 0x100291cf
mov qword [rsi], 3
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x100291c2
mov qword [rsi], 3
lea rcx, [rsp + 0x80]
call fcn.10028467
lea rcx, [rsp + 0xc8]
call fcn.10028467
jmp 0x10028ed9