Function at 0x140062b94
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, 0x4a8
movaps xmmword [rsp + 0x490], xmm6
mov rsi, rdx
mov r15, rcx
mov rbx, qword [rsp + 0x528]
mov r14d, dword [rsp + 0x518]
mov rax, qword [rsp + 0x510]
mov qword [rsp + 0x158], rdx
mov qword [rsp + 0x1c8], rax
shr rsi, 1
cmp rsi, rax
jae 0x140063306
mov edi, dword [rsp + 0x520]
cmp r14d, edi
jae 0x14006331f
mov qword [rsp + 0x128], r15
mov r15, qword [rbx]
mov esi, 8
lea r13, [rsp + 0x40]
xorps xmm6, xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0xc0], r15
mov eax, dword [r15]
bt eax, r14d
jae 0x14006327a
lea ebx, [r14 + 0x41]
mov word [rsp + 0x40], bx
mov dword [rsp + 0x42], 0x5c003a
mov word [rsp + 0x46], 0
mov rcx, r13
call sub.KERNEL32.dll_GetDriveTypeW
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x14006327a
mov r8d, 0x20a
lea r12, [rsp + 0x280]
mov rcx, r12
xor edx, edx
call fcn.140082b20
movaps xmmword [rsp + 0x220], xmm6
movaps xmmword [rsp + 0x210], xmm6
movaps xmmword [rsp + 0x200], xmm6
movaps xmmword [rsp + 0x1f0], xmm6
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x38], 0x20
mov rcx, r13
mov rdx, r12
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x14006327a
mov eax, 0x20a
xor ecx, ecx
mov qword [rsp + 0xc8], rsi
cmp word [rsp + rcx*2 + 0x280], 0
je 0x140062cfe
inc rcx
add rax, 0xfffffffffffffffe
jne 0x140062ce3
mov ecx, 0x105
jmp 0x140062d0b
cmp rcx, 0x106
jae 0x1400636a8
lea rax, [rsp + rcx*2]
add rax, 0x280
lea rcx, [rsp + 0x280]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
mov word [rsp + 0x78], 0
xor eax, eax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], 1
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x68]
call fcn.14005f8c2
mov rsi, qword [rsp + 0xd0]
mov r12, qword [rsp + 0xd8]
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x60], rax
mov eax, 0x40
xor r13d, r13d
cmp word [rsp + r13*2 + 0x1f0], 0
je 0x140062da0
inc r13
add rax, 0xfffffffffffffffe
jne 0x140062d83
mov r13d, 0x20
jmp 0x140062db3
cmp r13, 0x21
jae 0x140063694
test r13, r13
je 0x14006300e
mov al, byte [0x1400cdcc0]
xor ecx, ecx
mov rdx, r13
call fcn.14005b1d0
test rax, rax
je 0x140063687
mov r15, rax
xor eax, eax
mov cl, byte [rsp + rax*2 + 0x1f0]
mov byte [r15 + rax], cl
inc rax
cmp r13, rax
jne 0x140062dd1
mov dword [rsp + 0x48], 0
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x11a], rax
mov word [rsp + 0x122], bx
mov dword [rsp + 0x124], 0x3a
mov qword [rsp + 0x30], 0
mov 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 0x140062fb3
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xd0], rax
lea rcx, [rsp + 0x40]
xor edx, edx
lea r8, [rsp + 0x68]
lea r9, [rsp + 0xd0]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140062fae
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x140062fae
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x148], rax
mov qword [rsp + 0x16c], 7
mov byte [rsp + 0x174], 0
xor eax, eax
mov dword [rsp + 0x110], eax
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x4c], eax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x108]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], reloc.SHLWAPI.dll_SHCreateMemStream
mov rcx, rbx
mov edx, 0x2d1400
lea r8, [rsp + 0x16c]
mov r9d, reloc.SHLWAPI.dll_SHCreateMemStream
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edi, edi
cmp byte [rsp + 0x110], 0
sete dil
cmp dword [rsp + 0x4c], 0xc
mov ecx, 2
cmovne rdi, rcx
test eax, eax
cmove rdi, rcx
mov r8, qword [rsp + 0x60]
test r8, r8
js 0x1400636c8
mov eax, 1
je 0x140062f64
mov al, byte [0x1400cdcc0]
xor ecx, ecx
mov rdx, r8
call fcn.14005b1d0
mov r8, qword [rsp + 0x60]
test rax, rax
je 0x1400636e5
mov qword [rsp + 0x140], rax
mov rcx, rax
mov rdx, r12
call fcn.140082480
test r13, r13
mov qword [rsp + 0x130], r12
je 0x140063022
mov al, byte [0x1400cdcc0]
xor ecx, ecx
mov rdx, r13
call fcn.14005b1d0
test rax, rax
je 0x140063687
mov qword [rsp + 0xb8], r13
jmp 0x140063033
mov rcx, rbx
jmp 0x140062fba
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x48], 0
jne 0x140062fd9
mov rcx, qword [0x1400cdc50]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
mov r15, qword [rsp + 0xc0]
lea r13, [rsp + 0x40]
mov rsi, qword [rsp + 0xc8]
je 0x14006327a
mov rcx, qword [0x1400cdc50]
xor edx, edx
mov r8, r12
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14006327a
mov r15d, 1
mov al, 1
mov dword [rsp + 0x48], eax
xor r13d, r13d
jmp 0x140062dec
mov qword [rsp + 0xb8], 0
mov eax, 1
mov qword [rsp + 0x138], rax
mov rcx, rax
mov rdx, r15
mov r8, r13
call fcn.140082480
mov al, byte [0x1400cdcc0]
mov edx, 8
xor ecx, ecx
call fcn.14005b1d0
test rax, rax
je 0x1400636b9
mov r12, rax
cmp ebp, 2
sete bpl
mov rax, qword [rsp + 0x40]
mov qword [r12], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x46]
mov qword [rsp + 0x70], rax
mov word [rsp + 0x78], 0
xor eax, eax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], 1
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x68]
call fcn.14005f8c2
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x1e0], rax
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x1d0], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [rsp + 0x48], 0
jne 0x140063104
mov rcx, qword [0x1400cdc50]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
je 0x140063120
mov rcx, qword [0x1400cdc50]
xor edx, edx
mov r8, qword [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x280], rcx
mov r9, qword [rsp + 0xc8]
mov qword [rsp + 0x288], r9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x290], rax
cmp rax, rcx
mov r15, qword [rsp + 0xc0]
jne 0x14006316c
lea rcx, [rsp + 0x280]
call fcn.14005f39c
mov r9, qword [rsp + 0x288]
mov r8, qword [rsp + 0x50]
lea rax, [r8 + r8*8]
shl rax, 4
mov qword [r9 + rax], rdi
mov qword [r9 + rax + 8], 0xffffffffffffffff
mov rcx, qword [rsp + 0x60]
mov qword [r9 + rax + 0x10], rcx
mov rdx, qword [rsp + 0x140]
mov qword [r9 + rax + 0x18], rdx
mov qword [r9 + rax + 0x20], rcx
mov byte [r9 + rax + 0x28], 0
mov ecx, dword [rsp + 0x1f0]
mov edx, dword [rsp + 0x1f3]
mov dword [r9 + rax + 0x29], ecx
mov dword [r9 + rax + 0x2c], edx
mov rcx, qword [rsp + 0xb8]
mov qword [r9 + rax + 0x30], rcx
mov rcx, qword [rsp + 0x138]
mov qword [r9 + rax + 0x38], rcx
mov qword [r9 + rax + 0x40], r13
mov ecx, 4
mov qword [r9 + rax + 0x48], rcx
mov qword [r9 + rax + 0x50], r12
mov qword [r9 + rax + 0x58], rcx
movaps xmm0, xmmword [rsp + 0x1d0]
movups xmmword [r9 + rax + 0x60], xmm0
mov rcx, qword [rsp + 0x1e0]
mov qword [r9 + rax + 0x70], rcx
mov rcx, qword [rsp + 0x150]
mov qword [r9 + rax + 0x78], rcx
mov rcx, qword [rsp + 0x148]
mov qword [r9 + rax + 0x80], rcx
mov byte [r9 + rax + 0x88], bpl
mov ecx, dword [rsp + 0xd0]
mov edx, dword [rsp + 0xd3]
mov dword [r9 + rax + 0x8c], edx
mov dword [r9 + rax + 0x89], ecx
inc r8
mov qword [rsp + 0x50], r8
mov rax, qword [rsp + 0x280]
mov qword [rsp + 0x58], rax
mov rsi, qword [rsp + 0x288]
mov edi, dword [rsp + 0x520]
lea r13, [rsp + 0x40]
inc r14d
cmp r14d, edi
jne 0x140062c2b
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x288], rsi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x290], rax
test rax, rax
mov r15, qword [rsp + 0x128]
je 0x14006333d
mov al, byte [0x1400cdcc0]
mov edx, 0x28
xor ecx, ecx
call fcn.14005b1d0
test rax, rax
je 0x1400636f2
mov rcx, qword [rsp + 0x290]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x280]
movups xmmword [rax], xmm0
xorps xmm0, xmm0
movups xmmword [rax + 0x18], xmm0
mov qword [r15], rax
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], 1
jmp 0x140063557
mov rdi, r9
test r8b, r8b
je 0x14006335e
call fcn.140030f42
shr rdi, 1
cmp rax, rdi
cmova rdi, rax
jmp 0x14006336a
xor eax, eax
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x288], 8
mov qword [rsp + 0x290], rax
xorps xmm0, xmm0
movups xmmword [r15], xmm0
mov qword [r15 + 0x10], 0
lea rcx, [rsp + 0x280]
call fcn.14005f612
jmp 0x140063557
test rdi, rdi
je 0x140062be9
shr rdi, 1
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x160], rsi
xor eax, eax
mov edx, dword [rsp + 0x520]
mov ecx, edx
sub ecx, r14d
cmovb ecx, eax
cmp rsi, rcx
ja 0x1400636cd
add esi, r14d
lea rax, [rsp + 0x158]
mov qword [rsp + 0x178], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x180], rax
lea rcx, [rsp + 0x1c0]
mov qword [rsp + 0x188], rcx
mov qword [rsp + 0x190], rbx
mov dword [rsp + 0x198], esi
mov dword [rsp + reloc.COMCTL32.dll_RemoveWindowSubclass], edx
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x1a8], rcx
mov qword [rsp + 0x1b0], rbx
mov dword [rsp + 0x1b8], r14d
mov dword [rsp + 0x1bc], esi
lea rcx, [0x14005f740]
call fcn.14002f2a2
test rax, rax
jne 0x140063446
call fcn.14002f603
mov rsi, qword [rax]
lea rbx, [rsi + 0x80]
lea rcx, [0x14005f740]
call fcn.14002f2a2
test rax, rax
je 0x140063573
cmp qword [rax + 0x110], rsi
jne 0x140063667
lea rcx, [rsp + 0x280]
lea rdx, [rsp + 0x178]
mov r8, rax
xor r9d, r9d
call fcn.140062786
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [rsp + 0x280]
movaps xmmword [rsp + 0x80], xmm0
movups xmm0, xmmword [rsp + 0x298]
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x2a8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x1400634fc
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], 0
test rcx, rcx
je 0x140063527
mov qword [rax + 0x18], rcx
mov qword [rcx + 0x20], rax
xorps xmm0, xmm0
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
movups xmmword [rsp + 0xa8], xmm0
mov qword [rsp + 0x88], rax
add qword [rsp + 0x90], rcx
jmp 0x140063527
xor eax, eax
mov rcx, qword [rsp + rax*8 + 0x80]
mov rdx, qword [rsp + rax*8 + 0xa0]
mov qword [rsp + rax*8 + 0x80], rdx
mov qword [rsp + rax*8 + 0xa0], rcx
inc rax
cmp rax, 3
jne 0x1400634fe
mov rax, qword [rsp + 0x90]
mov qword [r15 + 0x10], rax
mov rax, qword [rsp + 0x80]
mov qword [r15], rax
mov rax, qword [rsp + 0x88]
mov qword [r15 + 8], rax
lea rcx, [rsp + 0xa0]
call fcn.140063729
movaps xmm6, xmmword [rsp + 0x490]
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x1400cdcc4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
test byte [rax + 0x28], 1
jne 0x1400635b7
mov eax, dword [0x1400cdcc4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov dword [rax + 0x28], 1
mov qword [rax + 0x2c], 0
mov eax, dword [0x1400cdcc4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x2c]
lea rax, [rsp + 0x1f8]
mov qword [rax - 8], rcx
lea rsi, [rsp + 0x178]
mov ecx, 9
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
mov qword [rax + 0x48], 0
lea rdx, [0x14006399f]
lea rsi, [rsp + 0x1f0]
mov rcx, rbx
mov r8, rsi
call fcn.140030d4a
mov rcx, qword [rsi]
call fcn.14002f559
lea rcx, [rsp + 0x280]
mov r8d, 0x88
mov rdx, rsi
call fcn.140082480
lea rsi, [rsp + 0x2d0]
lea rdi, [rsp + 0xd8]
mov rcx, rdi
mov rdx, rsi
call fcn.14005f6ec
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movaps xmmword [rsi - 0x50], xmm0
movaps xmmword [rsi - 0x40], xmm1
movaps xmmword [rsi - 0x30], xmm2
jmp 0x140063461
lea rcx, [rsp + 0x280]
lea r9, [rsp + 0x178]
mov rdx, rbx
mov r8, rax
call fcn.14008714f
jmp 0x140063461
mov ecx, 1
mov rdx, r13
call fcn.140083a40
lea r8, str.C:UsersMain.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x20
mov rcx, r13
call fcn.140083c30
lea r8, str.C:UsersMain.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x105
call fcn.140083c30
mov ecx, 2
mov edx, 8
call fcn.140083a40
call fcn.14001f160
lea rcx, str.assertion_failed:_index___self.range.len__C:UsersMain.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rayon_1.10.0_src_range.rs
lea r8, str.S_n_v_
mov edx, 0x2b
call fcn.140083ca0
mov ecx, 1
mov rdx, r8
call fcn.140083a40
mov ecx, 8
mov edx, 0x28
call fcn.140083a60
int3