Function at 0x140165c28
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, 0x468
movaps xmmword [rsp + 0x450], xmm6
mov r12, rdx
mov r14, rcx
mov r15, qword [rsp + 0x4e8]
mov edi, dword [rsp + 0x4e0]
mov ebx, dword [rsp + 0x4d8]
mov rax, qword [rsp + 0x4d0]
mov qword [rsp + 0x60], rdx
lea r13, [rsp + 0x230]
mov qword [r13], r9
mov qword [r13 + 8], rax
mov rcx, r13
call fcn.140162d44
test al, al
je 0x140165d10
shr r12, 1
mov qword [rsp + 0x98], r12
xor eax, eax
mov ecx, edi
sub ecx, ebx
cmovb ecx, eax
cmp r12, rcx
ja 0x1401666b8
add r12d, ebx
call fcn.1400e8a9b
test rax, rax
je 0x1401663b9
lea rdx, [rsp + 0x240]
mov dword [rdx], ebx
mov dword [rdx + 4], r12d
lea rcx, [rsp + 0x98]
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r15
mov dword [rdx + 0x20], r12d
mov dword [rdx + 0x24], edi
lea rbp, [rsp + 0x60]
mov qword [rdx + 0x28], rbp
mov qword [rdx + 0x30], rcx
mov qword [rdx + 0x38], r13
mov qword [rdx + 0x40], r15
lea rcx, [rsp + 0xb0]
mov r8, rax
xor r9d, r9d
call fcn.140166779
jmp 0x14016661c
mov eax, 8
mov qword [rsp + 0x88], rax
lea rsi, [rsp + 0x48]
lea rbp, [rsp + 0x240]
xorps xmm6, xmm6
lea r13, [rsp + 0xe0]
xor eax, eax
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x50], r14
cmp ebx, edi
jae 0x140166309
lea ecx, [rbx + 1]
mov rax, qword [r15]
mov eax, dword [rax]
bt eax, ebx
jae 0x140165e21
mov dword [rsp + 0x44], ecx
add ebx, 0x41
mov word [rsp + 0x48], bx
mov dword [rsp + 0x4a], 0x5c003a
and word [rsp + 0x4e], 0
mov rcx, rsi
call sub.KERNEL32.dll_GetDriveTypeW
mov r12d, eax
lea eax, [r12 - 4]
cmp eax, 0xfffffffe
jb 0x140165e0a
mov r8d, 0x20a
mov rcx, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movaps xmmword [rsp + 0x110], xmm6
movaps xmmword [rsp + 0x100], xmm6
movaps xmmword [rsp + 0xf0], xmm6
movaps xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0x30], r13
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x38], 0x20
mov rcx, rsi
mov rdx, rbp
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x140165e0a
xor r8d, r8d
cmp r8, 0x105
je 0x140165e34
cmp word [rsp + r8*2 + 0x240], 0
je 0x140165e3a
inc r8
jmp 0x140165df0
mov qword [rsp + 0x1b0], 3
mov eax, dword [rsp + 0x44]
mov ebx, eax
jmp 0x140165d4b
mov qword [rsp + 0x1b0], 3
mov ebx, ecx
jmp 0x140165d4b
mov r8d, 0x105
mov edx, 0x105
mov rcx, rbp
lea r9, str.C:Users_root.cargo_registry_srcgithub.com_1ecc6299db9ec823_sysinfo_0.24.7_srcwindowsdisk.rs
call fcn.140163830
mov r8, rdx
lea rcx, [rsp + 0x98]
mov rdx, rax
call fcn.140163177
mov rbp, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xa8]
xor r8d, r8d
mov qword [rsp + 0x90], rax
cmp r8, 0x20
je 0x140165e93
cmp word [rsp + r8*2 + 0xe0], 0
je 0x140165e99
inc r8
jmp 0x140165e7c
mov r8d, 0x20
mov edx, 0x20
mov rcx, r13
lea r9, str.C:Users_root.cargo_registry_srcgithub.com_1ecc6299db9ec823_sysinfo_0.24.7_srcwindowsdisk.rs
call fcn.140163830
mov rsi, rax
mov rdi, rdx
mov rcx, rdx
call fcn.1400e77e3
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rdx
and qword [rsp + 0xc0], 0
lea rcx, [rsp + 0xb0]
mov rdx, rdi
call fcn.1401bbd4d
mov r13, qword [rsp + 0xb8]
mov r15, qword [rsp + 0xc0]
add rdi, rdi
xor eax, eax
cmp rdi, rax
je 0x140165f0f
mov cl, byte [rsi + rax]
mov byte [r13 + r15], cl
inc r15
add rax, 2
jmp 0x140165ef9
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x122], rax
mov word [rsp + 0x12a], bx
mov dword [rsp + 0x12c], 0x3a
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x122]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14016623d
mov rsi, rax
and qword [rsp + 0x68], 0
and qword [rsp + 0x150], 0
lea rcx, [rsp + 0x48]
xor edx, edx
lea r8, [rsp + 0x68]
lea r9, [rsp + 0x150]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140166226
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140166226
mov rcx, qword [rsp + 0x150]
mov qword [rsp + 0x138], rcx
and dword [rsp + 0x70], 0
mov qword [rsp + 0x140], 8
and qword [rsp + 0x68], 0
mov byte [rsp + 0x148], 0
and dword [rsp + 0x5c], 0
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
and qword [rsp + 0x38], 0
mov dword [rsp + 0x28], recvfrom
mov rcx, rsi
mov edx, 0x2d1400
lea r8, [rsp + 0x140]
mov r9d, recvfrom
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor r14d, r14d
cmp byte [rsp + 0x70], 0
setne r14b
cmp dword [rsp + 0x5c], 0xc
mov ecx, 2
cmovne r14, rcx
test eax, eax
cmove r14, rcx
lea rcx, [rsp + 0x150]
mov rdx, rbp
mov r8, qword [rsp + 0x90]
call fcn.140161850
mov rcx, r15
call fcn.1400e77e3
mov rbp, rax
mov rbx, rdx
mov rcx, rdx
mov rdx, r13
mov r8, r15
call fcn.1403318a0
mov ecx, 4
call fcn.1401413b9
mov qword [rsp + 0x90], rax
mov rdi, rdx
mov rax, qword [rsp + 0x48]
mov qword [rdx], rax
mov edx, 4
mov r8d, 3
lea rcx, [rsp + 0x48]
lea r9, str.C:Users_root.cargo_registry_srcgithub.com_1ecc6299db9ec823_sysinfo_0.24.7_srcwindowsdisk.rs
call fcn.140163830
mov r8, rdx
lea r13, [rsp + 0x200]
mov rcx, r13
mov rdx, rax
call fcn.140163177
or qword [rsp + 0x1b8], 0xffffffffffffffff
cmp r12d, 2
movups xmm0, xmmword [rsp + 0x150]
movups xmm1, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x1a0], xmm1
movaps xmmword [rsp + 0x190], xmm0
mov qword [rsp + 0x1b0], r14
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x1c8], rax
mov qword [rsp + 0x1d0], rbp
mov qword [rsp + 0x1d8], rbx
mov qword [rsp + 0x1e0], r15
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x1e8], rax
mov qword [rsp + 0x1f0], rdi
mov qword [rsp + 0x1f8], 4
sete byte [rsp + 0x218]
mov eax, dword [rsp + 0x150]
mov ecx, dword [rsp + 0x153]
mov dword [r13 + 0x1c], ecx
mov dword [r13 + 0x19], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xb8]
call fcn.140059ae6
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rsp + 0xa0]
call fcn.140059ae6
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 0x240], rdx
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x248], rax
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0x250], rbx
cmp rbx, rdx
jne 0x1401662a5
lea rbp, [rsp + 0x240]
mov rcx, rbp
call fcn.14016296a
mov rbx, qword [rsp + 0x250]
mov rax, qword [rsp + 0x240]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x248]
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x4e8]
mov edi, dword [rsp + 0x4e0]
jmp 0x1401662c1
mov qword [rsp + 0x1b0], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140166256
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x1b0], 3
mov rcx, qword [rsp + 0xb0]
mov rdx, r13
call fcn.140059ae6
mov rcx, qword [rsp + 0x98]
mov rdx, rbp
call fcn.140059ae6
mov eax, dword [rsp + 0x44]
mov ebx, eax
mov r15, qword [rsp + 0x4e8]
mov edi, dword [rsp + 0x4e0]
lea rsi, [rsp + 0x48]
lea rbp, [rsp + 0x240]
lea r13, [rsp + 0xe0]
jmp 0x140165d4b
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x4e8]
mov edi, dword [rsp + 0x4e0]
lea rbp, [rsp + 0x240]
lea r13, [rsp + 0xe0]
mov esi, dword [rsp + 0x44]
imul rcx, rbx, 0x90
mov qword [rsp + 0x88], rax
add rcx, rax
mov r8d, 0x90
lea rdx, [rsp + 0x190]
call sub.VCRUNTIME140.dll_memmove
inc rbx
mov qword [rsp + 0x80], rbx
mov ebx, esi
lea rsi, [rsp + 0x48]
jmp 0x140165d4b
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf0], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x190], xmm0
and qword [rsp + 0x1a0], 0
test rax, rax
je 0x14016639e
mov rax, qword [rsp + 0xf0]
lea rdx, [rsp + 0x240]
mov qword [rdx + 0x10], rax
mov rax, qword [rsp + 0xe0]
mov qword [rdx], rax
mov rax, qword [rsp + 0xe8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x190]
mov rcx, rsi
call fcn.140162a3f
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
jmp 0x14016669c
movups xmmword [r14], xmm0
and qword [r14 + 0x10], 0
lea rcx, [rsp + 0xe0]
call fcn.140162aad
jmp 0x14016669c
mov qword [rsp + 0x50], r14
call fcn.1400e78af
mov rbp, qword [rax]
lea r14, [rbp + 0x80]
call fcn.1400e8a9b
test rax, rax
je 0x1401664cd
mov rsi, rax
cmp qword [rax + 0x140], rbp
je 0x1401665bf
mov rax, qword [rsi + 0x130]
lea rbp, [rsp + 0x190]
mov dword [rbp + 0x20], ebx
mov dword [rbp + 0x24], r12d
lea rcx, [rsp + 0x98]
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r15
mov dword [rbp + 0x40], r12d
mov edx, dword [rsp + 0x4e0]
mov dword [rbp + 0x44], edx
lea rdx, [rsp + 0x60]
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x60], r15
and qword [rbp], 0
mov rcx, rsi
add rcx, 0x140
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rcx
mov byte [rbp + 0x18], 1
and qword [rbp + 0x68], 0
lea r8, [0x140166a82]
mov rcx, r14
mov rdx, rbp
call fcn.1400e8b22
mov rcx, rsi
mov rdx, rbp
call fcn.140162e79
lea rsi, [rsp + 0x240]
mov r8d, 0xa0
mov rcx, rsi
mov rdx, rbp
call fcn.1403318a0
mov rax, qword [rsi + 0x98]
lea rdx, [rsp + 0xe0]
mov qword [rdx + 0x30], rax
movups xmm0, xmmword [rsi + 0x68]
movups xmm1, xmmword [rsi + 0x78]
movups xmm2, xmmword [rsi + 0x88]
movaps xmmword [rdx + 0x20], xmm2
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea rcx, [rsp + 0xb0]
call fcn.140162c9e
jmp 0x140166617
xor ecx, ecx
call fcn.1400e8d5d
test rax, rax
je 0x1401666d2
lea rbp, [rsp + 0x190]
mov dword [rbp + 8], ebx
mov dword [rbp + 0xc], r12d
lea rcx, [rsp + 0x98]
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], r15
mov dword [rbp + 0x28], r12d
mov edx, dword [rsp + 0x4e0]
mov dword [rbp + 0x2c], edx
lea rdx, [rsp + 0x60]
mov qword [rbp + 0x30], rdx
mov qword [rbp + 0x38], rcx
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], r15
mov qword [rbp], rax
and qword [rbp + 0x50], 0
lea r8, [0x140166c24]
mov rcx, r14
mov rdx, rbp
call fcn.1400e8b22
mov rcx, qword [rbp]
call fcn.1400e783e
lea rsi, [rsp + 0x240]
mov r8d, 0x88
mov rcx, rsi
mov rdx, rbp
call fcn.1403318a0
lea rdi, [rsp + 0x158]
mov rax, qword [rsi + 0x80]
lea rdx, [rsp + 0xe0]
mov qword [rdx + 0x30], rax
movups xmm0, xmmword [rsi + 0x50]
movups xmm1, xmmword [rsi + 0x60]
movups xmm2, xmmword [rsi + 0x70]
movaps xmmword [rdx + 0x20], xmm2
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
mov rcx, rdi
call fcn.140162c9e
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xd0], xmm2
jmp 0x140166617
lea rdx, [rsp + 0x240]
mov dword [rdx], ebx
mov dword [rdx + 4], r12d
lea rax, [rsp + 0x98]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r15
mov dword [rdx + 0x20], r12d
mov ecx, dword [rsp + 0x4e0]
mov dword [rdx + 0x24], ecx
lea rcx, [rsp + 0x60]
mov qword [rdx + 0x28], rcx
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x38], r13
mov qword [rdx + 0x40], r15
lea rcx, [rsp + 0xb0]
mov r8, rsi
xor r9d, r9d
call fcn.140166779
mov r14, qword [rsp + 0x50]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x160], rax
movaps xmm0, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x150], xmm0
mov rcx, qword [rsp + 0xd8]
mov qword [rsp + 0xf0], rcx
movups xmm1, xmmword [rsp + 0xc8]
movaps xmmword [rsp + 0xe0], xmm1
lea rsi, [rsp + 0x190]
mov qword [rsi + 0x10], rax
movaps xmmword [rsi], xmm0
lea rdi, [rsp + 0x240]
mov qword [rdi + 0x10], rcx
movaps xmmword [rdi], xmm1
mov rcx, rsi
mov rdx, rdi
call fcn.1401658fd
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
mov rcx, rdi
call fcn.140166700
movaps xmm6, xmmword [rsp + 0x450]
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_index___self.range.len__C:Users_root.cargo_registry_srcgithub.com_1ecc6299db9ec823_rayon_1.8.0_src_range.rs
lea r8, [0x1403a1cf0]
mov edx, 0x2b
call fcn.140332d10
ud2
lea rax, [0x140412428]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74library_std_src_threadlocal.rs
lea r9, [0x14040bc78]
lea r8, [rsp + 0x240]
mov edx, 0x46
call fcn.140333090
ud2