Function at 0x140032bff
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, 0x4f8
movaps xmmword [rsp + 0x4e0], xmm6
mov rsi, rdx
mov qword [rsp + 0xa8], rcx
mov r14, qword [rsp + 0x578]
mov ebp, dword [rsp + 0x570]
mov ebx, dword [rsp + 0x568]
mov rax, qword [rsp + 0x560]
mov qword [rsp + 0x148], rdx
lea rdi, [rsp + 0x2c0]
mov qword [rdi], r9
mov qword [rdi + 8], rax
mov rcx, rdi
call fcn.140032bbc
test al, al
je 0x140032de7
shr rsi, 1
mov qword [rsp + 0x150], rsi
xor eax, eax
mov ecx, ebp
sub ecx, ebx
cmovb ecx, eax
cmp rsi, rcx
ja 0x1400336c0
add esi, ebx
lea rax, [rsp + 0x148]
mov qword [rsp + 0x198], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1a8], rdi
mov qword [rsp + 0x1b0], r14
mov dword [rsp + 0x1b8], esi
mov dword [rsp + 0x1bc], ebp
mov qword [rsp + 0x1c0], rax
mov qword [rsp + 0x1c8], rdi
mov qword [rsp + 0x1d0], r14
mov dword [rsp + 0x1d8], ebx
mov dword [rsp + 0x1dc], esi
call fcn.14000b1a0
test rax, rax
je 0x14003342d
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x198]
mov r8, rax
xor r9d, r9d
call fcn.1400325bd
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xd0], rax
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0xc0], xmm0
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0xe0], xmm0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xc8]
test rax, rax
je 0x1400334ee
mov rcx, qword [rsp + 0xe0]
and qword [rsp + 0xe0], 0
test rcx, rcx
je 0x140032daa
mov qword [rax + 0x18], rcx
mov qword [rcx + 0x20], rax
xorps xmm0, xmm0
mov rax, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xf0]
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xc8], rax
add qword [rsp + 0xd0], rcx
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xa8]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0xc0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xc8]
mov qword [rcx + 8], rax
lea rcx, [rsp + 0xe0]
call fcn.1400352ab
jmp 0x14003354e
mov r15, qword [r14]
mov eax, 8
mov qword [rsp + 0x60], rax
lea rsi, [rsp + 0x48]
lea r14, [rsp + 0x2d0]
xorps xmm6, xmm6
xor eax, eax
mov qword [rsp + 0x58], rax
xor eax, eax
mov qword [rsp + 0xb0], rax
mov edi, ebp
mov qword [rsp + 0x100], r15
cmp ebx, edi
jae 0x1400333d1
mov eax, dword [r15]
bt eax, ebx
jae 0x1400333ca
lea ebp, [rbx + 0x41]
mov word [rsp + 0x48], bp
mov dword [rsp + 0x4a], 0x5c003a
and word [rsp + 0x4e], 0
mov rcx, rsi
call sub.kernel32.dll_GetDriveTypeW
mov r13d, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140032ee4
mov r8d, 0x20a
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movaps xmmword [rsp + 0x2b0], xmm6
movaps xmmword [rsp + 0x2a0], xmm6
movaps xmmword [rsp + 0x290], xmm6
movaps xmmword [rsp + 0x280], xmm6
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x38], 0x20
mov rcx, rsi
mov rdx, r14
mov r8d, 0x105
xor r9d, r9d
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x140032ee4
mov eax, 0x20a
xor r8d, r8d
test rax, rax
je 0x140032ef5
cmp word [rsp + r8*2 + 0x2d0], 0
je 0x140032efd
inc r8
add rax, 0xfffffffffffffffe
jmp 0x140032eca
mov qword [rsp + 0x1e0], 3
jmp 0x1400333ca
mov r8d, 0x105
jmp 0x140032f0a
cmp r8, 0x106
jae 0x140033680
lea rcx, [rsp + 0x180]
mov rdx, r14
call fcn.1400368e1
mov rcx, qword [rsp + 0x188]
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x140], rax
mov eax, 0x40
xor esi, esi
mov qword [rsp + 0x68], rcx
test rax, rax
je 0x140032f57
cmp word [rsp + rsi*2 + 0x280], 0
je 0x140032f5e
inc rsi
add rax, 0xfffffffffffffffe
jmp 0x140032f3e
mov esi, 0x20
jmp 0x140032f68
cmp rsi, 0x21
jae 0x140033697
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, rsi
xor r8d, r8d
call fcn.14000bc47
cmp qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x78]
jne 0x140033673
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
and qword [rsp + 0x80], 0
mov rcx, r15
mov rdx, rsi
call fcn.140009563
mov r12, qword [rsp + 0x78]
mov r15, qword [rsp + 0x80]
test rsi, rsi
je 0x140032fdc
xor eax, eax
mov cl, byte [rsp + rax*2 + 0x280]
mov byte [r12 + r15], cl
inc r15
inc rax
cmp rsi, rax
jne 0x140032fc6
mov r14, qword [rsp + 0x70]
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x11a], rax
mov word [rsp + 0x122], bp
mov dword [rsp + 0x124], 0x3a
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x11a]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.kernel32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140033168
mov rbp, rax
and qword [rsp + 0x158], 0
and qword [rsp + 0x70], 0
lea rsi, [rsp + 0x48]
mov rcx, rsi
xor edx, edx
lea r8, [rsp + 0x158]
lea r9, [rsp + 0x70]
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140033151
mov rax, qword [rsp + 0x158]
test rax, rax
je 0x140033151
mov qword [rsp + 0x130], rax
mov rdi, qword [rsp + 0x70]
and dword [rsp + 0x110], 0
mov qword [rsp + 0x174], 7
and qword [rsp + 0x108], 0
mov byte [rsp + 0x17c], 0
and dword [rsp + 0x54], 0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
and qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
mov rcx, rbp
mov edx, 0x2d1400
lea r8, [rsp + 0x174]
mov r9d, 0xc
call qword [sym.imp.kernel32.dll_DeviceIoControl]
mov dword [rsp + 0xbc], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0xb8], eax
mov al, byte [rsp + 0x110]
mov byte [rsp + 0x47], al
mov rsi, qword [rsp + 0x140]
test rsi, rsi
mov qword [rsp + 0x138], r14
je 0x1400331b8
js 0x1400336d8
mov al, byte [0x14004a270]
xor ecx, ecx
mov rdx, rsi
call fcn.1400292c0
test rax, rax
jne 0x1400331bd
jmp 0x1400336dd
mov qword [rsp + 0x1e0], 3
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x140033186
mov rcx, 0xffffffffffffffff
call qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rsp + 0x1e0], 3
lea rsi, [rsp + 0x48]
mov rcx, r14
mov rdx, r12
call fcn.14000bd74
mov rcx, qword [rsp + 0x180]
mov rdx, qword [rsp + 0x68]
call fcn.14000bd74
mov r15, qword [rsp + 0x100]
lea r14, [rsp + 0x2d0]
jmp 0x1400333ca
mov eax, 1
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x128], rdi
mov rdi, rax
mov rcx, rax
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x158]
mov rdx, r12
mov r8, r15
call fcn.14003025f
mov edx, 4
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.140031cb2
cmp qword [rsp + 0x70], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xf8], rax
jne 0x1400336ab
mov r14, rsi
xor esi, esi
cmp byte [rsp + 0x47], 0
sete sil
cmp dword [rsp + 0xb8], 0xc
mov eax, 2
cmovne rsi, rax
cmp dword [rsp + 0xbc], 0
cmove rsi, rax
mov r15, qword [rsp + 0x80]
mov rax, qword [rsp + 0x48]
mov qword [r15], rax
mov r8d, 3
lea rcx, [rsp + 0x240]
lea rdx, [rsp + 0x48]
call fcn.1400368e1
mov qword [rsp + 0x1f0], r14
mov qword [rsp + 0x1f8], rdi
mov qword [rsp + 0x200], r14
mov byte [rsp + 0x208], 0
mov rax, qword [rsp + 0x168]
lea rcx, [rsp + 0x240]
mov qword [rcx - 0x20], rax
movups xmm0, xmmword [rsp + 0x158]
movups xmmword [rcx - 0x30], xmm0
or qword [rsp + 0x1e8], 0xffffffffffffffff
cmp r13d, 2
mov qword [rsp + 0x1e0], rsi
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x228], rax
mov qword [rsp + 0x230], r15
mov qword [rsp + 0x238], 4
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x258], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x260], rax
sete byte [rsp + 0x268]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rsp + 0x138]
mov rdx, r12
call fcn.14000bd74
mov rcx, qword [rsp + 0x180]
mov rdx, qword [rsp + 0x68]
call fcn.14000bd74
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x2d0], rax
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x2d8], rdx
mov rsi, qword [rsp + 0xb0]
mov qword [rsp + 0x2e0], rsi
cmp rsi, rax
lea r14, [rsp + 0x2d0]
jne 0x140033389
mov rcx, r14
call fcn.140031fe7
mov rax, qword [rsp + 0x2d0]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x2d8]
imul rcx, rsi, 0x90
mov qword [rsp + 0x60], rdx
add rcx, rdx
mov r8d, 0x90
lea rdx, [rsp + 0x1e0]
call sub.VCRUNTIME140.dll_memcpy
inc rsi
mov qword [rsp + 0xb0], rsi
mov edi, dword [rsp + 0x570]
mov r15, qword [rsp + 0x100]
lea rsi, [rsp + 0x48]
inc ebx
jmp 0x140032e1f
mov rsi, qword [rsp + 0xb0]
test rsi, rsi
je 0x14003351f
mov ecx, 0x28
call fcn.14003554f
test rax, rax
mov rdx, qword [rsp + 0x60]
je 0x1400336ea
mov rcx, qword [rsp + 0x58]
mov qword [rax], rcx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rsi
xorps xmm0, xmm0
movups xmmword [rax + 0x18], xmm0
mov rcx, qword [rsp + 0xa8]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], 1
jmp 0x14003354e
call fcn.140009bc4
mov rsi, qword [rax]
lea rbx, [rsi + 0x80]
call fcn.14000b1a0
test rax, rax
je 0x14003356a
mov r14, rax
cmp qword [rax + 0x110], rsi
je 0x14003365e
mov rax, r14
add rax, 0x110
mov rcx, qword [r14 + 0x100]
lea r15, [rsp + 0x260]
mov qword [r15], rax
and qword [r15 + 8], 0
mov qword [r15 + 0x10], rcx
mov byte [r15 + 0x18], 1
lea r12, [rsp + 0x1e0]
lea rsi, [rsp + 0x198]
mov ecx, 9
mov rdi, r12
rep movsq qword [rdi], qword [rsi]
and qword [r12 + 0x48], 0
lea rdx, [0x1400364e7]
mov rcx, rbx
mov r8, r12
call fcn.14000b23b
mov rcx, r14
mov rdx, r15
call fcn.1400322b9
lea rcx, [rsp + 0x2d0]
mov r8d, 0xa0
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x318]
lea rcx, [rsp + 0x70]
call fcn.14003614f
jmp 0x140032d13
xor eax, eax
cmp rax, 3
je 0x140032daa
mov rcx, qword [rsp + rax*8 + 0xc0]
mov rdx, qword [rsp + rax*8 + 0xe0]
mov qword [rsp + rax*8 + 0xc0], rdx
mov qword [rsp + rax*8 + 0xe0], rcx
inc rax
jmp 0x1400334f0
xorps xmm0, xmm0
mov rax, qword [rsp + 0xa8]
movups xmmword [rax], xmm0
and qword [rax + 0x10], 0
mov rsi, qword [rsp + 0x60]
mov rcx, rsi
xor edx, edx
call fcn.1400316fe
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call fcn.14003224b
movaps xmm6, xmmword [rsp + 0x4e0]
add rsp, 0x4f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x14004a280]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
cmp dword [rax + 0x20], 0
jne 0x1400335ab
mov eax, dword [0x14004a280]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov dword [rax + 0x20], 1
and qword [rax + 0x24], 0
mov eax, dword [0x14004a280]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x24]
lea rax, [rsp + 0x1e8]
mov qword [rax - 8], rcx
lea rsi, [rsp + 0x198]
mov ecx, 9
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
and qword [rax + 0x48], 0
lea rdx, [0x14003662e]
lea rsi, [rsp + 0x1e0]
mov rcx, rbx
mov r8, rsi
call fcn.14000b23b
mov rcx, qword [rsi]
call fcn.14000cbbf
lea rcx, [rsp + 0x2d0]
mov r8d, 0x88
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x320]
lea rsi, [rsp + 0x288]
mov rcx, rsi
call fcn.14003614f
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x90], xmm2
jmp 0x140032d13
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x198]
mov r8, r14
jmp 0x140032d0b
mov rdx, qword [rsp + 0x80]
call fcn.140037df0
lea rax, str.C:UsersTest.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x105
mov rcx, r8
mov r8, rax
call fcn.140037ff0
lea r8, str.C:UsersTest.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x20
mov rcx, rsi
call fcn.140037ff0
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xf8]
call fcn.140037df0
lea rcx, str.assertion_failed:_index___self.range.len__C:UsersTest.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rayon_1.10.0_src_range.rs
lea r8, [0x14003d110]
mov edx, 0x2b
call fcn.140038060
call fcn.140003ae0
mov ecx, 1
mov rdx, rsi
call fcn.140037df0
mov ecx, 8
mov edx, 0x28
call fcn.140037e10
int3