Function at 0x14005211c
Capabilities:
Get disk information
Get disk size
Get storage device properties

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x508
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x470], xmm6
mov qword [rbp + 0x468], 0xfffffffffffffffe
mov rdi, rdx
mov rbx, rcx
mov r13, qword [rbp + 0x508]
mov r14d, dword [rbp + 0x500]
mov r15d, dword [rbp + 0x4f8]
mov rax, qword [rbp + 0x4f0]
mov qword [rbp + 0x430], rdx
lea rsi, [rbp + 0x1d0]
mov qword [rsi], r9
mov qword [rsi + 8], rax
mov rcx, rsi
call fcn.140051c7a
test al, al
je 0x140052211
shr rdi, 1
mov qword [rbp + 0x428], rdi
xor eax, eax
mov ecx, r14d
sub ecx, r15d
cmovb ecx, eax
cmp rdi, rcx
ja 0x140052c3a
add edi, r15d
call fcn.140051b0d
test rax, rax
je 0x140052921
lea rdx, [rbp - 0x40]
mov dword [rdx], r15d
mov dword [rdx + 4], edi
lea rcx, [rbp + 0x428]
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], r13
mov dword [rdx + 0x20], edi
mov dword [rdx + 0x24], r14d
lea r8, [rbp + 0x430]
mov qword [rdx + 0x28], r8
mov qword [rdx + 0x30], rcx
mov qword [rdx + 0x38], rsi
mov qword [rdx + 0x40], r13
lea rcx, [rbp + 0x3d0]
mov r8, rax
xor r9d, r9d
call fcn.14005306e
jmp 0x140052bc9
mov qword [rbp + 0x450], rbx
push 8
pop rdi
xorps xmm6, xmm6
xor ebx, ebx
xor esi, esi
cmp r15d, r14d
jae 0x140052867
lea ecx, [r15 + 1]
mov qword [rbp + 0x3d0], rbx
mov qword [rbp + 0x3d8], rdi
mov qword [rbp + 0x3e0], rsi
mov qword [rbp + 0x3e8], r13
mov rax, qword [r13]
mov eax, dword [rax]
bt eax, r15d
jae 0x140052804
mov dword [rbp + 0x444], ecx
add r15d, 0x41
mov word [rbp + 0x458], r15w
mov dword [rbp + 0x45a], 0x5c003a
and word [rbp + 0x45e], 0
mov byte [rbp + 0x467], 1
lea rcx, [rbp + 0x458]
call sub.KERNEL32.dll_GetDriveTypeW
mov r12d, eax
lea eax, [r12 - 4]
cmp eax, 0xfffffffe
jb 0x1400527fe
mov r8d, 0x20a
lea rsi, [rbp - 0x40]
mov rcx, rsi
xor edx, edx
call fcn.14011ec50
movaps xmmword [rbp + 0x320], xmm6
movaps xmmword [rbp + 0x310], xmm6
movaps xmmword [rbp + 0x300], xmm6
movaps xmmword [rbp + 0x2f0], xmm6
mov byte [rbp + 0x467], 1
lea rax, [rbp + 0x2f0]
mov qword [rsp + 0x30], rax
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x38], 0x20
lea rcx, [rbp + 0x458]
mov rdx, rsi
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x1400527fe
xor r8d, r8d
cmp r8, 0x105
je 0x14005232d
cmp word [rbp + r8*2 - 0x40], 0
je 0x140052351
inc r8
jmp 0x140052316
mov byte [rbp + 0x467], 1
mov edx, 0x105
mov r8d, 0x105
lea rcx, [rbp - 0x40]
lea r9, str.libsinfo_0.1_srcwindowsdisk.rs
call fcn.140051eaf
jmp 0x14005236d
mov byte [rbp + 0x467], 1
mov edx, 0x105
lea rcx, [rbp - 0x40]
lea r9, str.libsinfo_0.1_srcwindowsdisk.rs
call fcn.140051eaf
mov r8, rdx
mov byte [rbp + 0x467], 1
lea rcx, [rbp + 0x340]
mov rdx, rax
call fcn.140051ed4
mov r14, qword [rbp + 0x348]
mov rsi, qword [rbp + 0x350]
xor r8d, r8d
push 0x20
pop rdx
cmp r8, 0x20
je 0x1400523b1
cmp word [rbp + r8*2 + 0x2f0], 0
je 0x1400523b4
inc r8
jmp 0x14005239a
mov r8, rdx
lea rcx, [rbp + 0x2f0]
lea r9, str.libsinfo_0.1_srcwindowsdisk.rs
call fcn.140051eaf
mov rbx, rax
mov rdi, rdx
mov rcx, rdx
call fcn.140077cc0
mov qword [rbp + 0x448], r14
mov qword [rbp + 0x3b0], r13
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x410], rdx
and qword [rbp + 0x418], 0
lea rcx, [rbp + 0x408]
mov rdx, rdi
call fcn.14007de1a
mov r13, qword [rbp + 0x410]
mov r14, qword [rbp + 0x418]
add rdi, rdi
xor eax, eax
cmp rdi, rax
je 0x140052431
mov cl, byte [rbx + rax]
mov byte [r13 + r14], cl
inc r14
add rax, 2
jmp 0x14005241b
mov qword [rbp + 0x418], r14
movabs rax, 0x5c002e005c005c
mov qword [rbp + 0x332], rax
mov word [rbp + 0x33a], r15w
mov dword [rbp + 0x33c], 0x3a
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rbp + 0x332]
xor edx, edx
push 3
pop r8
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x1400527bd
mov qword [rbp + 0x438], rax
and qword [rbp + 0x398], 0
and qword [rbp + 0x358], 0
lea rcx, [rbp + 0x458]
xor edx, edx
lea r8, [rbp + 0x398]
lea r9, [rbp + 0x358]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x1400527c8
mov rdi, qword [rbp + 0x398]
test rdi, rdi
mov rcx, qword [rbp + 0x438]
je 0x1400527cf
mov rbx, qword [rbp + 0x358]
and dword [rbp + 0x390], 0
mov qword [rbp + 0x2e0], 7
and qword [rbp + 0x388], 0
mov byte [rbp + 0x2e8], 0
and dword [rbp + 0x440], 0
lea rax, [rbp + 0x440]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x388]
mov qword [rsp + 0x20], rax
and qword [rsp + 0x38], 0
mov dword [rsp + 0x28], send
mov edx, 0x2d1400
lea r8, [rbp + 0x2e0]
push 0xc
pop r9
call sub.KERNEL32.dll_DeviceIoControl
xor r15d, r15d
cmp byte [rbp + 0x390], 0
sete r15b
cmp dword [rbp + 0x440], 0xc
push 2
pop rcx
cmovne r15, rcx
test eax, eax
cmove r15, rcx
lea rcx, [rbp + 0x358]
mov rdx, qword [rbp + 0x448]
mov r8, rsi
call fcn.1400dc930
mov rax, qword [rbp + 0x358]
mov qword [rbp + 0x3b8], rax
mov rax, qword [rbp + 0x360]
mov qword [rbp + 0x448], rax
lea rax, [rbp + 0x368]
movups xmm0, xmmword [rax]
movaps xmmword [rbp + 0x1e0], xmm0
mov rcx, r14
call fcn.140077cc0
mov qword [rbp + 0x398], rax
mov qword [rbp + 0x3a0], rdx
mov rcx, rdx
mov rdx, r13
mov r8, r14
call fcn.14011e5a0
mov qword [rbp + 0x3a8], r14
push 4
pop rsi
mov rcx, rsi
xor edx, edx
call fcn.140052001
mov qword [rbp + 0x3c0], rax
mov rax, qword [rbp + 0x458]
mov qword [rbp + 0x3c8], rdx
mov qword [rdx], rax
lea rcx, [rbp + 0x458]
mov rdx, rsi
push 3
pop r8
lea r9, str.libsinfo_0.1_srcwindowsdisk.rs
call fcn.140051eaf
mov r8, rdx
lea rcx, [rbp + 0x358]
mov rdx, rax
call fcn.140051ed4
movaps xmm0, xmmword [rbp + 0x1e0]
movaps xmmword [rbp + 0x1f0], xmm0
movups xmm0, xmmword [rbp + 0x398]
movaps xmmword [rbp + 0x200], xmm0
mov rax, qword [rbp + 0x3a8]
mov qword [rbp + 0x210], rax
movups xmm0, xmmword [rbp + 0x358]
movaps xmmword [rbp + 0x220], xmm0
mov rax, qword [rbp + 0x368]
mov qword [rbp + 0x230], rax
mov eax, dword [rbp + 0x358]
mov ecx, dword [rbp + 0x35b]
mov dword [rbp + 0x420], eax
mov dword [rbp + 0x423], ecx
mov rcx, qword [rbp + 0x438]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x408]
mov rdx, qword [rbp + 0x410]
call fcn.140071931
mov rcx, qword [rbp + 0x340]
mov rdx, qword [rbp + 0x348]
call fcn.140071931
mov rax, qword [rbp + 0x3b8]
mov qword [rbp + 0x240], rax
mov rax, qword [rbp + 0x448]
mov qword [rbp + 0x248], rax
movaps xmm0, xmmword [rbp + 0x1f0]
lea rdx, [rbp + 0x250]
movups xmmword [rdx], xmm0
or qword [rbp + 0x268], 0xffffffffffffffff
cmp r12d, 2
mov qword [rbp + 0x260], r15
mov qword [rbp + 0x270], rdi
mov qword [rbp + 0x278], rbx
mov rax, qword [rbp + 0x210]
mov qword [rdx + 0x40], rax
movaps xmm0, xmmword [rbp + 0x200]
movups xmmword [rdx + 0x30], xmm0
mov rax, qword [rbp + 0x3c0]
mov qword [rbp + 0x298], rax
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x2a0], rax
mov qword [rbp + 0x2a8], 4
mov rax, qword [rbp + 0x230]
mov qword [rdx + 0x70], rax
movaps xmm0, xmmword [rbp + 0x220]
movups xmmword [rdx + 0x60], xmm0
sete byte [rbp + 0x2c8]
mov eax, dword [rbp + 0x420]
mov ecx, dword [rbp + 0x423]
mov dword [rdx + 0x7c], ecx
mov dword [rdx + 0x79], eax
movups xmm0, xmmword [rbp + 0x3d0]
movaps xmmword [rbp - 0x40], xmm0
mov rsi, qword [rbp + 0x3e0]
mov qword [rbp - 0x30], rsi
mov rbx, qword [rbp - 0x40]
cmp rsi, rbx
jne 0x140052828
lea rcx, [rbp - 0x40]
mov rdx, rsi
call fcn.14005158f
mov r14d, dword [rbp + 0x500]
mov r13, qword [rbp + 0x3b0]
mov rbx, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x30]
jmp 0x140052836
push 0xffffffffffffffff
pop rcx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400527d5
mov rcx, qword [rbp + 0x438]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x408]
mov rdx, r13
call fcn.140071931
mov rcx, qword [rbp + 0x340]
mov rdx, qword [rbp + 0x448]
call fcn.140071931
mov r14d, dword [rbp + 0x500]
mov ecx, dword [rbp + 0x444]
mov rbx, qword [rbp + 0x3d0]
mov rdi, qword [rbp + 0x3d8]
mov rsi, qword [rbp + 0x3e0]
mov r13, qword [rbp + 0x3e8]
mov r15d, ecx
jmp 0x140052222
mov r14d, dword [rbp + 0x500]
mov r13, qword [rbp + 0x3b0]
mov rdi, qword [rbp - 0x38]
imul rcx, rsi, 0x90
add rcx, rdi
mov r8d, 0x90
lea rdx, [rbp + 0x240]
call fcn.14011e5a0
inc rsi
mov eax, dword [rbp + 0x444]
mov r15d, eax
jmp 0x140052222
mov qword [rbp + 0x2f0], rbx
mov qword [rbp + 0x2f8], rdi
mov qword [rbp + 0x300], rsi
xorps xmm0, xmm0
movaps xmmword [rbp + 0x240], xmm0
and qword [rbp + 0x250], 0
test rsi, rsi
je 0x140052a4a
mov rax, qword [rbp + 0x300]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0x2f0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x2f8]
mov qword [rbp - 0x28], rax
movaps xmmword [rbp - 0x40], xmm0
push 0x28
pop rcx
push 8
pop rdx
call fcn.140051718
mov rdx, qword [rbp + 0x450]
mov rcx, qword [rbp - 0x20]
mov qword [rax + 0x20], rcx
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rbp + 0x240], rax
mov qword [rbp + 0x248], rax
push 1
pop rax
mov qword [rbp + 0x250], rax
mov qword [rdx + 0x10], rax
mov rax, qword [rbp + 0x240]
mov qword [rdx], rax
mov rax, qword [rbp + 0x248]
mov qword [rdx + 8], rax
jmp 0x140052c1f
mov qword [rbp + 0x450], rbx
call fcn.140080b27
mov r12, qword [rax]
lea r14, [r12 + 0x80]
call fcn.140051b0d
test rax, rax
je 0x140052a6a
mov rbx, rax
cmp qword [rax + 0x140], r12
je 0x140052b70
mov rax, rbx
add rax, 0x140
mov rcx, qword [rbx + 0x130]
lea rdx, [rbp + 0x240]
mov dword [rdx + 0x20], r15d
mov dword [rdx + 0x24], edi
lea r8, [rbp + 0x428]
mov qword [rdx + 0x28], r8
mov qword [rdx + 0x30], rsi
mov qword [rdx + 0x38], r13
mov dword [rdx + 0x40], edi
mov r9d, dword [rbp + 0x500]
mov dword [rdx + 0x44], r9d
lea r9, [rbp + 0x430]
mov qword [rdx + 0x48], r9
mov qword [rdx + 0x50], r8
mov qword [rdx + 0x58], rsi
mov qword [rdx + 0x60], r13
and qword [rdx], 0
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], rax
mov al, 1
mov byte [rdx + 0x18], al
and qword [rdx + 0x68], 0
mov byte [rbp + 0x465], al
lea r8, [0x14005364f]
mov rcx, r14
call fcn.140083382
mov byte [rbp + 0x465], 1
lea rdx, [rbp + 0x240]
mov rcx, rbx
call fcn.140051c67
lea rsi, [rbp - 0x40]
lea rdx, [rbp + 0x240]
mov r8d, 0xa0
mov rcx, rsi
call fcn.14011e5a0
mov rax, qword [rsi + 0x98]
lea rdx, [rbp + 0x2f0]
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
mov byte [rbp + 0x465], 0
lea rcx, [rbp + 0x3d0]
call fcn.140051a67
jmp 0x140052bc2
mov rax, qword [rbp + 0x450]
movups xmmword [rax], xmm0
and qword [rax + 0x10], 0
lea rcx, [rbp + 0x2f0]
call fcn.14000a384
jmp 0x140052c1f
xor ecx, ecx
call fcn.140051e6a
lea rdx, [rbp + 0x240]
mov dword [rdx + 8], r15d
mov dword [rdx + 0xc], edi
lea rcx, [rbp + 0x428]
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rsi
mov qword [rdx + 0x20], r13
mov dword [rdx + 0x28], edi
mov r8d, dword [rbp + 0x500]
mov dword [rdx + 0x2c], r8d
lea r8, [rbp + 0x430]
mov qword [rdx + 0x30], r8
mov qword [rdx + 0x38], rcx
mov qword [rdx + 0x40], rsi
mov qword [rdx + 0x48], r13
mov qword [rdx], rax
and qword [rdx + 0x50], 0
mov byte [rbp + 0x466], 1
lea r8, [0x14005393c]
mov rcx, r14
call fcn.140083382
mov rbx, qword [rbp + 0x450]
mov rcx, qword [rbp + 0x240]
mov byte [rbp + 0x466], 1
call fcn.140080aad
lea rsi, [rbp - 0x40]
lea rdx, [rbp + 0x240]
mov r8d, 0x88
mov rcx, rsi
call fcn.14011e5a0
mov rax, qword [rsi + 0x80]
lea rdx, [rbp + 0x2f0]
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 byte [rbp + 0x466], 0
lea rcx, [rbp + 0x358]
call fcn.140051a67
movups xmm0, xmmword [rbp + 0x358]
movups xmm1, xmmword [rbp + 0x368]
movups xmm2, xmmword [rbp + 0x378]
movaps xmmword [rbp + 0x3d0], xmm0
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3f0], xmm2
jmp 0x140052bc9
lea rdx, [rbp - 0x40]
mov dword [rdx], r15d
mov dword [rdx + 4], edi
lea rax, [rbp + 0x428]
mov qword [rdx + 8], rax
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], r13
mov dword [rdx + 0x20], edi
mov ecx, dword [rbp + 0x500]
mov dword [rdx + 0x24], ecx
lea rcx, [rbp + 0x430]
mov qword [rdx + 0x28], rcx
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x38], rsi
mov qword [rdx + 0x40], r13
lea rcx, [rbp + 0x3d0]
mov r8, rbx
xor r9d, r9d
call fcn.14005306e
mov rbx, qword [rbp + 0x450]
mov rax, qword [rbp + 0x3e0]
lea rsi, [rbp + 0x240]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmmword [rsi], xmm0
mov rax, qword [rbp + 0x3f8]
lea rdi, [rbp - 0x40]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rbp + 0x3e8]
movaps xmmword [rdi], xmm0
mov rcx, rsi
mov rdx, rdi
call fcn.140052fff
mov rax, qword [rsi + 0x10]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
mov rcx, rdi
call fcn.14005177e
movaps xmm6, xmmword [rbp + 0x470]
add rsp, 0x508
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.assertion_failed:_index___self.range.len__C:UsersAdministrator.WIN7_2021OVWRCZ.cargo_registry_srcmirrors.ustc.edu.cn_12df342d903acd47_rayon_1.7.0_src_range.rs
lea r8, [0x140149c40]
push 0x2b
pop rdx
call fcn.14012b9c0
ud2