Function at 0x7ff7cbf51198
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x7ff7cbf93a08]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rcx
mov qword [rbp - 0x41], rcx
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
lea r8d, [r12 + 3]
mov dword [rsp + 0x20], r8d
xor r9d, r9d
xor edx, edx
lea rcx, [0x7ff7cbf83d28]
call qword [sym.imp.kernel32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff7cbf51214
mov qword [rbx], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r12b
jmp 0x7ff7cbf513e7
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
lea rax, [0x7ff7cbf2a910]
mov qword [rbp - 9], rax
mov qword [rbp - 1], rdi
mov qword [rbp - 0x35], r12
mov dword [rbp - 0x39], r12d
mov qword [rbp - 0x41], r12
mov dword [rbp - 0x49], r12d
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rbp - 0x39]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x7ff7cbf5128c
mov qword [rbx], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r12b
jmp 0x7ff7cbf513d8
mov r15d, dword [rbp - 0x3d]
mov ecx, r15d
call fcn.7ff7cbf78368
mov rsi, rax
test rax, rax
je 0x7ff7cbf512af
mov r8d, r15d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x7ff7cbf512b2
mov rsi, r12
mov qword [rbp + 0x27], rsi
mov qword [rsp + 0x38], r12
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rsi
mov r9d, 0xc
lea r8, [rbp - 0x39]
mov edx, 0x2d1400
mov rcx, rdi
call qword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
jne 0x7ff7cbf5130f
mov qword [rbx], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r12b
test rsi, rsi
je 0x7ff7cbf5130a
mov rcx, rsi
call fcn.7ff7cbf77c70
nop
jmp 0x7ff7cbf513d8
cmp dword [rsi + 0x18], r12d
jne 0x7ff7cbf51335
mov qword [rbx], r12
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 0xf
mov byte [rbx], r12b
mov rcx, rsi
call fcn.7ff7cbf77c70
nop
jmp 0x7ff7cbf513d8
mov edx, dword [rsi + 0x18]
add rdx, rsi
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], r12b
lea rcx, [rbp - 0x29]
call fcn.7ff7cbf3f4b0
nop
mov qword [rbp + 7], r12
mov qword [rbp + 0x17], r12
mov qword [rbp + 0x1f], r12
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 7]
call fcn.7ff7cbf3ba50
movups xmm0, xmmword [rbp + 7]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rbx + 0x10], xmm1
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x7ff7cbf513bf
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff7cbf513ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff7cbf513ba
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff7cbf77c70
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], 0xf
mov byte [rbp - 0x29], r12b
mov rcx, rsi
call fcn.7ff7cbf77c70
nop
test rdi, rdi
je 0x7ff7cbf513e7
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.7ff7cbf77d90
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret