Function at 0x140128f49
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, 0x498
movaps xmmword [rsp + 0x480], xmm6
mov rsi, rdx
mov rbx, rcx
mov r15, qword [rsp + 0x518]
mov r13d, dword [rsp + 0x510]
mov r14d, dword [rsp + 0x508]
mov rax, qword [rsp + 0x500]
mov qword [rsp + 0x118], rdx
lea rdi, [rsp + 0x260]
mov qword [rdi], r9
mov qword [rdi + 8], rax
mov rcx, rdi
call fcn.1401298d4
test al, al
je 0x140129067
shr rsi, 1
mov qword [rsp + 0x120], rsi
xor eax, eax
mov ecx, r13d
sub ecx, r14d
cmovb ecx, eax
cmp rsi, rcx
ja 0x14012988a
add esi, r14d
lea rax, [rsp + 0x118]
mov qword [rsp + 0x1d8], rax
lea rax, [rsp + 0x120]
mov qword [rsp + 0x1e0], rax
mov qword [rsp + 0x1e8], rdi
mov qword [rsp + 0x1f0], r15
mov dword [rsp + 0x1f8], esi
mov dword [rsp + 0x1fc], r13d
mov qword [rsp + 0x200], rax
mov qword [rsp + 0x208], rdi
mov qword [rsp + 0x210], r15
mov dword [rsp + 0x218], r14d
mov dword [rsp + 0x21c], esi
call fcn.140128b1c
test rax, rax
je 0x140129612
lea rcx, [rsp + 0x148]
lea rdx, [rsp + 0x1d8]
mov r8, rax
xor r9d, r9d
call fcn.140128b28
jmp 0x140129711
mov qword [rsp + 0xd0], rbx
mov rsi, qword [r15]
mov ebx, 8
lea r15, [rsp + 0x44]
xorps xmm6, xmm6
xor eax, eax
mov qword [rsp + 0x78], rax
xor r12d, r12d
mov qword [rsp + 0xd8], rsi
cmp r14d, r13d
jae 0x14012958a
mov eax, dword [rsi]
bt eax, r14d
jae 0x140129564
lea ebp, [r14 + 0x41]
mov word [rsp + 0x44], bp
mov dword [rsp + 0x46], 0x5c003a
and word [rsp + 0x4a], 0
mov rcx, r15
call sub.KERNEL32.dll_GetDriveTypeW
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x14012916c
mov dword [rsp + 0x8c], eax
mov rdi, r12
mov r8d, 0x20a
lea r12, [rsp + 0x270]
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movaps xmmword [rsp + 0x250], xmm6
movaps xmmword [rsp + 0x240], xmm6
movaps xmmword [rsp + 0x230], xmm6
movaps xmmword [rsp + 0x220], xmm6
lea rax, [rsp + 0x220]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x38], 0x20
mov rcx, r15
mov rdx, r12
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x14012917d
mov eax, 0x20a
xor r8d, r8d
mov r12, rdi
test rax, rax
je 0x140129191
cmp word [rsp + r8*2 + 0x270], 0
je 0x140129199
inc r8
add rax, 0xfffffffffffffffe
jmp 0x140129152
mov qword [rsp + 0x148], 3
jmp 0x1401294f5
mov qword [rsp + 0x148], 3
mov r12, rdi
jmp 0x1401294f5
mov r8d, 0x105
jmp 0x1401291a6
cmp r8, 0x106
jae 0x140129873
lea rcx, [rsp + 0xe8]
lea rdx, [rsp + 0x270]
call fcn.140129917
mov rcx, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xf8]
mov eax, 0x40
xor r13d, r13d
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0x110], rcx
test rax, rax
je 0x1401291fd
cmp word [rsp + r13*2 + 0x220], 0
je 0x140129205
inc r13
add rax, 0xfffffffffffffffe
jmp 0x1401291e3
mov r13d, 0x20
jmp 0x14012920f
cmp r13, 0x21
jae 0x14012985f
lea rcx, [rsp + 0x50]
mov rdx, r13
xor r8d, r8d
call fcn.14005b4b9
cmp qword [rsp + 0x50], 0
mov r15, qword [rsp + 0x58]
jne 0x140129852
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rbx
and qword [rsp + 0x60], 0
cmp r13, r15
ja 0x14012956c
mov eax, 0
mov esi, 0
test r13, r13
je 0x14012927c
mov rsi, rax
xor eax, eax
mov cl, byte [rsp + rax*2 + 0x220]
mov byte [rbx + rsi], cl
inc rsi
inc rax
cmp r13, rax
jne 0x140129262
mov r15, qword [rsp + 0x50]
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], bp
mov dword [rsp + 0x5a], 0x3a
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14012949f
mov r13, rax
and qword [rsp + 0x80], 0
and qword [rsp + 0x68], 0
lea rcx, [rsp + 0x44]
xor edx, edx
lea r8, [rsp + 0x80]
lea r9, [rsp + 0x68]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140129488
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x140129488
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x108], rcx
and dword [rsp + 0x70], 0
mov qword [rsp + 0x80], 7
and qword [rsp + 0x68], 0
mov byte [rsp + 0x88], 0
and dword [rsp + 0x4c], 0
mov qword [rsp + 0x100], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
and qword [rsp + 0x38], 0
mov dword [rsp + 0x28], listen
mov rcx, r13
mov edx, 0x2d1400
lea r8, [rsp + 0x80]
mov r9d, listen
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ebp, ebp
cmp byte [rsp + 0x70], 0
sete bpl
cmp dword [rsp + 0x4c], 0xc
mov ecx, 2
cmovne rbp, rcx
test eax, eax
cmove rbp, rcx
lea rcx, [rsp + 0x158]
mov rdx, qword [rsp + 0x110]
mov r8, rdi
call fcn.1401216b0
lea rcx, [rsp + 0x178]
mov rdx, rbx
mov r8, rsi
call fcn.140129aaf
mov r8d, 4
lea rcx, [rsp + 0x190]
lea rsi, [rsp + 0x44]
mov rdx, rsi
call fcn.140129b18
mov r8d, 3
lea rcx, [rsp + 0x1a8]
mov rdx, rsi
call fcn.140129917
or qword [rsp + 0x150], 0xffffffffffffffff
cmp dword [rsp + 0x8c], 2
mov qword [rsp + 0x148], rbp
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x1c8], rax
sete byte [rsp + 0x1d0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
mov r15, rsi
mov rdx, rbx
call fcn.1400a33ee
mov rcx, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xf0]
call fcn.1400a33ee
mov r13d, dword [rsp + 0x510]
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe0]
jmp 0x1401294f5
mov qword [rsp + 0x148], 3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401294b8
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x148], 3
mov rcx, r15
mov rdx, rbx
call fcn.1400a33ee
mov rcx, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xf0]
call fcn.1400a33ee
mov r13d, dword [rsp + 0x510]
mov rsi, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xe0]
lea r15, [rsp + 0x44]
cmp qword [rsp + 0x148], 3
je 0x140129564
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x270], rax
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x280], r12
cmp r12, rax
jne 0x140129544
lea rcx, [rsp + 0x270]
call fcn.1401284da
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0x78], rax
mov rbx, qword [rsp + 0x278]
imul rcx, r12, 0x90
add rcx, rbx
mov r8d, 0x90
lea rdx, [rsp + 0x148]
call sub.VCRUNTIME140.dll_memcpy
inc r12
inc r14d
jmp 0x140129091
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8, r13
call fcn.1402dcaf3
mov rbx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x60]
jmp 0x14012925d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x130], rbx
mov qword [rsp + 0x138], r12
mov rax, qword [rsp + 0x518]
mov qword [rsp + 0x140], rax
test r12, r12
je 0x140129816
mov ecx, 8
mov edx, 0x28
call fcn.140057a2b
test rax, rax
mov rdx, qword [rsp + 0xd0]
je 0x1401298bf
mov rcx, qword [rsp + 0x138]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x128]
movups xmmword [rax], xmm0
xorps xmm0, xmm0
movups xmmword [rax + 0x18], xmm0
mov qword [rdx], rax
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], 1
jmp 0x140129836
call case.0x1400c772a.39
mov rax, qword [rax]
sub rax, 0xffffffffffffff80
mov ecx, dword [0x14041b1b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp dword [rcx + 0x38], 0
jne 0x14012965f
mov ecx, dword [0x14041b1b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov dword [rcx + 0x38], 1
and qword [rcx + 0x3c], 0
mov ecx, dword [0x14041b1b8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
lea rcx, [rcx + 0x3c]
lea rdx, [rsp + 0x278]
mov qword [rdx - 8], rcx
lea rsi, [rsp + 0x1d8]
mov ecx, 9
mov rdi, rdx
rep movsq qword [rdi], qword [rsi]
and qword [rdx + 0x48], 0
lea rcx, [0x1401288f5]
lea rdx, [rsp + 0x148]
mov qword [rdx], rcx
lea rsi, [rsp + 0x270]
mov qword [rdx + 8], rsi
mov rcx, rax
call fcn.1400d35fe
mov rcx, qword [rsi]
call fcn.1400d2996
mov rax, qword [rsi + 0x50]
mov rcx, qword [rsi + 0x58]
mov rdx, qword [rsi + 0x60]
cmp rax, 1
jne 0x1401298a2
movups xmm0, xmmword [rsp + 0x2d8]
movups xmm1, xmmword [rsp + 0x2e8]
movups xmmword [rsp + 0x168], xmm1
movups xmmword [rsp + 0x158], xmm0
mov qword [rsp + 0x148], rcx
mov qword [rsp + 0x150], rdx
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x98], rax
movups xmm0, xmmword [rsp + 0x160]
movaps xmmword [rsp + 0xb0], xmm0
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x1401297e9
mov rcx, qword [rsp + 0xb0]
and qword [rsp + 0xb0], 0
test rcx, rcx
je 0x1401297b7
mov qword [rax + 0x18], rcx
mov qword [rcx + 0x20], rax
xorps xmm0, xmm0
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0xc0]
movups xmmword [rsp + 0xb8], xmm0
mov qword [rsp + 0x98], rax
add qword [rsp + 0xa0], rcx
mov rax, qword [rsp + 0xa0]
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x90]
mov qword [rbx], rax
mov rax, qword [rsp + 0x98]
mov qword [rbx + 8], rax
lea rcx, [rsp + 0xb0]
call fcn.140128a1a
jmp 0x140129836
xor eax, eax
cmp rax, 3
je 0x1401297b7
mov rcx, qword [rsp + rax*8 + 0x90]
mov rdx, qword [rsp + rax*8 + 0xb0]
mov qword [rsp + rax*8 + 0x90], rdx
mov qword [rsp + rax*8 + 0xb0], rcx
inc rax
jmp 0x1401297eb
xorps xmm0, xmm0
mov rax, qword [rsp + 0xd0]
movups xmmword [rax], xmm0
and qword [rax + 0x10], 0
lea rcx, [rsp + 0x128]
call fcn.140128855
movaps xmm6, xmmword [rsp + 0x480]
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0x60]
mov rcx, r15
call fcn.1402d9f90
lea r8, str.C:Userspc1.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x20
mov rcx, r13
call fcn.1402da4a0
lea rax, str.C:Userspc1.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x105
mov rcx, r8
mov r8, rax
call fcn.1402da4a0
lea rcx, str.assertion_failed:_index___self.range.len__C:Userspc1.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rayon_1.5.3_src_range.rs
lea r8, str.C4_
mov edx, 0x2b
call fcn.1402da510
test rax, rax
jne 0x1401298ce
lea rcx, [0x1403ab29e]
lea r8, str.C:Userspc1.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rayon_core_1.9.3_srcjob.rs
mov edx, 0x28
call fcn.1402da510
mov ecx, 8
mov edx, 0x28
call fcn.1402d9fb0
call fcn.1400d298c
int3