Function at 0x1401c5160
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 rsi, rcx
mov eax, dword [rdx]
bt eax, r8d
jae 0x1401c5289
mov edi, r8d
add edi, 0x41
mov word [rbp + 0x308], di
mov dword [rbp + 0x30a], 0x5c003a
mov word [rbp + 0x30e], 0
lea rcx, [rbp + 0x308]
call sub.KERNEL32.dll_GetDriveTypeW
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x1401c5289
mov dword [rbp + 0x274], eax
lea rbx, [rbp - 0x3a]
mov r15d, 0x20a
mov r8d, 0x20a
mov rcx, rbx
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 rax, [rbp + 0x2b0]
mov qword [rsp + 0x30], rax
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0x20
lea rcx, [rbp + 0x308]
mov rdx, rbx
mov r8d, 0x105
xor r9d, r9d
call sub.KERNEL32.dll_GetVolumeInformationW
test eax, eax
je 0x1401c5289
lea r12, [rbp + 0x30e]
mov ecx, 2
nop word cs:[rax + rax]
cmp word [rbp + rcx*2 - 0x3e], 0
je 0x1401c52a4
cmp word [rbp + rcx*2 - 0x3c], 0
je 0x1401c52aa
cmp word [rbp + rcx*2 - 0x3a], 0
je 0x1401c52ad
add rcx, 3
add r15, 0xfffffffffffffffa
jne 0x1401c5260
mov ecx, 0x105
jmp 0x1401c52ba
mov qword [rsi], 3
add rsp, 0x3a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
add rcx, 0xfffffffffffffffe
jmp 0x1401c52ad
dec rcx
cmp rcx, 0x106
jae 0x1401c55f5
lea rax, [rcx*2 - 0x3a]
add rax, rbp
mov qword [rbp + 0x280], rbx
mov qword [rbp + 0x288], rax
mov word [rbp + 0x290], 0
lea rcx, [rbp + 0x220]
lea rdx, [rbp + 0x280]
call fcn.1401c3070
mov rax, qword [rbp + 0x228]
mov qword [rbp + 0x2a0], rax
mov rbx, qword [rbp + 0x230]
movzx eax, word [rbp + 0x2b0]
mov word [rbp + 0x31e], ax
test ax, ax
je 0x1401c54d6
cmp word [rbp + 0x2b2], 0
je 0x1401c54f0
cmp word [rbp + 0x2b4], 0
je 0x1401c54fb
cmp word [rbp + 0x2b6], 0
je 0x1401c5506
cmp word [rbp + 0x2b8], 0
je 0x1401c5511
cmp word [rbp + 0x2ba], 0
je 0x1401c551c
cmp word [rbp + 0x2bc], 0
je 0x1401c5527
cmp word [rbp + 0x2be], 0
je 0x1401c5532
cmp word [rbp + 0x2c0], 0
je 0x1401c553d
cmp word [rbp + 0x2c2], 0
je 0x1401c5548
cmp word [rbp + 0x2c4], 0
je 0x1401c5553
cmp word [rbp + 0x2c6], 0
je 0x1401c555e
cmp word [rbp + 0x2c8], 0
je 0x1401c5569
cmp word [rbp + 0x2ca], 0
je 0x1401c5574
cmp word [rbp + 0x2cc], 0
je 0x1401c557f
cmp word [rbp + 0x2ce], 0
je 0x1401c558a
cmp word [rbp + 0x2d0], 0
je 0x1401c5595
cmp word [rbp + 0x2d2], 0
je 0x1401c559d
cmp word [rbp + 0x2d4], 0
je 0x1401c55a5
cmp word [rbp + 0x2d6], 0
je 0x1401c55ad
cmp word [rbp + 0x2d8], 0
je 0x1401c55b5
cmp word [rbp + 0x2da], 0
je 0x1401c55bd
cmp word [rbp + 0x2dc], 0
je 0x1401c55c5
cmp word [rbp + 0x2de], 0
je 0x1401c55cd
cmp word [rbp + 0x2e0], 0
je 0x1401c55d5
cmp word [rbp + 0x2e2], 0
je 0x1401c55dd
cmp word [rbp + 0x2e4], 0
je 0x1401c55e5
cmp word [rbp + 0x2e6], 0
je 0x1401c55ed
cmp word [rbp + 0x2e8], 0
je 0x1401c5606
cmp word [rbp + 0x2ea], 0
je 0x1401c560e
cmp word [rbp + 0x2ec], 0
je 0x1401c5616
cmp word [rbp + 0x2ee], 1
mov r14d, 0x20
sbb r14, 0
jmp 0x1401c561c
mov eax, 1
mov qword [rbp + 0x300], rax
xor eax, eax
mov qword [rbp + 0x310], rax
jmp 0x1401c56ea
mov r14d, 1
jmp 0x1401c561c
mov r14d, 2
jmp 0x1401c561c
mov r14d, 3
jmp 0x1401c561c
mov r14d, 4
jmp 0x1401c561c
mov r14d, 5
jmp 0x1401c561c
mov r14d, 6
jmp 0x1401c561c
mov r14d, 7
jmp 0x1401c561c
mov r14d, 8
jmp 0x1401c561c
mov r14d, 9
jmp 0x1401c561c
mov r14d, 0xa
jmp 0x1401c561c
mov r14d, recv
jmp 0x1401c561c
mov r14d, recv
jmp 0x1401c561c
mov r14d, reloc.WS2_32.dll_listen
jmp 0x1401c561c
mov r14d, recv
jmp 0x1401c561c
mov r14d, recv
jmp 0x1401c561c
mov r14d, reloc.WS2_32.dll_recv
jmp 0x1401c561c
mov r14d, setsockopt
jmp 0x1401c561c
mov r14d, reloc.WS2_32.dll_select
jmp 0x1401c561c
mov r14d, reloc.WS2_32.dll_send
jmp 0x1401c561c
mov r14d, setsockopt
jmp 0x1401c561c
mov r14d, reloc.WS2_32.dll_setsockopt
jmp 0x1401c561c
mov r14d, 0x16
jmp 0x1401c561c
mov r14d, 0x17
jmp 0x1401c561c
mov r14d, 0x18
jmp 0x1401c561c
mov r14d, 0x19
jmp 0x1401c561c
mov r14d, 0x1a
jmp 0x1401c561c
mov r14d, 0x1b
jmp 0x1401c561c
lea r8, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sysinfo_0.29.10_srcwindowsdisk.rs
mov edx, 0x105
call fcn.14021d680
mov r14d, 0x1c
jmp 0x1401c561c
mov r14d, 0x1d
jmp 0x1401c561c
mov r14d, 0x1e
movzx eax, byte [0x140b65265]
mov edx, 1
mov rcx, r14
call fcn.14001a120
test rax, rax
je 0x1401c56d8
cmp r14, 0x10
mov qword [rbp + 0x310], r14
mov qword [rbp + 0x300], rax
jae 0x1401c5654
xor edx, edx
jmp 0x1401c5a8d
mov edx, r14d
and edx, 0x30
movdqa xmm0, xmmword [0x140a35cf0]
movdqa xmm1, xmmword [rbp + 0x2b0]
pand xmm1, xmm0
movdqa xmm2, xmmword [rbp + 0x2c0]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [rax], xmm1
cmp rdx, 0x10
je 0x1401c5a84
movdqa xmm1, xmmword [rbp + 0x2d0]
pand xmm1, xmm0
movdqa xmm2, xmmword [rbp + 0x2e0]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [rax + 0x10], xmm1
cmp edx, 0x20
je 0x1401c5a84
movdqa xmm1, xmmword [rbp + 0x2f0]
pand xmm1, xmm0
pand xmm0, xmmword [rbp + 0x300]
packuswb xmm1, xmm0
movdqu xmmword [rax + 0x20], xmm1
jmp 0x1401c5a84
mov ecx, 1
mov rdx, r14
call fcn.14021cf70
jmp 0x1401c5a82
movabs rax, 0x5c002e005c005c
mov qword [rbp + 0x238], rax
mov word [rbp + 0x240], di
mov dword [rbp + 0x242], 0x3a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rbp + 0x238]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x1401c58b9
mov qword [rbp + 0x2a8], rax
mov r14, r12
mov qword [rbp + 0x208], 0
mov qword [rbp + 0x280], 0
lea rdi, [rbp + 0x308]
lea r8, [rbp + 0x208]
lea r9, [rbp + 0x280]
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x1401c58d1
mov r12, qword [rbp + 0x208]
test r12, r12
mov rcx, qword [rbp + 0x2a8]
je 0x1401c58d8
mov r13, qword [rbp + 0x280]
mov qword [rbp + 0x1fc], 7
mov byte [rbp + 0x204], 0
mov dword [rbp + 0x250], 0
mov qword [rbp + 0x248], 0
mov dword [rbp + 0x2fc], 0
lea rax, [rbp + 0x2fc]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x248]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], recv
lea r8, [rbp + 0x1fc]
mov edx, 0x2d1400
mov r9d, recv
call sub.KERNEL32.dll_DeviceIoControl
xor r15d, r15d
cmp byte [rbp + 0x250], 0
sete r15b
cmp dword [rbp + 0x2fc], 0xc
mov ecx, 2
cmovne r15, rcx
test eax, eax
cmove r15, rcx
lea rcx, [rbp + 0x280]
mov rdx, qword [rbp + 0x2a0]
mov r8, rbx
call fcn.1401f0af0
mov rax, qword [rbp + 0x280]
mov qword [rbp + 0x278], rax
mov rax, qword [rbp + 0x288]
mov qword [rbp + 0x258], rax
movdqu xmm0, xmmword [rbp + 0x290]
movdqa xmmword [rbp + 0x1d0], xmm0
mov rbx, qword [rbp + 0x310]
test rbx, rbx
je 0x1401c58e9
movzx eax, byte [0x140b65265]
mov edx, 1
mov rcx, rbx
call fcn.14001a120
test rax, rax
jne 0x1401c58ee
mov ecx, 1
mov rdx, rbx
call fcn.14021cf70
jmp 0x1401c5a82
mov rcx, 0xffffffffffffffff
call sub.KERNEL32.dll_CloseHandle
mov qword [rsi], 3
jmp 0x1401c5a29
mov rcx, qword [rbp + 0x2a8]
mov qword [rsi], 3
call sub.KERNEL32.dll_CloseHandle
jmp 0x1401c5a29
mov eax, 1
mov qword [rbp + 0x260], rax
mov rcx, rax
mov rdx, qword [rbp + 0x300]
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rbp + 0x308]
movzx eax, byte [0x140b65265]
mov ecx, 8
mov edx, 2
call fcn.14001a120
test rax, rax
je 0x1401c5a73
mov qword [rbp + 0x268], rax
mov qword [rax], rbx
mov qword [rbp + 0x280], rdi
mov qword [rbp + 0x288], r14
mov word [rbp + 0x290], 0
lea rcx, [rbp + 0x208]
lea rdx, [rbp + 0x280]
call fcn.1401c3070
cmp dword [rbp + 0x274], 2
movaps xmm0, xmmword [rbp + 0x1d0]
movaps xmmword [rbp + 0x1e0], xmm0
movups xmm0, xmmword [rbp + 0x208]
movaps xmmword [rbp + 0x280], xmm0
mov rax, qword [rbp + 0x218]
mov qword [rbp + 0x290], rax
mov qword [rsi], r15
mov qword [rsi + 8], 0xffffffffffffffff
mov rax, qword [rbp + 0x278]
mov qword [rsi + 0x10], rax
mov rax, qword [rbp + 0x258]
mov qword [rsi + 0x18], rax
movaps xmm0, xmmword [rbp + 0x1e0]
movups xmmword [rsi + 0x20], xmm0
mov rax, qword [rbp + 0x310]
mov qword [rsi + 0x30], rax
mov rcx, qword [rbp + 0x260]
mov qword [rsi + 0x38], rcx
mov qword [rsi + 0x40], rax
mov qword [rsi + 0x48], 4
mov rax, qword [rbp + 0x268]
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x58], 4
movdqa xmm0, xmmword [rbp + 0x280]
movdqu xmmword [rsi + 0x60], xmm0
mov rax, qword [rbp + 0x290]
mov qword [rsi + 0x70], rax
mov qword [rsi + 0x78], r12
mov qword [rsi + 0x80], r13
sete byte [rsi + 0x88]
mov rcx, qword [rbp + 0x2a8]
call sub.KERNEL32.dll_CloseHandle
cmp word [rbp + 0x31e], 0
je 0x1401c5a4c
mov r8d, 1
mov rcx, qword [rbp + 0x300]
mov rdx, qword [rbp + 0x310]
call fcn.14001a130
mov rdx, qword [rbp + 0x220]
test rdx, rdx
je 0x1401c5290
mov r8d, 1
mov rcx, qword [rbp + 0x2a0]
call fcn.14001a130
jmp 0x1401c5290
mov ecx, 2
mov edx, 8
call fcn.14021cf70
ud2
cmp r14, rdx
je 0x1401c56ea
movzx ecx, byte [rbp + rdx*2 + 0x2b0]
mov byte [rax + rdx], cl
inc rdx
jmp 0x1401c5a84