Function at 0x14013fc70
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, 0x3a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x320], 0xfffffffffffffffe
mov r13, rcx
mov eax, dword [rdx]
bt eax, r8d
jae 0x14013fd8c
mov ebx, r8d
add ebx, 0x41
mov word [rbp + 0x310], bx
mov dword [rbp + 0x312], 0x5c003a
mov word [rbp + 0x316], 0
lea rcx, [rbp + 0x310]
call sub.KERNEL32.dll_GetDriveTypeW
mov esi, eax
lea eax, [rsi - 4]
cmp eax, 0xfffffffe
jb 0x14013fd8c
lea rdi, [rbp - 0x3a]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x2e0], xmm0
movdqa xmmword [rbp + 0x2d0], xmm0
movdqa xmmword [rbp + 0x2c0], xmm0
movdqa xmmword [rbp + 0x2b0], xmm0
lea r14, [rbp + 0x2b0]
mov qword [rsp + 0x30], r14
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0x20
lea rcx, [rbp + 0x310]
mov rdx, rdi
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x14013fd8c
mov qword [rbp + 0x210], rsi
mov esi, 2
nop dword [rax]
cmp word [rbp + rsi*2 - 0x3e], 0
je 0x14013fda8
cmp word [rbp + rsi*2 - 0x3c], 0
je 0x14013fdae
cmp word [rbp + rsi*2 - 0x3a], 0
je 0x14013fdb1
add rsi, 3
cmp rsi, 0x107
jne 0x14013fd60
mov esi, 0x105
jmp 0x14013fdbe
mov qword [r13 + 0x20], 3
add rsp, 0x3a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
add rsi, 0xfffffffffffffffe
jmp 0x14013fdb1
dec rsi
cmp rsi, 0x106
jae 0x14014013f
mov qword [rbp + 0x280], 0
mov qword [rbp + 0x288], 1
mov qword [rbp + 0x290], 0
mov rax, rsi
shr rax, 1
mov r8d, esi
and r8d, 1
add r8, rax
je 0x14013fdff
lea rcx, [rbp + 0x280]
xor edx, edx
call fcn.140188d30
lea rax, [rsi*2 - 0x3a]
add rax, rbp
mov qword [rbp + 0x260], rax
mov qword [rbp + 0x268], rdi
mov word [rbp + 0x270], 0
lea rcx, [rbp + 0x260]
lea rdx, [rbp + 0x280]
call fcn.14013d090
mov rax, qword [rbp + 0x288]
mov rcx, qword [rbp + 0x290]
movzx esi, word [rbp + 0x2b0]
test si, si
mov qword [rbp + 0x2a0], rax
mov qword [rbp + 0x2a8], rcx
je 0x14014001b
cmp word [rbp + 0x2b2], 0
je 0x140140037
cmp word [rbp + 0x2b4], 0
je 0x140140042
cmp word [rbp + 0x2b6], 0
je 0x14014004d
cmp word [rbp + 0x2b8], 0
je 0x140140058
cmp word [rbp + 0x2ba], 0
je 0x140140063
cmp word [rbp + 0x2bc], 0
je 0x14014006e
cmp word [rbp + 0x2be], 0
je 0x140140079
cmp word [rbp + 0x2c0], 0
je 0x140140084
cmp word [rbp + 0x2c2], 0
je 0x14014008f
cmp word [rbp + 0x2c4], 0
je 0x14014009a
cmp word [rbp + 0x2c6], 0
je 0x1401400a5
cmp word [rbp + 0x2c8], 0
je 0x1401400b0
cmp word [rbp + 0x2ca], 0
je 0x1401400bb
cmp word [rbp + 0x2cc], 0
je 0x1401400c6
cmp word [rbp + 0x2ce], 0
je 0x1401400d1
cmp word [rbp + 0x2d0], 0
je 0x1401400dc
cmp word [rbp + 0x2d2], 0
je 0x1401400e7
cmp word [rbp + 0x2d4], 0
je 0x1401400ef
cmp word [rbp + 0x2d6], 0
je 0x1401400f7
cmp word [rbp + 0x2d8], 0
je 0x1401400ff
cmp word [rbp + 0x2da], 0
je 0x140140107
cmp word [rbp + 0x2dc], 0
je 0x14014010f
cmp word [rbp + 0x2de], 0
je 0x140140117
cmp word [rbp + 0x2e0], 0
je 0x14014011f
cmp word [rbp + 0x2e2], 0
je 0x140140127
cmp word [rbp + 0x2e4], 0
je 0x14014012f
cmp word [rbp + 0x2e6], 0
je 0x140140137
cmp word [rbp + 0x2e8], 0
je 0x140140155
cmp word [rbp + 0x2ea], 0
je 0x14014015d
cmp word [rbp + 0x2ec], 0
je 0x140140165
cmp word [rbp + 0x2ee], 1
mov r12d, 0x20
sbb r12, 0
jmp 0x14014016b
mov eax, 1
mov qword [rbp + 0x318], rax
xor eax, eax
mov qword [rbp + 0x300], rax
xor eax, eax
jmp 0x1401402c3
mov r12d, 1
jmp 0x14014016b
mov r12d, 2
jmp 0x14014016b
mov r12d, 3
jmp 0x14014016b
mov r12d, 4
jmp 0x14014016b
mov r12d, 5
jmp 0x14014016b
mov r12d, 6
jmp 0x14014016b
mov r12d, 7
jmp 0x14014016b
mov r12d, 8
jmp 0x14014016b
mov r12d, 9
jmp 0x14014016b
mov r12d, 0xa
jmp 0x14014016b
mov r12d, 0xb
jmp 0x14014016b
mov r12d, 0xc
jmp 0x14014016b
mov r12d, 0xd
jmp 0x14014016b
mov r12d, 0xe
jmp 0x14014016b
mov r12d, 0xf
jmp 0x14014016b
mov r12d, 0x10
jmp 0x14014016b
mov r12d, 0x11
jmp 0x14014016b
mov r12d, 0x12
jmp 0x14014016b
mov r12d, 0x13
jmp 0x14014016b
mov r12d, 0x14
jmp 0x14014016b
mov r12d, 0x15
jmp 0x14014016b
mov r12d, 0x16
jmp 0x14014016b
mov r12d, 0x17
jmp 0x14014016b
mov r12d, 0x18
jmp 0x14014016b
mov r12d, 0x19
jmp 0x14014016b
mov r12d, 0x1a
jmp 0x14014016b
mov r12d, 0x1b
jmp 0x14014016b
lea r8, str.C:UsersWesley.cargo_registry_srcgithub.com_1ecc6299db9ec823_sysinfo_0.23.13_srcwindowsdisk.rs
mov edx, 0x105
mov rcx, rsi
call fcn.1401902b0
ud2
mov r12d, 0x1c
jmp 0x14014016b
mov r12d, 0x1d
jmp 0x14014016b
mov r12d, 0x1e
mov edx, 1
mov rcx, r12
call fcn.14000e8b0
mov qword [rbp + 0x318], rax
test rax, rax
je 0x140140695
lea rcx, [r12 - 1]
movabs rdi, 0x7fffffffffffffff
and rdi, rcx
cmp rdi, 0xf
mov qword [rbp + 0x300], r12
jae 0x1401401ae
xor eax, eax
jmp 0x140140293
mov r8d, esi
inc rdi
mov rax, rdi
and rax, 0xfffffffffffffff0
lea rcx, [rax - 0x10]
mov r9, rcx
shr r9, 4
inc r9
test rcx, rcx
je 0x1401404d5
mov rdx, r9
and rdx, 0xfffffffffffffffe
xor ecx, ecx
movdqa xmm0, xmmword [0x140222af0]
mov rsi, qword [rbp + 0x318]
nop word [rax + rax]
movdqu xmm1, xmmword [rbp + rcx*2 + 0x2b0]
movdqu xmm2, xmmword [rbp + rcx*2 + 0x2c0]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [rsi + rcx], xmm1
movdqu xmm1, xmmword [rbp + rcx*2 + 0x2d0]
movdqu xmm2, xmmword [rbp + rcx*2 + 0x2e0]
pand xmm1, xmm0
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [rsi + rcx + 0x10], xmm1
add rcx, 0x20
add rdx, 0xfffffffffffffffe
jne 0x1401401f0
test r9b, 1
je 0x140140279
movdqu xmm0, xmmword [rbp + rcx*2 + 0x2b0]
movdqu xmm1, xmmword [rbp + rcx*2 + 0x2c0]
movdqa xmm2, xmmword [0x140222af0]
pand xmm0, xmm2
pand xmm1, xmm2
packuswb xmm0, xmm1
mov rdx, qword [rbp + 0x318]
movdqu xmmword [rdx + rcx], xmm0
cmp rdi, rax
mov r12, qword [rbp + 0x300]
mov esi, r8d
je 0x1401402c3
lea r14, [rax*2 + 0x2b0]
add r14, rbp
lea rdi, [r12*2 + 0x2b0]
add rdi, rbp
mov rdx, qword [rbp + 0x318]
nop word cs:[rax + rax]
movzx ecx, byte [r14]
add r14, 2
mov byte [rdx + rax], cl
inc rax
cmp r14, rdi
jne 0x1401402b0
mov qword [rbp + 0x308], rax
movabs rax, 0x5c002e005c005c
mov qword [rbp + 0x220], rax
mov word [rbp + 0x228], bx
mov dword [rbp + 0x22a], 0x3a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rbp + 0x220]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x1401404a1
mov qword [rbp + 0x298], rax
mov qword [rbp + 0x248], 0
mov qword [rbp + 0x260], 0
lea rbx, [rbp + 0x310]
lea r8, [rbp + 0x248]
lea r9, [rbp + 0x260]
mov rcx, rbx
xor edx, edx
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x1401404bb
mov r12, qword [rbp + 0x248]
test r12, r12
mov rcx, qword [rbp + 0x298]
je 0x1401404c2
mov rdi, qword [rbp + 0x260]
mov qword [rbp + 0x200], 8
mov byte [rbp + 0x208], 0
mov dword [rbp + 0x238], 0
mov qword [rbp + 0x230], 0
mov dword [rbp + 0x2fc], 0
lea rax, [rbp + 0x2fc]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
lea r8, [rbp + 0x200]
mov edx, 0x2d1400
mov r9d, 0xc
call sub.KERNEL32.dll_DeviceIoControl
xor r15d, r15d
cmp byte [rbp + 0x238], 0
setne r15b
cmp dword [rbp + 0x2fc], 0xc
mov ecx, 2
cmovne r15, rcx
test eax, eax
cmove r15, rcx
lea rcx, [rbp + 0x260]
mov rdx, qword [rbp + 0x2a0]
mov r8, qword [rbp + 0x2a8]
call fcn.140167e20
mov rax, qword [rbp + 0x260]
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x268]
mov qword [rbp + 0x2a0], rax
movdqu xmm0, xmmword [rbp + 0x270]
movdqa xmmword [rbp + 0x1d0], xmm0
mov r8, qword [rbp + 0x308]
test r8, r8
mov qword [rbp + 0x218], rdi
je 0x1401404e6
mov edx, 1
mov rcx, r8
call fcn.14000e8b0
mov r8, qword [rbp + 0x308]
test rax, rax
jne 0x1401404eb
mov edx, 1
mov rcx, r8
call fcn.14018fcb0
jmp 0x1401406b3
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r13 + 0x20], 3
jmp 0x14014064c
mov rcx, qword [rbp + 0x298]
mov qword [r13 + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14014064c
xor ecx, ecx
test r9b, 1
jne 0x140140247
jmp 0x140140279
mov eax, 1
mov qword [rbp + 0x240], rax
mov rcx, rax
mov rdx, qword [rbp + 0x318]
call sub.VCRUNTIME140.dll_memcpy
mov r14, qword [rbp + 0x310]
mov ecx, 8
mov edx, 2
call fcn.14000e8b0
test rax, rax
je 0x1401406a4
mov qword [rbp + 0x1e8], 4
mov qword [rbp + 0x1f0], rax
mov qword [rax], r14
mov qword [rbp + 0x1f8], 4
mov qword [rbp + 0x248], 0
mov qword [rbp + 0x250], 1
mov qword [rbp + 0x258], 0
lea rcx, [rbp + 0x248]
mov r8d, 2
xor edx, edx
call fcn.140188d30
lea rax, [rbp + 0x316]
mov qword [rbp + 0x260], rax
mov qword [rbp + 0x268], rbx
mov word [rbp + 0x270], 0
lea rcx, [rbp + 0x260]
lea rdx, [rbp + 0x248]
call fcn.14013d090
cmp dword [rbp + 0x210], 2
mov rax, qword [rbp + 0x2a8]
mov qword [r13], rax
mov rax, qword [rbp + 0x2a0]
mov qword [r13 + 8], rax
movaps xmm0, xmmword [rbp + 0x1d0]
movups xmmword [r13 + 0x10], xmm0
mov rax, qword [rbp + 0x308]
mov qword [r13 + 0x40], rax
mov rcx, qword [rbp + 0x240]
mov qword [r13 + 0x48], rcx
mov qword [r13 + 0x50], rax
movups xmm0, xmmword [rbp + 0x1e8]
movups xmmword [r13 + 0x58], xmm0
mov rax, qword [rbp + 0x1f8]
mov qword [r13 + 0x68], rax
movdqu xmm0, xmmword [rbp + 0x248]
movdqu xmmword [r13 + 0x70], xmm0
mov rax, qword [rbp + 0x258]
mov qword [r13 + 0x80], rax
mov qword [r13 + 0x20], r15
mov qword [r13 + 0x28], 0xffffffffffffffff
mov qword [r13 + 0x30], r12
mov rax, qword [rbp + 0x218]
mov qword [r13 + 0x38], rax
sete byte [r13 + 0x88]
mov rcx, qword [rbp + 0x298]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test si, si
je 0x14014066a
mov r8d, 1
mov rcx, qword [rbp + 0x318]
mov rdx, qword [rbp + 0x300]
call fcn.14000e8c0
mov rdx, qword [rbp + 0x280]
test rdx, rdx
je 0x14013fd94
mov rcx, qword [rbp + 0x288]
mov r8, rdx
not r8
shr r8, 0x3f
call fcn.14000e8c0
jmp 0x14013fd94
mov edx, 1
mov rcx, r12
call fcn.14018fcb0
jmp 0x1401406b3
mov ecx, 8
mov edx, 2
call fcn.14018fcb0
ud2