Function at 0x140002290
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14000d008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [rsi + 3]
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140002399
mov qword [rsp + 0x54], rsi
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x48], rsi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 0xc]
lea r8, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140002390
mov edi, dword [rsp + 0x4c]
mov ecx, edi
call fcn.140006718
mov r14, rax
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
lea r9d, [rsi + 0xc]
lea r8, [rsp + 0x50]
mov edx, 0x2d1400
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400023c0
mov rcx, r14
call fcn.1400066d4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov edi, 0xf
mov qword [rbx + 0x18], rdi
mov byte [rbx], sil
xor r8d, r8d
lea rdx, [0x1400085c9]
mov rcx, rbx
call fcn.140006140
jmp 0x1400024f5
mov eax, dword [r14 + 0x18]
test eax, eax
je 0x140002388
lea rdx, [r14 + rax]
mov qword [rsp + 0x70], rsi
mov edi, 0xf
mov qword [rsp + 0x78], rdi
mov byte [rsp + 0x60], sil
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], sil
jne 0x1400023e7
lea rcx, [rsp + 0x60]
call fcn.140006140
nop
mov rcx, r14
call fcn.1400066d4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rsi
lea r12, [rsp + 0x60]
mov rbp, qword [rsp + 0x60]
mov r15, qword [rsp + 0x78]
cmp r15, 0x10
cmovae r12, rbp
mov r14, qword [rsp + 0x70]
cmp r14, 0x10
jae 0x140002440
movups xmm0, xmmword [r12]
movups xmmword [rbx], xmm0
jmp 0x1400024b3
mov rdi, r14
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140002494
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002524
mov rcx, rax
call fcn.1400066dc
test rax, rax
je 0x14000248d
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400024a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x1400024a1
call fcn.1400066dc
mov rsi, rax
mov qword [rbx], rsi
lea r8, [r14 + 1]
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], rdi
cmp r15, 0x10
jb 0x1400024f5
lea rdx, [r15 + 1]
mov rax, rbp
cmp rdx, 0x1000
jb 0x1400024ed
add rdx, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024ed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbp
call fcn.1400066d4
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400066b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.140001170
nop
int3