Function at 0x14005e8a8
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, 0x348
cmp r8d, 0x1f
ja 0x14005ec6d
mov ebx, r8d
mov rsi, rcx
mov rax, qword [rdx]
mov eax, dword [rax]
bt eax, r8d
jae 0x14005ec0a
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 edi, eax
lea eax, [rdi - 4]
cmp eax, 0xfffffffe
jb 0x14005ec0a
lea r14, [rsp + 0x13e]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call fcn.140064710
xorps xmm0, xmm0
lea rax, [rsp + 0xf0]
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, r14
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x14005ec0a
xor eax, eax
mov r8, rax
cmp rax, 0x105
je 0x14005e983
lea rax, [r8 + 1]
cmp word [rsp + r8*2 + 0x13e], 0
jne 0x14005e968
lea r9, str..cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.0_srcwindowsdisk.rs
lea rcx, [rsp + 0x13e]
mov edx, 0x105
call fcn.140059b38
mov r8, rdx
lea r15, [rsp + 0x98]
mov rcx, r15
mov rdx, rax
call fcn.14005a2a8
mov r14, qword [r15 + 8]
mov r15, qword [r15 + 0x10]
xor eax, eax
mov r8, rax
cmp rax, 0x20
je 0x14005e9d5
lea rax, [r8 + 1]
cmp word [rsp + r8*2 + 0xf0], 0
jne 0x14005e9bc
lea r9, str..cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.0_srcwindowsdisk.rs
lea rcx, [rsp + 0xf0]
mov edx, 0x20
call fcn.140059b38
lea rdx, [rax + rdx*2]
lea rcx, [rsp + 0x80]
mov r8, rax
call fcn.14005896a
movabs rax, 0x5c002e005c005c
lea rcx, [rsp + 0xe2]
mov qword [rcx], rax
mov word [rcx + 8], bx
mov dword [rcx + 0xa], 0x3a
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edx, edx
mov r8d, 3
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x14005ec3c
mov rbx, rax
lea r13, [rsp + 0x50]
and qword [r13], 0
lea r9, [rsp + 0xb0]
and qword [r9], 0
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8, r13
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x14005ec29
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x14005ec29
lea rbp, [rsp + 0xb0]
mov rcx, qword [rbp]
mov qword [rsp + 0x70], rcx
lea r8, [rsp + 0xd0]
mov qword [r8], 7
and dword [rsp + 0x58], 0
mov byte [r8 + 8], 0
and qword [rsp + 0x50], 0
lea r12, [rsp + 0x7c]
and dword [r12], 0
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], r13
and qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
mov rcx, rbx
mov edx, 0x2d1400
mov r9d, 0xc
mov qword [rsp + 0x68], rax
call sub.KERNEL32.dll_DeviceIoControl
xor r13d, r13d
cmp byte [rsp + 0x58], 0
sete r13b
cmp dword [r12], 0xc
mov ecx, 2
cmovne r13, rcx
test eax, eax
cmove r13, rcx
mov rcx, rbp
mov rdx, r14
mov r8, r15
call fcn.14004e060
lea rax, [rsp + 0x80]
mov r14, qword [rax + 8]
mov r15, qword [rax + 0x10]
mov rcx, r15
xor edx, edx
call fcn.14003443b
mov qword [rsp + 0x60], rax
mov rbp, rdx
mov rcx, rdx
mov rdx, r14
mov r8, r15
call fcn.140063aa0
mov ecx, 4
xor edx, edx
call fcn.14005a61a
mov r14, rax
mov r12, rdx
lea rcx, [rsp + 0x48]
mov rax, qword [rcx]
mov qword [rdx], rax
lea r9, str..cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.0_srcwindowsdisk.rs
mov edx, 4
mov r8d, 3
call fcn.140059b38
mov r8, rdx
lea rcx, [rsi + 0x70]
mov rdx, rax
call fcn.14005a2a8
lea rax, [rsp + 0xb0]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov rcx, rax
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
or qword [rsi + 0x28], 0xffffffffffffffff
cmp edi, 2
mov qword [rsi + 0x20], r13
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x38], rax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x40], rax
mov qword [rsi + 0x48], rbp
mov qword [rsi + 0x50], r15
mov qword [rsi + 0x58], r14
mov qword [rsi + 0x60], r12
mov qword [rsi + 0x68], 4
sete byte [rsi + 0x88]
mov eax, dword [rcx]
mov ecx, dword [rcx + 3]
mov dword [rsi + 0x89], eax
mov dword [rsi + 0x8c], ecx
jmp 0x14005ec31
mov qword [rsi + 0x20], 3
mov rax, rsi
add rsp, 0x348
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsi + 0x20], 3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005ec51
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x20], 3
lea rcx, [rsp + 0x80]
call fcn.1400041c4
lea rcx, [rsp + 0x98]
call fcn.1400041c4
jmp 0x14005ec12
lea rcx, str.attempt_to_shift_right_with_overflow
lea r8, str..cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.0_srcwindowsdisk.rs
mov edx, 0x24
call fcn.140071a80
ud2