Function at 0x140049462
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, 0x578
movaps xmmword [rsp + 0x560], xmm6
mov rsi, rdx
mov qword [rsp + 0xb8], rcx
mov r14, qword [rsp + 0x5f8]
mov ebx, dword [rsp + 0x5f0]
mov r13d, dword [rsp + 0x5e8]
mov rax, qword [rsp + 0x5e0]
mov qword [rsp + 0x120], rdx
lea rdi, [rsp + 0x300]
mov qword [rdi], r9
mov qword [rdi + 8], rax
mov rcx, rdi
call fcn.14004548c
test al, al
je 0x1400495e9
shr rsi, 1
mov qword [rsp + 0x128], rsi
xor eax, eax
mov ecx, ebx
sub ecx, r13d
cmovb ecx, eax
cmp rsi, rcx
ja 0x140049f5d
add esi, r13d
lea rax, [rsp + 0x120]
mov qword [rsp + 0x1b8], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x1c0], rax
mov qword [rsp + 0x1c8], rdi
mov qword [rsp + 0x1d0], r14
mov dword [rsp + 0x1d8], esi
mov dword [rsp + 0x1dc], ebx
mov qword [rsp + 0x1e0], rax
mov qword [rsp + 0x1e8], rdi
mov qword [rsp + 0x1f0], r14
mov dword [rsp + 0x1f8], r13d
mov dword [rsp + 0x1fc], esi
call fcn.140013d53
test rax, rax
je 0x140049d1e
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x1b8]
mov r8, rax
xor r9d, r9d
call fcn.14004a159
mov rax, qword [rsp + 0x90]
lea rsi, [rsp + 0x310]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsi], xmm0
movups xmm0, xmmword [rsp + 0x98]
lea rdi, [rsp + 0x330]
movaps xmmword [rdi], xmm0
mov rax, qword [rsp + 0xa8]
mov qword [rdi + 0x10], rax
mov rcx, rsi
mov rdx, rdi
call fcn.140048106
mov rax, qword [rsi + 0x10]
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [rcx], xmm0
mov rcx, rdi
call fcn.1400451ef
jmp 0x140049e11
and qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 8
and qword [rsp + 0x90], 0
mov qword [rsp + 0x98], r14
mov rsi, qword [r14]
lea rdi, [rsp + 0x50]
lea r12, [rsp + 0x350]
xorps xmm6, xmm6
cmp r13d, ebx
jae 0x140049c2b
mov eax, dword [rsi]
bt eax, r13d
jae 0x14004999d
lea r15d, [r13 + 0x41]
mov word [rsp + 0x50], r15w
mov dword [rsp + 0x52], 0x5c003a
and word [rsp + 0x56], 0
mov rcx, rdi
call sub.kernel32.dll_GetDriveTypeW
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x14004999d
mov r8d, 0x20a
mov rcx, r12
xor edx, edx
call sub.msvcrt.dll_memset
movaps xmmword [rsp + 0x190], xmm6
movaps xmmword [rsp + 0x180], xmm6
movaps xmmword [rsp + 0x170], xmm6
movaps xmmword [rsp + 0x160], xmm6
lea rax, [rsp + 0x160]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x38], 0x20
mov rcx, rdi
mov rdx, r12
mov r8d, 0x105
xor r9d, r9d
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x14004999d
mov eax, 0x20a
xor r8d, r8d
test rax, rax
je 0x1400496ed
cmp word [rsp + r8*2 + 0x350], 0
je 0x1400496f5
inc r8
add rax, 0xfffffffffffffffe
jmp 0x1400496d3
mov r8d, 0x105
jmp 0x140049702
cmp r8, 0x106
jae 0x140049f1e
lea rcx, [rsp + 0xd8]
mov rdx, r12
call fcn.1400456f7
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x70], rax
mov eax, 0x40
xor ebx, ebx
test rax, rax
je 0x14004974c
cmp word [rsp + rbx*2 + 0x160], 0
je 0x140049753
inc rbx
add rax, 0xfffffffffffffffe
jmp 0x140049733
mov ebx, 0x20
jmp 0x14004975d
cmp rbx, 0x21
jae 0x140049f3f
lea rcx, [rsp + 0x58]
mov rdx, rbx
call fcn.140015349
cmp qword [rsp + 0x58], 0
mov r12, qword [rsp + 0x60]
jne 0x140049efc
mov r14, qword [rsp + 0x68]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r14
and qword [rsp + 0x68], 0
cmp rbx, r12
jbe 0x1400497b0
lea rcx, [rsp + 0x58]
xor edx, edx
mov r8, rbx
call fcn.14001166d
mov r14, qword [rsp + 0x60]
mov rax, qword [rsp + 0x68]
jmp 0x1400497bf
mov eax, 0
mov edi, 0
test rbx, rbx
je 0x1400497df
mov rdi, rax
xor eax, eax
mov cl, byte [rsp + rax*2 + 0x160]
mov byte [r14 + rdi], cl
inc rdi
inc rax
cmp rbx, rax
jne 0x1400497c4
mov r12, qword [rsp + 0x58]
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x102], rax
mov word [rsp + 0x10a], r15w
mov dword [rsp + 0x10c], 0x3a
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x102]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x140049955
mov r15, rax
and qword [rsp + 0xc0], 0
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x50]
xor edx, edx
lea r8, [rsp + 0xc0]
lea r9, [rsp + 0x58]
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140049950
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x140049950
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x110], rax
and dword [rsp + 0xf8], 0
mov qword [rsp + 0x134], 7
and qword [rsp + 0xf0], 0
mov byte [rsp + 0x13c], 0
and dword [rsp + 0x7c], 0
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
and qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
mov rcx, r15
mov edx, 0x2d1400
lea r8, [rsp + 0x134]
mov r9d, 0xc
call sub.kernel32.dll_DeviceIoControl
xor ebx, ebx
cmp byte [rsp + 0xf8], 0
sete bl
cmp dword [rsp + 0x7c], 0xc
mov ecx, 2
cmovne rbx, rcx
test eax, eax
cmove rbx, rcx
cmp qword [rsp + 0x70], 0
je 0x1400499e5
js 0x140049f75
mov al, byte [0x1403f6148]
xor ecx, ecx
mov rdx, qword [rsp + 0x70]
call fcn.1400417c0
test rax, rax
jne 0x1400499ea
jmp 0x140049f8c
mov rcx, r15
jmp 0x14004995c
mov rcx, 0xffffffffffffffff
call sub.kernel32.dll_CloseHandle
mov rcx, r12
mov rdx, r14
call fcn.14001203c
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
call fcn.14001203c
mov r14, qword [rsp + 0x5f8]
mov ebx, dword [rsp + 0x5f0]
lea rdi, [rsp + 0x50]
lea r12, [rsp + 0x350]
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x170], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x160], xmm0
inc r13d
movaps xmm0, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x90], rax
jmp 0x140049622
mov eax, 1
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rcx, rax
mov r8, qword [rsp + 0x70]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x1a0]
mov rdx, r14
mov r8, rdi
call fcn.140045925
mov r8d, 4
lea rcx, [rsp + 0xc0]
lea rdi, [rsp + 0x50]
mov rdx, rdi
call fcn.14004598b
mov r8d, 3
lea rcx, [rsp + 0x58]
mov rdx, rdi
call fcn.1400456f7
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x2f0], rax
movups xmm0, xmmword [rsp + 0x1a0]
movaps xmmword [rsp + 0x2e0], xmm0
movups xmm0, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0x2c0], xmm0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x2d0], rax
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x2a0], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x2b0], rax
mov rcx, r15
call sub.kernel32.dll_CloseHandle
mov rcx, r12
mov rdx, r14
call fcn.14001203c
mov rcx, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xe0]
call fcn.14001203c
or qword [rsp + 0x208], 0xffffffffffffffff
cmp ebp, 2
mov qword [rsp + 0x200], rbx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x210], rax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x218], rcx
mov qword [rsp + 0x220], rax
mov byte [rsp + 0x228], 0
mov eax, dword [rsp + 0x58]
mov ecx, dword [rsp + 0x5b]
lea rdx, [rsp + 0x229]
mov dword [rdx + 3], ecx
mov dword [rdx], eax
mov rax, qword [rsp + 0x2f0]
mov qword [rdx + 0x17], rax
movaps xmm0, xmmword [rsp + 0x2e0]
movups xmmword [rdx + 7], xmm0
mov rax, qword [rsp + 0x2d0]
mov qword [rdx + 0x2f], rax
movaps xmm0, xmmword [rsp + 0x2c0]
movups xmmword [rdx + 0x1f], xmm0
mov rax, qword [rsp + 0x2b0]
mov qword [rdx + 0x47], rax
movaps xmm0, xmmword [rsp + 0x2a0]
movups xmmword [rdx + 0x37], xmm0
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x278], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x280], rax
sete byte [rsp + 0x288]
mov eax, dword [rsp + 0xc0]
mov ecx, dword [rsp + 0xc3]
mov dword [rdx + 0x63], ecx
mov dword [rdx + 0x60], eax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x350], xmm0
mov rdi, qword [rsp + 0x90]
mov qword [rsp + 0x360], rdi
cmp rdi, qword [rsp + 0x350]
lea r12, [rsp + 0x350]
jne 0x140049bd5
mov rcx, r12
call fcn.140044bf2
imul rcx, rdi, 0x90
add rcx, qword [rsp + 0x358]
mov r8d, 0x90
lea rdx, [rsp + 0x200]
call sub.msvcrt.dll_memcpy
inc rdi
mov qword [rsp + 0x170], rdi
movaps xmm0, xmmword [rsp + 0x350]
movaps xmmword [rsp + 0x160], xmm0
mov r14, qword [rsp + 0x5f8]
mov ebx, dword [rsp + 0x5f0]
lea rdi, [rsp + 0x50]
jmp 0x1400499bd
mov qword [rsp + 0x98], r14
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x140], xmm0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x158], rax
and qword [rsp + 0x210], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x200], xmm0
cmp qword [rsp + 0x150], 0
je 0x140049df4
movups xmmword [rsp + 0x368], xmm0
movaps xmm0, xmmword [rsp + 0x140]
movaps xmmword [rsp + 0x350], xmm0
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x360], rax
lea rcx, [rsp + 0x218]
call fcn.14004512d
mov rcx, qword [rsp + 0x360]
mov qword [rax + 0x10], rcx
movaps xmm0, xmmword [rsp + 0x350]
movups xmmword [rax], xmm0
xorps xmm0, xmm0
movups xmmword [rax + 0x18], xmm0
mov qword [rsp + 0x200], rax
mov qword [rsp + 0x208], rax
mov eax, 1
mov qword [rsp + 0x210], rax
mov rcx, qword [rsp + 0xb8]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x200]
mov qword [rcx], rax
mov rax, qword [rsp + 0x208]
mov qword [rcx + 8], rax
jmp 0x140049e11
call fcn.1400155fa
mov rsi, qword [rax]
lea rbx, [rsi + 0x80]
call fcn.140013d53
test rax, rax
je 0x140049e2d
mov r14, rax
cmp qword [rax + 0x110], rsi
je 0x140049ee4
mov rax, r14
add rax, 0x110
mov rcx, qword [r14 + 0x100]
lea r8, [rsp + 0x200]
mov qword [r8 + 0x80], rax
and qword [r8 + 0x88], 0
mov qword [r8 + 0x90], rcx
mov byte [r8 + 0x98], 1
lea rsi, [rsp + 0x1b8]
mov ecx, 9
mov rdi, r8
rep movsq qword [rdi], qword [rsi]
lea rdi, [rsp + 0x248]
and qword [rdi], 0
lea rdx, [0x14004a40d]
mov rcx, rbx
call fcn.1400158fa
lea rdx, [rsp + 0x280]
mov rcx, r14
call fcn.140045478
lea rcx, [rsp + 0x350]
lea rdx, [rsp + 0x200]
mov r8d, 0xa0
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x398]
lea rcx, [rsp + 0x80]
call fcn.1400452e0
jmp 0x14004957d
mov rax, qword [rsp + 0xb8]
movups xmmword [rax], xmm0
and qword [rax + 0x10], 0
lea rcx, [rsp + 0x140]
call fcn.140001ce8
movaps xmm6, xmmword [rsp + 0x560]
add rsp, 0x578
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ecx, ecx
call fcn.140045655
test rax, rax
je 0x140049fad
lea rdi, [rsp + 0x208]
mov qword [rdi - 8], rax
lea rsi, [rsp + 0x1b8]
mov ecx, 9
rep movsq qword [rdi], qword [rsi]
lea rdi, [rsp + 0x250]
and qword [rdi], 0
lea rdx, [0x14004a625]
lea r8, [rsp + 0x200]
mov rcx, rbx
call fcn.1400158fa
mov rcx, qword [rsp + 0x200]
call fcn.1400154df
lea rcx, [rsp + 0x350]
lea rdx, [rsp + 0x200]
mov r8d, 0x88
call sub.msvcrt.dll_memcpy
lea rdx, [rsp + 0x3a0]
lea rsi, [rsp + 0x168]
mov rcx, rsi
call fcn.1400452e0
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x90], xmm1
movaps xmmword [rsp + 0xa0], xmm2
jmp 0x14004957d
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x1b8]
mov r8, r14
jmp 0x140049575
mov rax, qword [rsp + 0x5f8]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call fcn.140008e20
jmp 0x140049fab
mov qword [rsp + 0x98], r14
lea rax, str._home_anon_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.26.9_src_windows_disk.rs
mov edx, 0x105
mov rcx, r8
mov r8, rax
call fcn.14000a510
jmp 0x140049fab
mov qword [rsp + 0x98], r14
lea r8, str._home_anon_.cargo_registry_src_index.crates.io_6f17d22bba15001f_sysinfo_0.26.9_src_windows_disk.rs
mov edx, 0x20
mov rcx, rbx
call fcn.14000a510
jmp 0x140049fab
lea rcx, str.assertion_failed:_index___self.range.len___home_anon_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_1.10.0_src_range.rs
lea r8, [0x1403e7628]
mov edx, 0x2b
call fcn.14000a7f0
mov rax, qword [rsp + 0x5f8]
mov qword [rsp + 0x98], rax
call fcn.140008e40
jmp 0x140049fab
mov rax, qword [rsp + 0x5f8]
mov qword [rsp + 0x98], rax
mov ecx, 1
mov rdx, qword [rsp + 0x70]
call fcn.140008e20
ud2
lea rax, [0x1403eb5c0]
mov qword [rsp + 0x20], rax
lea rcx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_eeb90cda1969383f56a2637cbd3037bdf598841clibrary_std_src_threadlocal.rs
lea r9, [0x1403eb630]
lea r8, [rsp + 0x350]
mov edx, 0x46
call fcn.14000b6f0
mov r13, rax
mov rcx, rdi
call fcn.14004a5bc
jmp 0x14004a14b
mov rcx, r13
call fcn.14004fa70
call fcn.14000bac0
int3