Function at 0x140017730
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 0x14001784d
mov edi, r8d
add edi, 0x41
mov word [rbp + 0x2e8], di
mov dword [rbp + 0x2ea], 0x5c003a
mov word [rbp + 0x2ee], 0
lea rcx, [rbp + 0x2e8]
call sub.KERNEL32.dll_GetDriveTypeW
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x14001784d
mov dword [rbp + 0x264], eax
lea rbx, [rbp - 0x3a]
mov r12d, 0x20a
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x2b0], xmm0
movdqa xmmword [rbp + 0x2a0], xmm0
movdqa xmmword [rbp + 0x290], xmm0
movdqa xmmword [rbp + 0x280], xmm0
lea rax, [rbp + 0x280]
mov qword [rsp + 0x30], rax
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0x20
lea rcx, [rbp + 0x2e8]
mov rdx, rbx
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x14001784d
mov r14d, 2
nop
cmp word [rbp + r14*2 - 0x3e], 0
je 0x140017868
cmp word [rbp + r14*2 - 0x3c], 0
je 0x14001786e
cmp word [rbp + r14*2 - 0x3a], 0
je 0x140017871
add r14, 3
add r12, 0xfffffffffffffffa
jne 0x140017820
mov r14d, 0x105
jmp 0x14001787e
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 r14, 0xfffffffffffffffe
jmp 0x140017871
dec r14
cmp r14, 0x106
jae 0x140017bf8
mov qword [rbp + 0x2d0], 0
mov qword [rbp + 0x2d8], 1
mov qword [rbp + 0x2e0], 0
mov rax, r14
shr rax, 1
mov r8d, r14d
and r8d, 1
add r8, rax
je 0x1400178bf
lea rcx, [rbp + 0x2d0]
xor edx, edx
call fcn.140040c90
lea rax, [r14*2 - 0x3a]
add rax, rbp
mov qword [rbp + 0x240], rbx
mov qword [rbp + 0x248], rax
mov word [rbp + 0x250], 0
lea rcx, [rbp + 0x240]
lea rdx, [rbp + 0x2d0]
call fcn.140016aa0
mov r12, qword [rbp + 0x2d0]
mov r13, qword [rbp + 0x2d8]
mov rbx, qword [rbp + 0x2e0]
movzx r14d, word [rbp + 0x280]
test r14w, r14w
je 0x140017ad6
cmp word [rbp + 0x282], 0
je 0x140017af0
cmp word [rbp + 0x284], 0
je 0x140017afb
cmp word [rbp + 0x286], 0
je 0x140017b06
cmp word [rbp + 0x288], 0
je 0x140017b11
cmp word [rbp + 0x28a], 0
je 0x140017b1c
cmp word [rbp + 0x28c], 0
je 0x140017b27
cmp word [rbp + 0x28e], 0
je 0x140017b32
cmp word [rbp + 0x290], 0
je 0x140017b3d
cmp word [rbp + 0x292], 0
je 0x140017b48
cmp word [rbp + 0x294], 0
je 0x140017b53
cmp word [rbp + 0x296], 0
je 0x140017b5e
cmp word [rbp + 0x298], 0
je 0x140017b69
cmp word [rbp + 0x29a], 0
je 0x140017b74
cmp word [rbp + 0x29c], 0
je 0x140017b7f
cmp word [rbp + 0x29e], 0
je 0x140017b8a
cmp word [rbp + 0x2a0], 0
je 0x140017b95
cmp word [rbp + 0x2a2], 0
je 0x140017ba0
cmp word [rbp + 0x2a4], 0
je 0x140017ba8
cmp word [rbp + 0x2a6], 0
je 0x140017bb0
cmp word [rbp + 0x2a8], 0
je 0x140017bb8
cmp word [rbp + 0x2aa], 0
je 0x140017bc0
cmp word [rbp + 0x2ac], 0
je 0x140017bc8
cmp word [rbp + 0x2ae], 0
je 0x140017bd0
cmp word [rbp + 0x2b0], 0
je 0x140017bd8
cmp word [rbp + 0x2b2], 0
je 0x140017be0
cmp word [rbp + 0x2b4], 0
je 0x140017be8
cmp word [rbp + 0x2b6], 0
je 0x140017bf0
cmp word [rbp + 0x2b8], 0
je 0x140017c0c
cmp word [rbp + 0x2ba], 0
je 0x140017c14
cmp word [rbp + 0x2bc], 0
je 0x140017c1c
cmp word [rbp + 0x2be], 1
mov r15d, 0x20
sbb r15, 0
jmp 0x140017c22
mov eax, 1
mov qword [rbp + 0x2c8], rax
xor eax, eax
mov qword [rbp + 0x2f0], rax
jmp 0x140017cfe
mov r15d, 1
jmp 0x140017c22
mov r15d, 2
jmp 0x140017c22
mov r15d, 3
jmp 0x140017c22
mov r15d, 4
jmp 0x140017c22
mov r15d, 5
jmp 0x140017c22
mov r15d, 6
jmp 0x140017c22
mov r15d, 7
jmp 0x140017c22
mov r15d, 8
jmp 0x140017c22
mov r15d, 9
jmp 0x140017c22
mov r15d, 0xa
jmp 0x140017c22
mov r15d, 0xb
jmp 0x140017c22
mov r15d, 0xc
jmp 0x140017c22
mov r15d, 0xd
jmp 0x140017c22
mov r15d, 0xe
jmp 0x140017c22
mov r15d, 0xf
jmp 0x140017c22
mov r15d, 0x10
jmp 0x140017c22
mov r15d, 0x11
jmp 0x140017c22
mov r15d, 0x12
jmp 0x140017c22
mov r15d, 0x13
jmp 0x140017c22
mov r15d, 0x14
jmp 0x140017c22
mov r15d, 0x15
jmp 0x140017c22
mov r15d, 0x16
jmp 0x140017c22
mov r15d, 0x17
jmp 0x140017c22
mov r15d, 0x18
jmp 0x140017c22
mov r15d, 0x19
jmp 0x140017c22
mov r15d, 0x1a
jmp 0x140017c22
mov r15d, 0x1b
jmp 0x140017c22
lea r8, str.C:Usersmarcr.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x105
mov rcx, r14
call fcn.140046a00
mov r15d, 0x1c
jmp 0x140017c22
mov r15d, 0x1d
jmp 0x140017c22
mov r15d, 0x1e
movzx eax, byte [0x14005f181]
mov edx, 1
mov rcx, r15
call fcn.140008400
test rax, rax
je 0x140017cde
cmp r15, 0x10
mov qword [rbp + 0x2f0], r15
mov qword [rbp + 0x2c8], rax
jae 0x140017c5a
xor edx, edx
jmp 0x140018116
mov edx, r15d
and edx, 0x30
movdqa xmm0, xmmword [0x140049e80]
movdqa xmm1, xmmword [rbp + 0x280]
pand xmm1, xmm0
movdqa xmm2, xmmword [rbp + 0x290]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [rax], xmm1
cmp rdx, 0x10
je 0x14001810d
movdqa xmm1, xmmword [rbp + 0x2a0]
pand xmm1, xmm0
movdqa xmm2, xmmword [rbp + 0x2b0]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [rax + 0x10], xmm1
cmp edx, 0x20
je 0x14001810d
movdqa xmm1, xmmword [rbp + 0x2c0]
pand xmm1, xmm0
pand xmm0, xmmword [rbp + 0x2d0]
packuswb xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
jmp 0x14001810d
mov qword [rbp + 0x268], r13
mov qword [rbp + 0x278], r12
mov ecx, 1
mov rdx, r15
call fcn.140046480
jmp 0x14001810b
movabs rax, 0x5c002e005c005c
mov qword [rbp + 0x200], rax
mov word [rbp + 0x208], di
mov dword [rbp + 0x20a], 0x3a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rbp + 0x200]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x140017f32
mov r15, rax
mov word [rbp + 0x2fe], r14w
mov qword [rbp + 0x2d0], 0
mov qword [rbp + 0x240], 0
lea rdi, [rbp + 0x2e8]
lea r8, [rbp + 0x2d0]
lea r9, [rbp + 0x240]
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140017ee1
mov r14, qword [rbp + 0x2d0]
test r14, r14
je 0x140017ee1
mov qword [rbp + 0x278], r12
mov rax, qword [rbp + 0x240]
mov qword [rbp + 0x1f8], rax
mov qword [rbp + 0x1ec], 7
mov byte [rbp + 0x1f4], 0
mov dword [rbp + 0x218], 0
mov qword [rbp + 0x210], 0
mov dword [rbp + 0x2c4], 0
lea rax, [rbp + 0x2c4]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x210]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
lea r8, [rbp + 0x1ec]
mov qword [rbp + 0x220], r15
mov rcx, r15
mov edx, 0x2d1400
mov r9d, 0xc
call sub.KERNEL32.dll_DeviceIoControl
xor r12d, r12d
cmp byte [rbp + 0x218], 0
sete r12b
cmp dword [rbp + 0x2c4], 0xc
mov ecx, 2
cmovne r12, rcx
test eax, eax
cmove r12, rcx
lea rcx, [rbp + 0x240]
mov qword [rbp + 0x268], r13
mov rdx, r13
mov r8, rbx
call fcn.1400323b0
mov rax, qword [rbp + 0x240]
mov qword [rbp + 0x270], rax
mov rbx, qword [rbp + 0x248]
movdqu xmm0, xmmword [rbp + 0x250]
movdqa xmmword [rbp + 0x1d0], xmm0
mov r8, qword [rbp + 0x2f0]
test r8, r8
mov qword [rbp + 0x228], rbx
je 0x140017f4d
movzx eax, byte [0x14005f181]
mov edx, 1
mov rcx, r8
call fcn.140008400
test rax, rax
je 0x1400180fa
mov r8, qword [rbp + 0x2f0]
jmp 0x140017f52
mov qword [rsi], 3
mov rcx, r15
call sub.KERNEL32.dll_CloseHandle
cmp word [rbp + 0x2fe], 0
je 0x140017f13
mov r8d, 1
mov rcx, qword [rbp + 0x2c8]
mov rdx, qword [rbp + 0x2f0]
call fcn.140008410
test r12, r12
je 0x140017854
mov r8d, 1
mov rcx, r13
mov rdx, r12
call fcn.140008410
jmp 0x140017854
mov rcx, 0xffffffffffffffff
call sub.KERNEL32.dll_CloseHandle
mov qword [rsi], 3
test r14w, r14w
jne 0x140017efa
jmp 0x140017f13
mov eax, 1
mov qword [rbp + 0x230], rax
mov rcx, rax
mov rdx, qword [rbp + 0x2c8]
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rbp + 0x2e8]
movzx eax, byte [0x14005f181]
mov ecx, 8
mov edx, 2
call fcn.140008400
test rax, rax
je 0x1400180e9
mov qword [rbp + 0x238], rax
mov qword [rax], rbx
mov qword [rbp + 0x2d0], 0
mov qword [rbp + 0x2d8], 1
mov qword [rbp + 0x2e0], 0
lea rcx, [rbp + 0x2d0]
mov r8d, 2
xor edx, edx
call fcn.140040c90
mov qword [rbp + 0x240], rdi
lea rax, [rbp + 0x2ee]
mov qword [rbp + 0x248], rax
mov word [rbp + 0x250], 0
lea rcx, [rbp + 0x240]
lea rdx, [rbp + 0x2d0]
call fcn.140016aa0
cmp dword [rbp + 0x264], 2
mov rax, qword [rbp + 0x2e0]
mov qword [rsi + 0x70], rax
movups xmm0, xmmword [rbp + 0x2d0]
movups xmmword [rsi + 0x60], xmm0
mov rax, qword [rbp + 0x270]
mov qword [rsi + 0x10], rax
mov rax, qword [rbp + 0x228]
mov qword [rsi + 0x18], rax
movdqa xmm0, xmmword [rbp + 0x1d0]
movdqu xmmword [rsi + 0x20], xmm0
mov rdi, qword [rbp + 0x2f0]
mov qword [rsi + 0x30], rdi
mov rax, qword [rbp + 0x230]
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x40], rdi
mov qword [rsi + 0x48], 4
mov rax, qword [rbp + 0x238]
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x58], 4
mov qword [rsi], r12
mov qword [rsi + 8], 0xffffffffffffffff
mov qword [rsi + 0x78], r14
mov rax, qword [rbp + 0x1f8]
mov qword [rsi + 0x80], rax
sete byte [rsi + 0x88]
mov rcx, qword [rbp + 0x220]
call sub.KERNEL32.dll_CloseHandle
cmp word [rbp + 0x2fe], 0
je 0x1400180c2
mov r8d, 1
mov rcx, qword [rbp + 0x2c8]
mov rdx, rdi
call fcn.140008410
mov rdx, qword [rbp + 0x278]
test rdx, rdx
mov rcx, qword [rbp + 0x268]
je 0x140017854
mov r8d, 1
call fcn.140008410
jmp 0x140017854
mov ecx, 2
mov edx, 8
call fcn.140046480
jmp 0x14001810b
mov ecx, 1
mov rdx, qword [rbp + 0x2f0]
call fcn.140046480
ud2
cmp r15, rdx
je 0x140017cfe
movzx ecx, byte [rbp + rdx*2 + 0x280]
mov byte [rax + rdx], cl
inc rdx
jmp 0x14001810d