Function at 0x140013cd0
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, 0x398
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x310], 0xfffffffffffffffe
mov rsi, rcx
mov eax, dword [rdx]
bt eax, r8d
jae 0x140013dec
mov ebx, r8d
add ebx, 0x41
mov word [rbp + 0x2f8], bx
mov dword [rbp + 0x2fa], 0x5c003a
mov word [rbp + 0x2fe], 0
lea rcx, [rbp + 0x2f8]
call sub.KERNEL32.dll_GetDriveTypeW
mov edi, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140013dec
lea r14, [rbp - 0x3a]
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x2d0], xmm0
movdqa xmmword [rbp + 0x2c0], xmm0
movdqa xmmword [rbp + 0x2b0], xmm0
movdqa xmmword [rbp + 0x2a0], xmm0
lea rax, [rbp + 0x2a0]
mov qword [rsp + 0x30], rax
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0x20
lea rcx, [rbp + 0x2f8]
mov rdx, r14
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x140013dec
lea r13, [rbp + 0x2fe]
mov ecx, 2
nop dword [rax]
cmp word [rbp + rcx*2 - 0x3e], 0
je 0x140013e07
cmp word [rbp + rcx*2 - 0x3c], 0
je 0x140013e0d
cmp word [rbp + rcx*2 - 0x3a], 0
je 0x140013e10
add rcx, 3
cmp rcx, 0x107
jne 0x140013dc0
mov ecx, 0x105
jmp 0x140013e1d
mov qword [rsi], 3
add rsp, 0x398
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
add rcx, 0xfffffffffffffffe
jmp 0x140013e10
dec rcx
cmp rcx, 0x106
jae 0x14001415b
lea rax, [rcx*2 - 0x3a]
add rax, rbp
mov qword [rbp + 0x268], r14
mov qword [rbp + 0x270], rax
mov word [rbp + 0x278], 0
lea rcx, [rbp + 0x210]
lea rdx, [rbp + 0x268]
call fcn.14000b9b0
mov rax, qword [rbp + 0x210]
mov qword [rbp + 0x290], rax
mov r14, qword [rbp + 0x220]
movzx eax, word [rbp + 0x2a0]
test ax, ax
mov word [rbp + 0x30e], ax
je 0x140014039
cmp word [rbp + 0x2a2], 0
je 0x140014053
cmp word [rbp + 0x2a4], 0
je 0x14001405e
cmp word [rbp + 0x2a6], 0
je 0x140014069
cmp word [rbp + 0x2a8], 0
je 0x140014074
cmp word [rbp + 0x2aa], 0
je 0x14001407f
cmp word [rbp + 0x2ac], 0
je 0x14001408a
cmp word [rbp + 0x2ae], 0
je 0x140014095
cmp word [rbp + 0x2b0], 0
je 0x1400140a0
cmp word [rbp + 0x2b2], 0
je 0x1400140ab
cmp word [rbp + 0x2b4], 0
je 0x1400140b6
cmp word [rbp + 0x2b6], 0
je 0x1400140c1
cmp word [rbp + 0x2b8], 0
je 0x1400140cc
cmp word [rbp + 0x2ba], 0
je 0x1400140d7
cmp word [rbp + 0x2bc], 0
je 0x1400140e2
cmp word [rbp + 0x2be], 0
je 0x1400140ed
cmp word [rbp + 0x2c0], 0
je 0x1400140f8
cmp word [rbp + 0x2c2], 0
je 0x140014103
cmp word [rbp + 0x2c4], 0
je 0x14001410b
cmp word [rbp + 0x2c6], 0
je 0x140014113
cmp word [rbp + 0x2c8], 0
je 0x14001411b
cmp word [rbp + 0x2ca], 0
je 0x140014123
cmp word [rbp + 0x2cc], 0
je 0x14001412b
cmp word [rbp + 0x2ce], 0
je 0x140014133
cmp word [rbp + 0x2d0], 0
je 0x14001413b
cmp word [rbp + 0x2d2], 0
je 0x140014143
cmp word [rbp + 0x2d4], 0
je 0x14001414b
cmp word [rbp + 0x2d6], 0
je 0x140014153
cmp word [rbp + 0x2d8], 0
je 0x14001416e
cmp word [rbp + 0x2da], 0
je 0x140014176
cmp word [rbp + 0x2dc], 0
je 0x14001417e
cmp word [rbp + 0x2de], 1
mov r12d, 0x20
sbb r12, 0
jmp 0x140014184
mov eax, 1
mov qword [rbp + 0x2f0], rax
xor eax, eax
mov qword [rbp + 0x300], rax
jmp 0x140014252
mov r12d, 1
jmp 0x140014184
mov r12d, 2
jmp 0x140014184
mov r12d, 3
jmp 0x140014184
mov r12d, 4
jmp 0x140014184
mov r12d, 5
jmp 0x140014184
mov r12d, 6
jmp 0x140014184
mov r12d, 7
jmp 0x140014184
mov r12d, 8
jmp 0x140014184
mov r12d, 9
jmp 0x140014184
mov r12d, 0xa
jmp 0x140014184
mov r12d, 0xb
jmp 0x140014184
mov r12d, 0xc
jmp 0x140014184
mov r12d, 0xd
jmp 0x140014184
mov r12d, 0xe
jmp 0x140014184
mov r12d, 0xf
jmp 0x140014184
mov r12d, 0x10
jmp 0x140014184
mov r12d, 0x11
jmp 0x140014184
mov r12d, 0x12
jmp 0x140014184
mov r12d, 0x13
jmp 0x140014184
mov r12d, 0x14
jmp 0x140014184
mov r12d, 0x15
jmp 0x140014184
mov r12d, 0x16
jmp 0x140014184
mov r12d, 0x17
jmp 0x140014184
mov r12d, 0x18
jmp 0x140014184
mov r12d, 0x19
jmp 0x140014184
mov r12d, 0x1a
jmp 0x140014184
mov r12d, 0x1b
jmp 0x140014184
lea r8, str.C:UsersDell.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x105
call fcn.14003ff90
ud2
mov r12d, 0x1c
jmp 0x140014184
mov r12d, 0x1d
jmp 0x140014184
mov r12d, 0x1e
movzx eax, byte [0x140057181]
mov edx, 1
mov rcx, r12
call fcn.140003a30
test rax, rax
je 0x140014240
cmp r12, 0x10
mov qword [rbp + 0x300], r12
mov qword [rbp + 0x2f0], rax
jae 0x1400141bc
xor edx, edx
jmp 0x1400145d2
mov edx, r12d
and edx, 0x30
movdqa xmm0, xmmword [0x140042180]
movdqa xmm1, xmmword [rbp + 0x2a0]
pand xmm1, xmm0
movdqa xmm2, xmmword [rbp + 0x2b0]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [rax], xmm1
cmp rdx, 0x10
je 0x1400145c9
movdqa xmm1, xmmword [rbp + 0x2c0]
pand xmm1, xmm0
movdqa xmm2, xmmword [rbp + 0x2d0]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [rax + 0x10], xmm1
cmp edx, 0x20
je 0x1400145c9
movdqa xmm1, xmmword [rbp + 0x2e0]
pand xmm1, xmm0
pand xmm0, xmmword [rbp + 0x2f0]
packuswb xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
jmp 0x1400145c9
mov ecx, 1
mov rdx, r12
call fcn.14003f9a0
jmp 0x1400145c7
movabs rax, 0x5c002e005c005c
mov qword [rbp + 0x230], rax
mov word [rbp + 0x238], bx
mov dword [rbp + 0x23a], 0x3a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rbp + 0x230]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x140014425
mov qword [rbp + 0x298], rax
mov qword [rbp + 0x1f8], 0
mov qword [rbp + 0x268], 0
lea rbx, [rbp + 0x2f8]
lea r8, [rbp + 0x1f8]
lea r9, [rbp + 0x268]
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x14001443d
mov r12, qword [rbp + 0x1f8]
test r12, r12
mov rcx, qword [rbp + 0x298]
je 0x140014444
mov rax, qword [rbp + 0x268]
mov qword [rbp + 0x228], rax
mov qword [rbp + 0x1ec], 7
mov byte [rbp + 0x1f4], 0
mov dword [rbp + 0x248], 0
mov qword [rbp + 0x240], 0
mov dword [rbp + 0x2ec], 0
lea rax, [rbp + 0x2ec]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x240]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
lea r8, [rbp + 0x1ec]
mov edx, 0x2d1400
mov r9d, 0xc
call sub.KERNEL32.dll_DeviceIoControl
xor r15d, r15d
cmp byte [rbp + 0x248], 0
sete r15b
cmp dword [rbp + 0x2ec], 0xc
mov ecx, 2
cmovne r15, rcx
test eax, eax
cmove r15, rcx
lea rcx, [rbp + 0x268]
mov rdx, qword [rbp + 0x290]
mov r8, r14
call fcn.14002b090
mov rax, qword [rbp + 0x268]
mov qword [rbp + 0x250], rax
mov rax, qword [rbp + 0x270]
mov qword [rbp + 0x288], rax
movdqu xmm0, xmmword [rbp + 0x278]
movdqa xmmword [rbp + 0x1d0], xmm0
mov r14, qword [rbp + 0x300]
test r14, r14
je 0x140014455
movzx eax, byte [0x140057181]
mov edx, 1
mov rcx, r14
call fcn.140003a30
test rax, rax
jne 0x14001445a
mov ecx, 1
mov rdx, r14
call fcn.14003f9a0
jmp 0x1400145c7
mov rcx, 0xffffffffffffffff
call sub.KERNEL32.dll_CloseHandle
mov qword [rsi], 3
jmp 0x14001456e
mov rcx, qword [rbp + 0x298]
mov qword [rsi], 3
call sub.KERNEL32.dll_CloseHandle
jmp 0x14001456e
mov eax, 1
mov qword [rbp + 0x258], rax
mov rcx, rax
mov rdx, qword [rbp + 0x2f0]
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov r14, qword [rbp + 0x2f8]
movzx eax, byte [0x140057181]
mov ecx, 8
mov edx, 2
call fcn.140003a30
test rax, rax
je 0x1400145b8
mov qword [rbp + 0x260], rax
mov qword [rax], r14
mov qword [rbp + 0x268], rbx
mov qword [rbp + 0x270], r13
mov word [rbp + 0x278], 0
lea rcx, [rbp + 0x1f8]
lea rdx, [rbp + 0x268]
call fcn.14000b9b0
cmp edi, 2
mov rax, qword [rbp + 0x250]
mov qword [rsi + 0x10], rax
mov rax, qword [rbp + 0x288]
mov qword [rsi + 0x18], rax
movaps xmm0, xmmword [rbp + 0x1d0]
movups xmmword [rsi + 0x20], xmm0
mov rax, qword [rbp + 0x258]
mov qword [rsi + 0x30], rax
mov rax, qword [rbp + 0x300]
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x40], rax
mov rax, qword [rbp + 0x260]
mov qword [rsi + 0x48], rax
mov qword [rsi + 0x50], 4
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], r15
mov qword [rsi + 8], 0xffffffffffffffff
mov qword [rsi + 0x78], r12
mov rax, qword [rbp + 0x228]
mov qword [rsi + 0x80], rax
sete byte [rsi + 0x88]
mov rcx, qword [rbp + 0x298]
call sub.KERNEL32.dll_CloseHandle
cmp word [rbp + 0x30e], 0
je 0x140014591
mov r8d, 1
mov rcx, qword [rbp + 0x2f0]
mov rdx, qword [rbp + 0x300]
call fcn.140003a40
mov rdx, qword [rbp + 0x218]
test rdx, rdx
je 0x140013df3
mov r8d, 1
mov rcx, qword [rbp + 0x290]
call fcn.140003a40
jmp 0x140013df3
mov ecx, 2
mov edx, 8
call fcn.14003f9a0
ud2
cmp r12, rdx
je 0x140014252
movzx ecx, byte [rbp + rdx*2 + 0x2a0]
mov byte [rax + rdx], cl
inc rdx
jmp 0x1400145c9