Function at 0x140040728
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, 0x4c8
movaps xmmword [rsp + 0x4b0], xmm6
nop
push rdx
pop rsi
mov qword [rsp + 0x60], rcx
mov r14, qword [rsp + 0x548]
mov ebp, dword [rsp + 0x540]
mov edi, dword [rsp + 0x538]
mov rax, qword [rsp + 0x530]
mov qword [rsp + 0x140], rdx
lea rbx, [rsp + 0x290]
mov qword [rbx], r9
mov qword [rbx + 8], rax
mov rcx, rbx
call fcn.14003f2b1
test al, al
je 0x140040910
shr rsi, 1
mov qword [rsp + 0x148], rsi
sub eax, eax
mov ecx, ebp
sub ecx, edi
cmovb ecx, eax
cmp rsi, rcx
ja 0x14004110c
add esi, edi
lea rax, [rsp + 0x140]
mov qword [rsp + 0x168], rax
lea rax, [rsp + 0x148]
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x178], rbx
mov qword [rsp + 0x180], r14
mov dword [rsp + 0x188], esi
mov dword [rsp + 0x18c], ebp
mov qword [rsp + 0x190], rax
mov qword [rsp + 0x198], rbx
mov qword [rsp + 0x1a0], r14
mov dword [rsp + 0x1a8], edi
mov dword [rsp + 0x1ac], esi
call fcn.140011b09
or rax, rax
je 0x140040eea
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0x168]
mov r8, rax
sub r9d, r9d
call fcn.1400411f3
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xc0], rax
movaps xmm0, xmmword [rsp + 0xf0]
movaps xmmword [rsp + 0xb0], xmm0
movups xmm0, xmmword [rsp + 0x108]
movaps xmmword [rsp + 0xd0], xmm0
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xb8]
or rax, rax
je 0x140040fae
mov rcx, qword [rsp + 0xd0]
and qword [rsp + 0xd0], 0
or rcx, rcx
je 0x1400408d6
mov qword [rax + 0x18], rcx
mov qword [rcx + 0x20], rax
xorps xmm0, xmm0
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xe0]
movups xmmword [rsp + 0xd8], xmm0
mov qword [rsp + 0xb8], rax
add qword [rsp + 0xc0], rcx
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0xb0]
mov qword [rcx], rax
mov rax, qword [rsp + 0xb8]
mov qword [rcx + 8], rax
lea rcx, [rsp + 0xd0]
call fcn.14004116d
jmp 0x140040ffc
mov rbx, qword [r14]
mov eax, 8
mov qword [rsp + 0x78], rax
lea r12, [rsp + 0x44]
lea r13, [rsp + 0x2a0]
xorps xmm6, xmm6
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov rsi, r14
mov qword [rsp + 0xe8], rbx
cmp edi, ebp
jae 0x140040e6d
mov eax, dword [rbx]
bt eax, edi
jae 0x140040e66
lea r15d, [rdi + 0x41]
mov word [rsp + 0x44], r15w
mov dword [rsp + 0x46], 0x5c003a
and word [rsp + 0x4a], 0
mov rcx, r12
call sub.KERNEL32.dll_GetDriveTypeW
mov r14d, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140040a10
mov r8d, 0x20a
mov rcx, r13
sub edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rsp + 0x280], xmm6
movaps xmmword [rsp + 0x270], xmm6
movaps xmmword [rsp + 0x260], xmm6
movaps xmmword [rsp + 0x250], xmm6
lea rax, [rsp + 0x250]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x38], 0x20
mov rcx, r12
mov rdx, r13
mov r8d, 0x105
sub r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
or eax, eax
je 0x140040a10
mov eax, 0x20a
xor r8d, r8d
or rax, rax
je 0x140040a21
cmp word [rsp + r8*2 + 0x2a0], 0
je 0x140040a29
inc r8
add rax, 0xfffffffffffffffe
jmp 0x1400409f6
mov qword [rsp + 0x1b0], 3
jmp 0x140040e66
mov r8d, 0x105
jmp 0x140040a36
cmp r8, 0x106
jae 0x1400410dc
lea rcx, [rsp + 0x150]
mov rdx, r13
call fcn.14003f628
mov rcx, qword [rsp + 0x158]
mov rdx, qword [rsp + 0x160]
mov eax, 0x40
xor ebx, ebx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x138], rdx
or rax, rax
je 0x140040a86
cmp word [rsp + rbx*2 + 0x250], 0
je 0x140040a8d
inc rbx
add rax, 0xfffffffffffffffe
jmp 0x140040a6d
mov ebx, 0x20
jmp 0x140040a97
cmp rbx, 0x21
jae 0x1400410f3
mov edx, 1
mov r8d, 1
push rbx
nop
pop rcx
call fcn.14003fce3
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rdx
and qword [rsp + 0xa8], 0
lea rcx, [rsp + 0x98]
push rbx
nop
pop rdx
call fcn.14000daf3
mov r13, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xa8]
or rbx, rbx
je 0x140040b01
sub eax, eax
mov cl, byte [rsp + rax*2 + 0x250]
mov byte [r13 + rbp], cl
inc rbp
inc rax
cmp rbx, rax
jne 0x140040aea
mov rbx, qword [rsp + 0x98]
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x98], rax
mov word [rsp + 0xa0], r15w
mov dword [rsp + 0xa2], 0x3a
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x98]
sub edx, edx
mov r8d, 3
sub r9d, r9d
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x140040c8f
mov r12, rax
and qword [rsp + 0x88], 0
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x44]
xor edx, edx
lea r8, [rsp + 0x88]
lea r9, [rsp + 0x50]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
or eax, eax
je 0x140040c79
mov r15, qword [rsp + 0x88]
or r15, r15
je 0x140040c79
mov qword [rsp + 0x130], rbx
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x128], rax
and dword [rsp + 0x58], 0
mov qword [rsp + 0x88], 7
and qword [rsp + 0x50], 0
mov byte [rsp + 0x90], 0
and dword [rsp + 0x4c], 0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
and qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
mov rcx, r12
mov edx, 0x2d1400
lea r8, [rsp + 0x88]
mov r9d, 0xc
call sub.KERNEL32.dll_DeviceIoControl
xor esi, esi
cmp byte [rsp + 0x58], 0
sete sil
cmp dword [rsp + 0x4c], 0xc
mov ecx, 2
cmovne rsi, rcx
test eax, eax
cmove rsi, rcx
mov rbx, qword [rsp + 0x138]
or rbx, rbx
js 0x140041107
mov qword [rsp + 0x120], r15
je 0x140040ce8
mov al, byte [0x1400820f8]
xor ecx, ecx
push rbx
nop
pop rdx
call fcn.14003bc40
mov r15, rax
test rax, rax
jne 0x140040cee
jmp 0x140041124
mov qword [rsp + 0x1b0], 3
mov rcx, r12
call sub.KERNEL32.dll_CloseHandle
jmp 0x140040ca7
mov rcx, 0xffffffffffffffff
call sub.KERNEL32.dll_CloseHandle
mov qword [rsp + 0x1b0], 3
mov rcx, rbx
mov rdx, r13
call fcn.14000ebf6
mov rcx, qword [rsp + 0x150]
mov rdx, qword [rsp + 0x80]
call fcn.14000ebf6
mov ebp, dword [rsp + 0x540]
mov rbx, qword [rsp + 0xe8]
lea r12, [rsp + 0x44]
lea r13, [rsp + 0x2a0]
jmp 0x140040e66
mov r15d, 1
mov rcx, r15
mov rdx, qword [rsp + 0x80]
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x1c0], rbx
mov qword [rsp + 0x1c8], r15
mov qword [rsp + 0x1d0], rbx
mov byte [rsp + 0x1d8], 0
lea rcx, [rsp + 0x1e0]
mov rdx, r13
mov r8, rbp
call fcn.14003f8af
mov r8d, 4
lea rcx, [rsp + 0x1f8]
lea r15, [rsp + 0x44]
mov rdx, r15
call fcn.140041703
mov r8d, 3
lea rcx, [rsp + 0x210]
mov rdx, r15
call fcn.14003f628
or qword [rsp + 0x1b8], 0xffffffffffffffff
cmp r14d, 2
mov qword [rsp + 0x1b0], rsi
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x228], rax
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x230], rax
sete byte [rsp + 0x238]
mov rcx, r12
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [rsp + 0x130]
mov rdx, r13
call fcn.14000ebf6
mov rcx, qword [rsp + 0x150]
mov rdx, qword [rsp + 0x80]
call fcn.14000ebf6
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x2a0], rcx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x2a8], rax
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x2b0], rsi
cmp rsi, rcx
lea r13, [rsp + 0x2a0]
jne 0x140040e20
mov rcx, r13
call fcn.14003ef99
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x2a8]
imul rcx, rsi, 0x90
mov qword [rsp + 0x78], rax
add rcx, rax
mov r8d, 0x90
lea rdx, [rsp + 0x1b0]
call sub.msvcrt.dll_memcpy
inc rsi
mov qword [rsp + 0x70], rsi
mov rsi, qword [rsp + 0x548]
mov ebp, dword [rsp + 0x540]
mov rbx, qword [rsp + 0xe8]
lea r12, [rsp + 0x44]
inc edi
jmp 0x14004094a
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rsi
or rax, rax
je 0x140040fdf
call fcn.14003f195
test rax, rax
je 0x140041131
mov rcx, qword [rsp + 0x100]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0xf0]
movups xmmword [rax], xmm0
xorps xmm0, xmm0
movups xmmword [rax + 0x18], xmm0
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], 1
jmp 0x140040ffc
call fcn.14001058a
mov rsi, qword [rax]
lea rbx, [rsi + 0x80]
call fcn.140011b09
or rax, rax
je 0x140041018
mov r14, rax
cmp qword [rax + 0x110], rsi
je 0x1400410c4
mov rax, r14
add rax, 0x110
mov rcx, qword [r14 + 0x100]
lea r15, [rsp + 0x230]
mov qword [r15], rax
and qword [r15 + 8], 0
mov qword [r15 + 0x10], rcx
mov byte [r15 + 0x18], 1
lea r12, [rsp + 0x1b0]
lea rsi, [rsp + 0x168]
mov ecx, 9
mov rdi, r12
rep movsq qword [rdi], qword [rsi]
and qword [r12 + 0x48], 0
lea rdx, [0x1400413e4]
push rbx
nop
pop rcx
mov r8, r12
call fcn.140011b9b
mov rcx, r14
mov rdx, r15
call fcn.14003f2f4
lea rcx, [rsp + 0x2a0]
mov r8d, 0xa0
mov rdx, r12
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x2e8]
lea rcx, [rsp + 0xf0]
call fcn.14003f25d
jmp 0x14004083c
sub eax, eax
cmp rax, 3
je 0x1400408d6
mov rcx, qword [rsp + rax*8 + 0xb0]
mov rdx, qword [rsp + rax*8 + 0xd0]
mov qword [rsp + rax*8 + 0xb0], rdx
mov qword [rsp + rax*8 + 0xd0], rcx
inc rax
jmp 0x140040fb0
xorps xmm0, xmm0
mov rax, qword [rsp + 0x60]
movups xmmword [rax], xmm0
and qword [rax + 0x10], 0
lea rcx, [rsp + 0xf0]
call fcn.14003f1b8
movaps xmm6, xmmword [rsp + 0x4b0]
add rsp, 0x4c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ecx, ecx
call fcn.14003f494
test rax, rax
je 0x140041140
lea rdx, [rsp + 0x1b8]
mov qword [rdx - 8], rax
lea rsi, [rsp + 0x168]
mov ecx, 9
push rdx
nop
pop rdi
rep movsq qword [rdi], qword [rsi]
and qword [rdx + 0x48], 0
lea rdx, [0x14004152b]
lea rsi, [rsp + 0x1b0]
push rbx
nop
pop rcx
mov r8, rsi
call fcn.140011b9b
mov rcx, qword [rsi]
call fcn.1400104c4
lea rcx, [rsp + 0x2a0]
mov r8d, 0x88
mov rdx, rsi
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x2f0]
lea rsi, [rsp + 0x258]
push rsi
nop
pop rcx
call fcn.14003f25d
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0x100], xmm1
movaps xmmword [rsp + 0x110], xmm2
jmp 0x14004083c
lea rcx, [rsp + 0xf0]
lea rdx, [rsp + 0x168]
mov r8, r14
jmp 0x140040834
lea rax, str._home_m0hx_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_disk.rs
mov edx, 0x105
mov rcx, r8
mov r8, rax
call fcn.140006bf0
lea r8, str._home_m0hx_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.29.11_src_windows_disk.rs
mov edx, 0x20
mov rcx, rbx
call fcn.140006bf0
call fcn.1400057d0
lea rcx, str.assertion_failed:_index___self.range.len___home_m0hx_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_1.10.0_src_range.rs
lea r8, [0x140075f80]
mov edx, 0x2b
call fcn.1400070b0
mov ecx, 1
mov rdx, rbx
call fcn.1400057b0
mov ecx, 8
mov edx, 0x28
call fcn.140005810
lea rax, [0x140079590]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_std_src_threadlocal.rs
lea r9, [0x140079600]
lea r8, [rsp + 0x2a0]
mov edx, 0x46
call fcn.140007fe0
int3