Function at 0x140126358
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 rbx, rcx
mov r15, qword [rsp + 0x528]
mov ebp, dword [rsp + 0x520]
mov r14d, dword [rsp + 0x518]
mov rax, qword [rsp + 0x510]
mov qword [rsp + 0x110], rdx
lea rdi, [rsp + 0x270]
mov qword [rdi], r9
mov qword [rdi + 8], rax
mov rcx, rdi
call fcn.140126ccb
test al, al
je 0x140126473
shr rsi, 1
mov qword [rsp + 0x118], rsi
xor eax, eax
mov ecx, ebp
sub ecx, r14d
cmovb ecx, eax
cmp rsi, rcx
ja 0x140126c81
add esi, r14d
lea rax, [rsp + 0x110]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], rdi
mov qword [rsp + 0x170], r15
mov dword [rsp + 0x178], esi
mov dword [rsp + 0x17c], ebp
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x188], rdi
mov qword [rsp + 0x190], r15
mov dword [rsp + 0x198], r14d
mov dword [rsp + 0x19c], esi
call fcn.140125f2b
test rax, rax
je 0x140126a0c
lea rcx, [rsp + 0x1a0]
lea rdx, [rsp + 0x158]
mov r8, rax
xor r9d, r9d
call fcn.140125f37
jmp 0x140126b0b
mov qword [rsp + 0xe8], rbx
mov rbx, qword [r15]
mov eax, 8
mov qword [rsp + 0x88], rax
lea rsi, [rsp + 0xa8]
lea r12, [rsp + 0x280]
xorps xmm6, xmm6
xor eax, eax
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rsp + 0x80], rax
mov edi, ebp
mov qword [rsp + 0xf0], rbx
cmp r14d, edi
jae 0x140126974
mov eax, dword [rbx]
bt eax, r14d
jae 0x14012696c
lea r13d, [r14 + 0x41]
mov word [rsp + 0xa8], r13w
mov dword [rsp + 0xaa], 0x5c003a
and word [rsp + 0xae], 0
mov rcx, rsi
call sub.KERNEL32.dll_GetDriveTypeW
mov r15d, eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x14012658a
mov r8d, 0x20a
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
movaps xmmword [rsp + 0x260], xmm6
movaps xmmword [rsp + 0x250], xmm6
movaps xmmword [rsp + 0x240], xmm6
movaps xmmword [rsp + 0x230], xmm6
lea rax, [rsp + 0x230]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x38], 0x20
mov rcx, rsi
mov rdx, r12
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x14012658a
mov eax, 0x20a
xor r8d, r8d
test rax, rax
je 0x14012659b
cmp word [rsp + r8*2 + 0x280], 0
je 0x1401265a3
inc r8
add rax, 0xfffffffffffffffe
jmp 0x140126570
mov qword [rsp + 0x1a0], 3
jmp 0x14012696c
mov r8d, 0x105
jmp 0x1401265b0
cmp r8, 0x106
jae 0x140126c56
lea rcx, [rsp + 0x140]
mov rdx, r12
call fcn.1400161e5
mov rcx, qword [rsp + 0x148]
mov rdx, qword [rsp + 0x150]
mov eax, 0x40
xor ebx, ebx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x108], rdx
test rax, rax
je 0x140126600
cmp word [rsp + rbx*2 + 0x230], 0
je 0x140126607
inc rbx
add rax, 0xfffffffffffffffe
jmp 0x1401265e7
mov ebx, 0x20
jmp 0x140126611
cmp rbx, 0x21
jae 0x140126c6d
mov r12, rsi
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140063843
cmp qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
jne 0x140126c4c
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
and qword [rsp + 0x60], 0
mov rcx, rsi
mov rdx, rbx
call fcn.14016dbf8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
test rbx, rbx
je 0x14012667f
xor eax, eax
mov cl, byte [rsp + rax*2 + 0x230]
mov byte [rbp + rsi], cl
inc rsi
inc rax
cmp rbx, rax
jne 0x140126669
mov rbx, qword [rsp + 0x50]
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], r13w
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 0x140126920
mov r13, rax
and qword [rsp + 0x98], 0
and qword [rsp + 0x68], 0
mov rcx, r12
xor edx, edx
lea r8, [rsp + 0x98]
lea r9, [rsp + 0x68]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x140126909
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x140126909
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x100], rcx
and dword [rsp + 0x70], 0
mov qword [rsp + 0x98], 7
and qword [rsp + 0x68], 0
mov byte [rsp + 0xa0], 0
and dword [rsp + 0x4c], 0
mov qword [rsp + 0xf8], 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 + 0x98]
mov r9d, listen
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor edi, edi
cmp byte [rsp + 0x70], 0
sete dil
cmp dword [rsp + 0x4c], 0xc
mov ecx, 2
cmovne rdi, rcx
test eax, eax
cmove rdi, rcx
lea rcx, [rsp + 0x1b0]
mov rdx, qword [rsp + 0x90]
mov r8, qword [rsp + 0x108]
call fcn.14011eb10
lea rcx, [rsp + 0x1d0]
mov rdx, rbp
mov r8, rsi
call fcn.140126d0e
mov r8d, 4
lea rcx, [rsp + 0x1e8]
mov rsi, r12
mov rdx, r12
call fcn.140126d77
mov r8d, 3
lea rcx, [rsp + 0x200]
mov rdx, r12
call fcn.1400161e5
or qword [rsp + 0x1a8], 0xffffffffffffffff
cmp r15d, 2
mov qword [rsp + 0x1a0], rdi
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x220], rax
sete byte [rsp + 0x228]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
mov rdx, rbp
call fcn.1400a3a56
mov rcx, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x90]
call fcn.1400a3a56
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x280], rcx
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x288], rax
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x290], rdi
cmp rdi, rcx
lea r12, [rsp + 0x280]
jne 0x1401268c8
mov rcx, r12
call fcn.140125962
mov rax, qword [rsp + 0x280]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x288]
imul rcx, rdi, 0x90
mov qword [rsp + 0x88], rax
add rcx, rax
mov r8d, 0x90
lea rdx, [rsp + 0x1a0]
call sub.VCRUNTIME140.dll_memcpy
inc rdi
mov qword [rsp + 0x80], rdi
mov edi, dword [rsp + 0x520]
mov rbx, qword [rsp + 0xf0]
jmp 0x14012696c
mov qword [rsp + 0x1a0], 3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140126939
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x1a0], 3
mov rcx, rbx
mov rdx, rbp
call fcn.1400a3a56
mov rcx, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x90]
call fcn.1400a3a56
mov rsi, r12
mov rbx, qword [rsp + 0xf0]
lea r12, [rsp + 0x280]
inc r14d
jmp 0x1401264b9
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x130], rcx
mov rax, qword [rsp + 0x528]
mov qword [rsp + 0x138], rax
test rcx, rcx
je 0x140126c10
mov ecx, 8
mov edx, 0x28
call fcn.1400d07a2
test rax, rax
mov rdx, qword [rsp + 0xe8]
je 0x140126cb6
mov rcx, qword [rsp + 0x130]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x120]
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 0x140126c30
call fcn.1400d1c25
mov rax, qword [rax]
sub rax, 0xffffffffffffff80
mov ecx, dword [0x140420290]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp dword [rcx + 0x38], 0
jne 0x140126a59
mov ecx, dword [0x140420290]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov dword [rcx + 0x38], 1
and qword [rcx + 0x3c], 0
mov ecx, dword [0x140420290]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
lea rcx, [rcx + 0x3c]
lea rdx, [rsp + 0x288]
mov qword [rdx - 8], rcx
lea rsi, [rsp + 0x158]
mov ecx, 9
mov rdi, rdx
rep movsq qword [rdi], qword [rsi]
and qword [rdx + 0x48], 0
lea rcx, [0x140125d20]
lea rdx, [rsp + 0x1a0]
mov qword [rdx], rcx
lea rsi, [rsp + 0x280]
mov qword [rdx + 8], rsi
mov rcx, rax
call fcn.1400d2806
mov rcx, qword [rsi]
call fcn.1400d1b60
mov rax, qword [rsi + 0x50]
mov rcx, qword [rsi + 0x58]
mov rdx, qword [rsi + 0x60]
cmp rax, 1
jne 0x140126c99
movups xmm0, xmmword [rsp + 0x2e8]
movups xmm1, xmmword [rsp + 0x2f8]
movups xmmword [rsp + 0x1c0], xmm1
movups xmmword [rsp + 0x1b0], xmm0
mov qword [rsp + 0x1a0], rcx
mov qword [rsp + 0x1a8], rdx
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0xb8], rax
movups xmm0, xmmword [rsp + 0x1b8]
movaps xmmword [rsp + 0xd0], xmm0
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xb8]
test rax, rax
je 0x140126be3
mov rcx, qword [rsp + 0xd0]
and qword [rsp + 0xd0], 0
test rcx, rcx
je 0x140126bb1
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 qword [rbx + 0x10], rax
mov rax, qword [rsp + 0xb0]
mov qword [rbx], rax
mov rax, qword [rsp + 0xb8]
mov qword [rbx + 8], rax
lea rcx, [rsp + 0xd0]
call fcn.140125e45
jmp 0x140126c30
xor eax, eax
cmp rax, 3
je 0x140126bb1
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 0x140126be5
xorps xmm0, xmm0
mov rax, qword [rsp + 0xe8]
movups xmmword [rax], xmm0
and qword [rax + 0x10], 0
lea rcx, [rsp + 0x120]
call fcn.140125c80
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 rdx, qword [rsp + 0x60]
call fcn.1402df2b0
lea rax, str.C:UsersTwirlanta.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x105
mov rcx, r8
mov r8, rax
call fcn.1402df7d0
lea r8, str.C:UsersTwirlanta.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.11_srcwindowsdisk.rs
mov edx, 0x20
mov rcx, rbx
call fcn.1402df7d0
lea rcx, str.assertion_failed:_index___self.range.len__C:UsersTwirlanta.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rayon_1.5.3_src_range.rs
lea r8, [0x14034b0f8]
mov edx, 0x2b
call fcn.1402df840
test rax, rax
jne 0x140126cc5
lea rcx, [0x1403b08ee]
lea r8, str.C:UsersTwirlanta.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rayon_core_1.9.3_srcjob.rs
mov edx, 0x28
call fcn.1402df840
mov ecx, 8
mov edx, 0x28
call fcn.1402df2d0
call fcn.1400d1b56
int3