Function at 0x14002b400
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, 0x3b8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x330], 0xfffffffffffffffe
mov rsi, rcx
mov eax, dword [rdx]
bt eax, r8d
jae 0x14002b51c
mov r15d, r8d
add r15d, 0x41
mov word [rbp + 0x328], r15w
mov dword [rbp + 0x32a], 0x5c003a
mov word [rbp + 0x32e], 0
lea rcx, [rbp + 0x328]
call sub.kernel32.dll_GetDriveTypeW
mov edi, eax
lea eax, [rdi - 4]
cmp eax, 0xfffffffe
jb 0x14002b51c
lea rbx, [rbp - 0x3a]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x310], xmm0
movdqa xmmword [rbp + 0x300], xmm0
movdqa xmmword [rbp + 0x2f0], xmm0
movdqa xmmword [rbp + 0x2e0], xmm0
lea rax, [rbp + 0x2e0]
mov qword [rsp + 0x30], rax
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0x20
lea rcx, [rbp + 0x328]
mov rdx, rbx
mov r8d, 0x105
xor r9d, r9d
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x14002b51c
mov ecx, 2
nop word cs:[rax + rax]
cmp word [rbp + rcx*2 - 0x3e], 0
je 0x14002b537
cmp word [rbp + rcx*2 - 0x3c], 0
je 0x14002b53d
cmp word [rbp + rcx*2 - 0x3a], 0
je 0x14002b540
add rcx, 3
cmp rcx, 0x107
jne 0x14002b4f0
mov ecx, 0x105
jmp 0x14002b54d
mov qword [rsi], 3
add rsp, 0x3b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
add rcx, 0xfffffffffffffffe
jmp 0x14002b540
dec rcx
cmp rcx, 0x106
jae 0x14002b878
lea rax, [rcx*2 - 0x3a]
add rax, rbp
mov qword [rbp + 0x2b0], rbx
mov qword [rbp + 0x2b8], rax
mov word [rbp + 0x2c0], 0
lea rcx, [rbp + 0x258]
lea rdx, [rbp + 0x2b0]
call fcn.140028510
mov rax, qword [rbp + 0x258]
mov qword [rbp + 0x2d0], rax
mov r12, qword [rbp + 0x268]
movzx ebx, word [rbp + 0x2e0]
test bx, bx
je 0x14002b762
cmp word [rbp + 0x2e2], 0
je 0x14002b770
cmp word [rbp + 0x2e4], 0
je 0x14002b77b
cmp word [rbp + 0x2e6], 0
je 0x14002b786
cmp word [rbp + 0x2e8], 0
je 0x14002b791
cmp word [rbp + 0x2ea], 0
je 0x14002b79c
cmp word [rbp + 0x2ec], 0
je 0x14002b7a7
cmp word [rbp + 0x2ee], 0
je 0x14002b7b2
cmp word [rbp + 0x2f0], 0
je 0x14002b7bd
cmp word [rbp + 0x2f2], 0
je 0x14002b7c8
cmp word [rbp + 0x2f4], 0
je 0x14002b7d3
cmp word [rbp + 0x2f6], 0
je 0x14002b7de
cmp word [rbp + 0x2f8], 0
je 0x14002b7e9
cmp word [rbp + 0x2fa], 0
je 0x14002b7f4
cmp word [rbp + 0x2fc], 0
je 0x14002b7ff
cmp word [rbp + 0x2fe], 0
je 0x14002b80a
cmp word [rbp + 0x300], 0
je 0x14002b815
cmp word [rbp + 0x302], 0
je 0x14002b820
cmp word [rbp + 0x304], 0
je 0x14002b828
cmp word [rbp + 0x306], 0
je 0x14002b830
cmp word [rbp + 0x308], 0
je 0x14002b838
cmp word [rbp + 0x30a], 0
je 0x14002b840
cmp word [rbp + 0x30c], 0
je 0x14002b848
cmp word [rbp + 0x30e], 0
je 0x14002b850
cmp word [rbp + 0x310], 0
je 0x14002b858
cmp word [rbp + 0x312], 0
je 0x14002b860
cmp word [rbp + 0x314], 0
je 0x14002b868
cmp word [rbp + 0x316], 0
je 0x14002b870
cmp word [rbp + 0x318], 0
je 0x14002b88b
cmp word [rbp + 0x31a], 0
je 0x14002b893
cmp word [rbp + 0x31c], 0
je 0x14002b89b
cmp word [rbp + 0x31e], 1
mov r14d, 0x20
sbb r14, 0
jmp 0x14002b8a1
mov r13d, 1
xor r14d, r14d
jmp 0x14002b968
mov r14d, 1
jmp 0x14002b8a1
mov r14d, 2
jmp 0x14002b8a1
mov r14d, 3
jmp 0x14002b8a1
mov r14d, 4
jmp 0x14002b8a1
mov r14d, 5
jmp 0x14002b8a1
mov r14d, 6
jmp 0x14002b8a1
mov r14d, 7
jmp 0x14002b8a1
mov r14d, 8
jmp 0x14002b8a1
mov r14d, 9
jmp 0x14002b8a1
mov r14d, 0xa
jmp 0x14002b8a1
mov r14d, 0xb
jmp 0x14002b8a1
mov r14d, 0xc
jmp 0x14002b8a1
mov r14d, 0xd
jmp 0x14002b8a1
mov r14d, 0xe
jmp 0x14002b8a1
mov r14d, 0xf
jmp 0x14002b8a1
mov r14d, 0x10
jmp 0x14002b8a1
mov r14d, 0x11
jmp 0x14002b8a1
mov r14d, 0x12
jmp 0x14002b8a1
mov r14d, 0x13
jmp 0x14002b8a1
mov r14d, 0x14
jmp 0x14002b8a1
mov r14d, 0x15
jmp 0x14002b8a1
mov r14d, 0x16
jmp 0x14002b8a1
mov r14d, 0x17
jmp 0x14002b8a1
mov r14d, 0x18
jmp 0x14002b8a1
mov r14d, 0x19
jmp 0x14002b8a1
mov r14d, 0x1a
jmp 0x14002b8a1
mov r14d, 0x1b
jmp 0x14002b8a1
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.0_srcwindowsdisk.rs
mov edx, 0x105
call fcn.14020be90
ud2
mov r14d, 0x1c
jmp 0x14002b8a1
mov r14d, 0x1d
jmp 0x14002b8a1
mov r14d, 0x1e
movzx eax, byte [0x14031df01]
mov edx, 1
mov rcx, r14
call fcn.14001c680
test rax, rax
je 0x14002b956
mov r13, rax
cmp r14, 0x10
jae 0x14002b8ce
xor eax, eax
jmp 0x14002bd35
mov eax, r14d
and eax, 0x30
movdqa xmm0, xmmword [0x1402102a0]
movdqa xmm1, xmmword [rbp + 0x2e0]
pand xmm1, xmm0
movdqa xmm2, xmmword [rbp + 0x2f0]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [r13], xmm1
cmp rax, 0x10
je 0x14002bd2c
movdqa xmm1, xmmword [rbp + 0x300]
pand xmm1, xmm0
movdqa xmm2, xmmword [rbp + 0x310]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [r13 + 0x10], xmm1
cmp eax, 0x20
je 0x14002bd2c
movdqa xmm1, xmmword [rbp + 0x320]
pand xmm1, xmm0
pand xmm0, xmmword [rbp + 0x330]
packuswb xmm1, xmm0
movdqu xmmword [r13 + 0x20], xmm1
jmp 0x14002bd2c
mov ecx, 1
mov rdx, r14
call fcn.14020b830
jmp 0x14002bd2a
mov qword [rbp + 0x1e8], r13
mov qword [rbp + 0x1f0], r14
mov qword [rbp + 0x1f8], r14
movabs rax, 0x5c002e005c005c
mov qword [rbp + 0x280], rax
mov word [rbp + 0x288], r15w
mov dword [rbp + 0x28a], 0x3a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rbp + 0x280]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x14002bb5e
mov qword [rbp + 0x2d8], rax
mov r15w, bx
mov qword [rbp + 0x210], 0
mov qword [rbp + 0x2b0], 0
lea rcx, [rbp + 0x328]
lea r8, [rbp + 0x210]
lea r9, [rbp + 0x2b0]
xor edx, edx
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x14002bb73
mov rax, qword [rbp + 0x210]
test rax, rax
mov ebx, r15d
mov rcx, qword [rbp + 0x2d8]
je 0x14002bb7d
mov qword [rbp + 0x270], rax
mov rax, qword [rbp + 0x2b0]
mov qword [rbp + 0x278], rax
mov qword [rbp + 0x204], 7
mov byte [rbp + 0x20c], 0
mov dword [rbp + 0x298], 0
mov qword [rbp + 0x290], 0
mov dword [rbp + 0x324], 0
lea rax, [rbp + 0x324]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x290]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
lea r8, [rbp + 0x204]
mov edx, 0x2d1400
mov r9d, 0xc
call sub.kernel32.dll_DeviceIoControl
xor ebx, ebx
cmp byte [rbp + 0x298], 0
sete bl
cmp dword [rbp + 0x324], 0xc
mov ecx, 2
cmovne rbx, rcx
test eax, eax
cmove rbx, rcx
lea rcx, [rbp + 0x2b0]
mov rdx, qword [rbp + 0x2d0]
mov r8, r12
call fcn.1401dc960
mov rax, qword [rbp + 0x2b0]
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x2b8]
mov qword [rbp + 0x2a0], rax
movdqu xmm0, xmmword [rbp + 0x2c0]
movdqa xmmword [rbp + 0x1d0], xmm0
test r14, r14
je 0x14002bbc6
movzx eax, byte [0x14031df01]
mov edx, 1
mov rcx, r14
call fcn.14001c680
mov r12, rax
test rax, rax
jne 0x14002bbcc
mov ecx, 1
mov rdx, r14
call fcn.14020b830
jmp 0x14002bd2a
mov rcx, 0xffffffffffffffff
call sub.kernel32.dll_CloseHandle
mov qword [rsi], 3
jmp 0x14002bb89
mov ebx, r15d
mov rcx, qword [rbp + 0x2d8]
mov qword [rsi], 3
call sub.kernel32.dll_CloseHandle
test bx, bx
je 0x14002bb9f
mov r8d, 1
mov rcx, r13
mov rdx, r14
call fcn.14001c690
mov rdx, qword [rbp + 0x260]
test rdx, rdx
je 0x14002b523
mov r8d, 1
mov rcx, qword [rbp + 0x2d0]
call fcn.14001c690
jmp 0x14002b523
mov r12d, 1
mov rcx, r12
mov rdx, r13
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x240], r12
mov qword [rbp + 0x248], r14
mov qword [rbp + 0x250], r14
mov r12, qword [rbp + 0x328]
movzx eax, byte [0x14031df01]
mov ecx, 8
mov edx, 2
call fcn.14001c680
test rax, rax
je 0x14002bd1b
mov qword [rax], r12
mov qword [rbp + 0x228], rax
mov qword [rbp + 0x230], 4
mov qword [rbp + 0x238], 4
lea rax, [rbp + 0x328]
mov qword [rbp + 0x2b0], rax
lea rax, [rbp + 0x32e]
mov qword [rbp + 0x2b8], rax
mov word [rbp + 0x2c0], 0
lea rcx, [rbp + 0x210]
lea rdx, [rbp + 0x2b0]
call fcn.140028510
cmp edi, 2
mov rax, qword [rbp + 0x2a8]
mov qword [rsi + 0x10], rax
mov rax, qword [rbp + 0x2a0]
mov qword [rsi + 0x18], rax
movaps xmm0, xmmword [rbp + 0x1d0]
movups xmmword [rsi + 0x20], xmm0
mov rax, qword [rbp + 0x250]
mov qword [rsi + 0x40], rax
movups xmm0, xmmword [rbp + 0x240]
movups xmmword [rsi + 0x30], xmm0
mov rax, qword [rbp + 0x238]
mov qword [rsi + 0x58], rax
movups xmm0, xmmword [rbp + 0x228]
movups xmmword [rsi + 0x48], xmm0
movdqu xmm0, xmmword [rbp + 0x210]
movdqu xmmword [rsi + 0x60], xmm0
mov rax, qword [rbp + 0x220]
mov qword [rsi + 0x70], rax
mov qword [rsi], rbx
mov qword [rsi + 8], 0xffffffffffffffff
mov rax, qword [rbp + 0x270]
mov qword [rsi + 0x78], rax
mov rax, qword [rbp + 0x278]
mov qword [rsi + 0x80], rax
sete byte [rsi + 0x88]
mov rcx, qword [rbp + 0x2d8]
call sub.kernel32.dll_CloseHandle
test r15w, r15w
jne 0x14002bb8e
jmp 0x14002bb9f
mov ecx, 2
mov edx, 8
call fcn.14020b830
ud2
cmp r14, rax
je 0x14002b968
movzx ecx, byte [rbp + rax*2 + 0x2e0]
mov byte [r13 + rax], cl
inc rax
jmp 0x14002bd2c