Function at 0x140040f90
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, 0x3a8
mov rsi, rcx
mov eax, dword [rdx]
bt eax, r8d
jae 0x140041095
mov ebp, r8d
add ebp, 0x41
mov word [rsp + 0x40], bp
mov dword [rsp + 0x42], 0x5c003a
mov word [rsp + 0x46], 0
lea rcx, [rsp + 0x40]
call sub.kernel32.dll_GetDriveTypeW
mov edi, eax
lea eax, [rdi - 4]
cmp eax, 0xfffffffe
jb 0x140041095
lea rbx, [rsp + 0x19e]
mov r8d, 0x20a
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movdqu xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x38], 0x20
lea rcx, [rsp + 0x40]
mov rdx, rbx
mov r8d, 0x105
xor r9d, r9d
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x140041095
mov ecx, 2
nop word cs:[rax + rax]
cmp word [rsp + rcx*2 + 0x19a], 0
je 0x1400410b0
cmp word [rsp + rcx*2 + 0x19c], 0
je 0x1400410b6
cmp word [rsp + rcx*2 + 0x19e], 0
je 0x1400410b9
add rcx, 3
cmp rcx, 0x107
jne 0x140041060
mov ecx, 0x105
jmp 0x1400410c6
mov qword [rsi], 3
add rsp, 0x3a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add rcx, 0xfffffffffffffffe
jmp 0x1400410b9
dec rcx
cmp rcx, 0x106
jae 0x1400413d0
lea rax, [rsp + rcx*2]
add rax, 0x19e
mov qword [rsp + 0x98], rbx
mov qword [rsp + 0xa0], rax
mov word [rsp + 0xa8], 0
lea rcx, [rsp + 0xf8]
lea rdx, [rsp + 0x98]
call sym._ZN95__LT_alloc..string..String_u20_as_u20_core..iter..traits..collect..FromIterator_LT_char_GT__GT_9from_iter17hc93ff91b33eef
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x90], rax
mov r15, qword [rsp + 0x108]
movzx ebx, word [rsp + 0x50]
test bx, bx
je 0x1400412ba
cmp word [rsp + 0x52], 0
je 0x1400412c8
cmp word [rsp + 0x54], 0
je 0x1400412d3
cmp word [rsp + 0x56], 0
je 0x1400412de
cmp word [rsp + 0x58], 0
je 0x1400412e9
cmp word [rsp + 0x5a], 0
je 0x1400412f4
cmp word [rsp + 0x5c], 0
je 0x1400412ff
cmp word [rsp + 0x5e], 0
je 0x14004130a
cmp word [rsp + 0x60], 0
je 0x140041315
cmp word [rsp + 0x62], 0
je 0x140041320
cmp word [rsp + 0x64], 0
je 0x14004132b
cmp word [rsp + 0x66], 0
je 0x140041336
cmp word [rsp + 0x68], 0
je 0x140041341
cmp word [rsp + 0x6a], 0
je 0x14004134c
cmp word [rsp + 0x6c], 0
je 0x140041357
cmp word [rsp + 0x6e], 0
je 0x140041362
cmp word [rsp + 0x70], 0
je 0x14004136d
cmp word [rsp + 0x72], 0
je 0x140041378
cmp word [rsp + 0x74], 0
je 0x140041380
cmp word [rsp + 0x76], 0
je 0x140041388
cmp word [rsp + 0x78], 0
je 0x140041390
cmp word [rsp + 0x7a], 0
je 0x140041398
cmp word [rsp + 0x7c], 0
je 0x1400413a0
cmp word [rsp + 0x7e], 0
je 0x1400413a8
cmp word [rsp + 0x80], 0
je 0x1400413b0
cmp word [rsp + 0x82], 0
je 0x1400413b8
cmp word [rsp + 0x84], 0
je 0x1400413c0
cmp word [rsp + 0x86], 0
je 0x1400413c8
cmp word [rsp + 0x88], 0
je 0x1400413e3
cmp word [rsp + 0x8a], 0
je 0x1400413eb
cmp word [rsp + 0x8c], 0
je 0x1400413f3
cmp word [rsp + 0x8e], 1
mov r14d, 0x20
sbb r14, 0
jmp 0x1400413f9
mov r12d, 1
xor r14d, r14d
jmp 0x1400414dc
mov r14d, 1
jmp 0x1400413f9
mov r14d, 2
jmp 0x1400413f9
mov r14d, 3
jmp 0x1400413f9
mov r14d, 4
jmp 0x1400413f9
mov r14d, 5
jmp 0x1400413f9
mov r14d, 6
jmp 0x1400413f9
mov r14d, 7
jmp 0x1400413f9
mov r14d, 8
jmp 0x1400413f9
mov r14d, 9
jmp 0x1400413f9
mov r14d, 0xa
jmp 0x1400413f9
mov r14d, 0xb
jmp 0x1400413f9
mov r14d, 0xc
jmp 0x1400413f9
mov r14d, 0xd
jmp 0x1400413f9
mov r14d, 0xe
jmp 0x1400413f9
mov r14d, 0xf
jmp 0x1400413f9
mov r14d, 0x10
jmp 0x1400413f9
mov r14d, 0x11
jmp 0x1400413f9
mov r14d, 0x12
jmp 0x1400413f9
mov r14d, 0x13
jmp 0x1400413f9
mov r14d, 0x14
jmp 0x1400413f9
mov r14d, 0x15
jmp 0x1400413f9
mov r14d, 0x16
jmp 0x1400413f9
mov r14d, 0x17
jmp 0x1400413f9
mov r14d, 0x18
jmp 0x1400413f9
mov r14d, 0x19
jmp 0x1400413f9
mov r14d, 0x1a
jmp 0x1400413f9
mov r14d, 0x1b
jmp 0x1400413f9
lea r8, str.uq__
mov edx, 0x105
call dbg.slice_end_index_len_fail
ud2
mov r14d, 0x1c
jmp 0x1400413f9
mov r14d, 0x1d
jmp 0x1400413f9
mov r14d, 0x1e
mov rax, qword [str.Qp__]
movzx eax, byte [rax]
mov edx, 1
mov rcx, r14
call sym.__rust_alloc
test rax, rax
je 0x1400414b0
mov r12, rax
cmp r14, 0x10
jae 0x140041429
xor eax, eax
jmp 0x140041924
mov eax, r14d
and eax, 0x30
movdqa xmm0, xmmword [0x1402c6f70]
movdqa xmm1, xmmword [rsp + 0x50]
pand xmm1, xmm0
movdqa xmm2, xmmword [rsp + 0x60]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [r12], xmm1
cmp rax, 0x10
je 0x14004191b
movdqa xmm1, xmmword [rsp + 0x70]
pand xmm1, xmm0
movdqa xmm2, xmmword [rsp + 0x80]
pand xmm2, xmm0
packuswb xmm1, xmm2
movdqu xmmword [r12 + 0x10], xmm1
cmp eax, 0x20
je 0x14004191b
movdqa xmm1, xmmword [rsp + 0x90]
pand xmm1, xmm0
pand xmm0, xmmword [rsp + 0xa0]
packuswb xmm1, xmm0
movdqu xmmword [r12 + 0x20], xmm1
jmp 0x14004191b
mov ecx, 1
mov rdx, r14
call dbg.handle_alloc_error
jmp 0x1400418b2
mov qword [rsp + 0x168], r12
mov qword [rsp + 0x170], r14
mov qword [rsp + 0x178], r14
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0xd8], rax
mov word [rsp + 0xe0], bp
mov dword [rsp + 0xe2], 0x3a
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0xd8]
xor edx, edx
mov r8d, 3
xor r9d, r9d
call sub.kernel32.dll_CreateFileW
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x1400416db
mov ebp, ebx
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x140]
lea r9, [rsp + 0x98]
xor edx, edx
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x1400416f0
mov rax, qword [rsp + 0x140]
test rax, rax
mov ebx, ebp
je 0x1400416f2
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x15c], 7
mov byte [rsp + 0x164], 0
mov dword [rsp + 0xd0], 0
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0x4c], 0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0xc
lea r8, [rsp + 0x15c]
mov rcx, r13
mov edx, 0x2d1400
mov r9d, 0xc
call sub.kernel32.dll_DeviceIoControl
xor ebx, ebx
cmp byte [rsp + 0xd0], 0
sete bl
cmp dword [rsp + 0x4c], 0xc
mov ecx, 2
cmovne rbx, rcx
test eax, eax
cmove rbx, rcx
lea rcx, [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov r8, r15
call sym.std::sys::windows::os_str::Slice::to_owned::hedc02a4c8040a1d9
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xc0], rax
movdqu xmm0, xmmword [rsp + 0xa8]
movdqa xmmword [rsp + 0x180], xmm0
test r14, r14
je 0x140041740
mov rax, qword [str.Qp__]
movzx eax, byte [rax]
mov edx, 1
mov rcx, r14
call sym.__rust_alloc
mov r15, rax
test rax, rax
jne 0x140041746
mov ecx, 1
mov rdx, r14
call dbg.handle_alloc_error
jmp 0x1400418b2
mov rcx, 0xffffffffffffffff
call fcn.1402681e4
mov qword [rsi], 3
jmp 0x140041701
mov ebx, ebp
mov qword [rsi], 3
mov rcx, r13
call fcn.1402681e4
test bx, bx
je 0x140041717
mov r8d, 1
mov rcx, r12
mov rdx, r14
call sym.__rust_dealloc
mov rdx, qword [rsp + 0x100]
test rdx, rdx
je 0x14004109c
mov r8d, 1
mov rcx, qword [rsp + 0x90]
call sym.__rust_dealloc
jmp 0x14004109c
mov r15d, 1
mov rcx, r15
mov rdx, r12
mov r8, r14
call sym.memcpy
mov qword [rsp + 0x110], r15
mov qword [rsp + 0x118], r14
mov qword [rsp + 0x120], r14
mov r15, qword [rsp + 0x40]
mov rax, qword [str.Qp__]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 2
call sym.__rust_alloc
test rax, rax
je 0x1400418a3
mov qword [rax], r15
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x130], 4
mov qword [rsp + 0x138], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x46]
mov qword [rsp + 0xa0], rax
mov word [rsp + 0xa8], 0
lea rcx, [rsp + 0x140]
lea rdx, [rsp + 0x98]
call sym._ZN95__LT_alloc..string..String_u20_as_u20_core..iter..traits..collect..FromIterator_LT_char_GT__GT_9from_iter17hc93ff91b33eef
cmp edi, 2
mov rax, qword [rsp + 0xb8]
mov qword [rsi + 0x10], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsi + 0x18], rax
movaps xmm0, xmmword [rsp + 0x180]
movups xmmword [rsi + 0x20], xmm0
mov rax, qword [rsp + 0x120]
mov qword [rsi + 0x40], rax
movups xmm0, xmmword [rsp + 0x110]
movups xmmword [rsi + 0x30], xmm0
mov rax, qword [rsp + 0x138]
mov qword [rsi + 0x58], rax
movups xmm0, xmmword [rsp + 0x128]
movups xmmword [rsi + 0x48], xmm0
movdqu xmm0, xmmword [rsp + 0x140]
movdqu xmmword [rsi + 0x60], xmm0
mov rax, qword [rsp + 0x150]
mov qword [rsi + 0x70], rax
mov qword [rsi], rbx
mov qword [rsi + 8], 0xffffffffffffffff
mov rax, qword [rsp + 0xf0]
mov qword [rsi + 0x78], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsi + 0x80], rax
sete byte [rsi + 0x88]
mov rcx, r13
call fcn.1402681e4
test bp, bp
jne 0x140041706
jmp 0x140041717
mov ecx, 2
mov edx, 8
call dbg.handle_alloc_error
ud2
cmp r14, rax
je 0x1400414dc
movzx ecx, byte [rsp + rax*2 + 0x50]
mov byte [r12 + rax], cl
inc rax
jmp 0x14004191b