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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x388
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x300], 0xfffffffffffffffe
mov rsi, rcx
mov eax, dword [rdx]
bt eax, r8d
jae 0x140193e9c
mov edi, r8d
add edi, 0x41
mov word [rbp + 0x2b0], di
mov dword [rbp + 0x2b2], 0x5c003a
mov word [rbp + 0x2b6], 0
lea rcx, [rbp + 0x2b0]
call sub.kernel32.dll_GetDriveTypeW
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x140193e9c
mov dword [rbp + 0x28c], eax
lea rbx, [rbp - 0x3a]
mov r15d, 0x20a
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x2f0], xmm0
movdqa xmmword [rbp + 0x2e0], xmm0
movdqa xmmword [rbp + 0x2d0], xmm0
movdqa xmmword [rbp + 0x2c0], xmm0
lea rax, [rbp + 0x2c0]
mov qword [rsp + 0x30], rax
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0x20
lea rcx, [rbp + 0x2b0]
mov rdx, rbx
mov r8d, 0x105
xor r9d, r9d
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x140193e9c
lea r13, [rbp + 0x2c2]
lea rdx, [rbp + 0x2c4]
lea r12, [rbp + 0x2c6]
lea r14, [rbp + 0x2c8]
mov ecx, 2
nop word [rax + rax]
cmp word [rbp + rcx*2 - 0x3e], 0
je 0x140193eb7
cmp word [rbp + rcx*2 - 0x3c], 0
je 0x140193ebd
cmp word [rbp + rcx*2 - 0x3a], 0
je 0x140193ec0
add rcx, 3
add r15, 0xfffffffffffffffa
jne 0x140193e70
mov r15, rdx
mov ecx, 0x105
jmp 0x140193ed0
mov qword [rsi], 3
add rsp, 0x388
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
add rcx, 0xfffffffffffffffe
jmp 0x140193ec0
dec rcx
cmp rcx, 0x106
jae 0x140194222
mov r15, rdx
lea rax, [rcx*2 - 0x3a]
add rax, rbp
mov qword [rbp + 0x268], rbx
mov qword [rbp + 0x270], rax
mov word [rbp + 0x278], 0
lea rcx, [rbp + 0x210]
lea rdx, [rbp + 0x268]
call fcn.140043380
mov rbx, qword [rbp + 0x218]
mov rax, qword [rbp + 0x220]
mov qword [rbp + 0x2a8], rax
cmp word [rbp + 0x2c0], 0
je 0x1401941c6
cmp word [rbp + 0x2c2], 0
je 0x14019418d
cmp word [rbp + 0x2c4], 0
mov r13, r15
je 0x14019418d
cmp word [rbp + 0x2c6], 0
mov r13, r12
je 0x14019418d
cmp word [rbp + 0x2c8], 0
mov r13, r14
je 0x14019418d
cmp word [rbp + 0x2ca], 0
lea r13, [rbp + 0x2ca]
je 0x14019418d
cmp word [rbp + 0x2cc], 0
lea r13, [rbp + 0x2cc]
je 0x14019418d
cmp word [rbp + 0x2ce], 0
lea r13, [rbp + 0x2ce]
je 0x14019418d
cmp word [rbp + 0x2d0], 0
lea r13, [rbp + 0x2d0]
je 0x14019418d
cmp word [rbp + 0x2d2], 0
lea r13, [rbp + 0x2d2]
je 0x14019418d
cmp word [rbp + 0x2d4], 0
lea r13, [rbp + 0x2d4]
je 0x14019418d
cmp word [rbp + 0x2d6], 0
lea r13, [rbp + 0x2d6]
je 0x14019418d
cmp word [rbp + 0x2d8], 0
lea r13, [rbp + 0x2d8]
je 0x14019418d
cmp word [rbp + 0x2da], 0
lea r13, [rbp + 0x2da]
je 0x14019418d
cmp word [rbp + 0x2dc], 0
lea r13, [rbp + 0x2dc]
je 0x14019418d
cmp word [rbp + 0x2de], 0
lea r13, [rbp + 0x2de]
je 0x14019418d
cmp word [rbp + 0x2e0], 0
lea r13, [rbp + 0x2e0]
je 0x14019418d
cmp word [rbp + 0x2e2], 0
lea r13, [rbp + 0x2e2]
je 0x14019418d
cmp word [rbp + 0x2e4], 0
lea r13, [rbp + 0x2e4]
je 0x14019418d
cmp word [rbp + 0x2e6], 0
lea r13, [rbp + 0x2e6]
je 0x14019418d
cmp word [rbp + 0x2e8], 0
lea r13, [rbp + 0x2e8]
je 0x14019418d
cmp word [rbp + 0x2ea], 0
lea r13, [rbp + 0x2ea]
je 0x14019418d
cmp word [rbp + 0x2ec], 0
lea r13, [rbp + 0x2ec]
je 0x14019418d
cmp word [rbp + 0x2ee], 0
lea r13, [rbp + 0x2ee]
je 0x14019418d
cmp word [rbp + 0x2f0], 0
lea r13, [rbp + 0x2f0]
je 0x14019418d
cmp word [rbp + 0x2f2], 0
lea r13, [rbp + 0x2f2]
je 0x14019418d
cmp word [rbp + 0x2f4], 0
lea r13, [rbp + 0x2f4]
je 0x14019418d
cmp word [rbp + 0x2f6], 0
lea r13, [rbp + 0x2f6]
je 0x14019418d
cmp word [rbp + 0x2f8], 0
lea r13, [rbp + 0x2f8]
je 0x14019418d
cmp word [rbp + 0x2fa], 0
lea r13, [rbp + 0x2fa]
je 0x14019418d
cmp word [rbp + 0x2fc], 0
lea r13, [rbp + 0x2fc]
je 0x14019418d
cmp word [rbp + 0x2fe], 0
lea rax, [rbp + 0x2fe]
lea r13, [rbp + 0x300]
cmove r13, rax
lea rax, [rbp + 0x2c0]
sub r13, rax
mov r14, r13
shr r14, 1
movzx eax, byte [0x1402e8381]
mov edx, 1
mov rcx, r14
call fcn.140016e50
test rax, rax
je 0x140194233
mov r12, rax
cmp r13, 0x1f
ja 0x1401941d1
xor eax, eax
jmp 0x14019461e
mov r12d, 1
xor r14d, r14d
jmp 0x14019424c
mov rax, r14
and rax, 0xfffffffffffffff0
xor ecx, ecx
movdqa xmm0, xmmword [0x1402746f0]
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbp + rcx*2 + 0x2c0]
movdqu xmm2, xmmword [rbp + rcx*2 + 0x2d0]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [r12 + rcx], xmm1
add rcx, 0x10
cmp rax, rcx
jne 0x1401941f0
jmp 0x140194615
lea r8, str.C:UsersLenovo.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x105
call fcn.1401fdc60
mov qword [rbp + 0x2a0], rbx
mov ecx, 1
mov rdx, r14
call fcn.1401fd4e0
jmp 0x140194613
movabs rax, 0x5c002e005c005c
mov qword [rbp + 0x228], rax
mov word [rbp + 0x230], di
mov dword [rbp + 0x232], 0x3a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rbp + 0x228]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x140194488
mov r13, rax
mov qword [rbp + 0x2a0], rbx
mov qword [rbp + 0x1f8], 0
mov qword [rbp + 0x268], 0
lea rdi, [rbp + 0x2b0]
lea r8, [rbp + 0x1f8]
lea r9, [rbp + 0x268]
mov rcx, rdi
xor edx, edx
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140194439
mov r15, qword [rbp + 0x1f8]
test r15, r15
je 0x140194439
mov qword [rbp + 0x290], r12
mov qword [rbp + 0x2b8], r14
mov r14, qword [rbp + 0x268]
mov qword [rbp + 0x1ec], 7
mov byte [rbp + 0x1f4], 0
mov dword [rbp + 0x240], 0
mov qword [rbp + 0x238], 0
mov dword [rbp + 0x29c], 0
lea rax, [rbp + 0x29c]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x238]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
lea r8, [rbp + 0x1ec]
mov qword [rbp + 0x248], r13
mov rcx, r13
mov edx, 0x2d1400
mov r9d, 0xc
call sub.kernel32.dll_DeviceIoControl
xor r12d, r12d
cmp byte [rbp + 0x240], 0
sete r12b
cmp dword [rbp + 0x29c], 0xc
mov ecx, 2
cmovne r12, rcx
test eax, eax
cmove r12, rcx
lea rcx, [rbp + 0x268]
mov rdx, qword [rbp + 0x2a0]
mov r8, qword [rbp + 0x2a8]
call fcn.1401d4340
mov rax, qword [rbp + 0x268]
mov qword [rbp + 0x2a8], rax
mov rbx, qword [rbp + 0x270]
movdqu xmm0, xmmword [rbp + 0x278]
movdqa xmmword [rbp + 0x1d0], xmm0
mov rcx, qword [rbp + 0x2b8]
test rcx, rcx
mov qword [rbp + 0x250], rbx
je 0x1401944a2
movzx eax, byte [0x1402e8381]
mov edx, 1
call fcn.140016e50
test rax, rax
jne 0x1401944a7
mov ecx, 1
mov rdx, qword [rbp + 0x2b8]
call fcn.1401fd4e0
jmp 0x140194613
mov qword [rsi], 3
mov rcx, r13
call sub.kernel32.dll_CloseHandle
mov rbx, qword [rbp + 0x2a0]
test r14, r14
je 0x140194465
mov r8d, 1
mov rcx, r12
mov rdx, r14
call fcn.140016e60
mov rdx, qword [rbp + 0x210]
test rdx, rdx
je 0x140193ea3
mov r8d, 1
mov rcx, rbx
call fcn.140016e60
jmp 0x140193ea3
mov rcx, 0xffffffffffffffff
call sub.kernel32.dll_CloseHandle
mov qword [rsi], 3
test r14, r14
jne 0x140194454
jmp 0x140194465
mov eax, 1
mov qword [rbp + 0x258], rax
mov rcx, rax
mov rdx, qword [rbp + 0x290]
mov r8, qword [rbp + 0x2b8]
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rbp + 0x2b0]
movzx eax, byte [0x1402e8381]
mov ecx, 8
mov edx, 2
call fcn.140016e50
test rax, rax
je 0x140194604
mov qword [rbp + 0x260], rax
mov qword [rax], rbx
mov qword [rbp + 0x268], rdi
lea rax, [rbp + 0x2b6]
mov qword [rbp + 0x270], rax
mov word [rbp + 0x278], 0
lea rcx, [rbp + 0x1f8]
lea rdx, [rbp + 0x268]
call fcn.140043380
cmp dword [rbp + 0x28c], 2
mov rax, qword [rbp + 0x2a8]
mov qword [rsi + 0x10], rax
mov rax, qword [rbp + 0x250]
mov qword [rsi + 0x18], rax
movaps xmm0, xmmword [rbp + 0x1d0]
movups xmmword [rsi + 0x20], xmm0
mov rdi, qword [rbp + 0x2b8]
mov qword [rsi + 0x30], rdi
mov rax, qword [rbp + 0x258]
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x40], rdi
mov qword [rsi + 0x48], 4
mov rax, qword [rbp + 0x260]
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x58], 4
movdqu xmm0, xmmword [rbp + 0x1f8]
movdqu xmmword [rsi + 0x60], xmm0
mov rax, qword [rbp + 0x208]
mov qword [rsi + 0x70], rax
mov qword [rsi], r12
mov qword [rsi + 8], 0xffffffffffffffff
mov qword [rsi + 0x78], r15
mov qword [rsi + 0x80], r14
sete byte [rsi + 0x88]
mov rcx, qword [rbp + 0x248]
call sub.kernel32.dll_CloseHandle
test rdi, rdi
je 0x1401945dd
mov r8d, 1
mov rcx, qword [rbp + 0x290]
mov rdx, rdi
call fcn.140016e60
mov rdx, qword [rbp + 0x210]
test rdx, rdx
mov rcx, qword [rbp + 0x2a0]
je 0x140193ea3
mov r8d, 1
call fcn.140016e60
jmp 0x140193ea3
mov ecx, 2
mov edx, 8
call fcn.1401fd4e0
ud2
cmp r14, rax
je 0x14019424c
movzx ecx, byte [rbp + rax*2 + 0x2c0]
mov byte [r12 + rax], cl
inc rax
jmp 0x140194615