Function at 0x14017bea0
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x908]
sub rsp, 0x9e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rbp + 0x8d0], rax
mov r12, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x50], r14
lea r13, [r14 - 1]
lea r15d, [r14 + 1]
nop dword [rax + rax]
mov rbx, r14
mov qword [rsp + 0x48], rbx
mov r9d, esi
lea r8, str..PhysicalDrive_d
mov edx, 0x200
lea rcx, [rbp + 0x6d0]
call fcn.1400ab850
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
lea rcx, [rbp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14017bf65
call fcn.14007d550
mov rdi, r14
test eax, eax
je 0x14017bf6d
jmp 0x14017c4c6
mov rbx, rax
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0x3e8
lea rcx, [rbp + 0x2e0]
call fcn.140289490
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x7c], rax
mov dword [rsp + 0x78], r14d
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x3e8
lea rax, [rbp + 0x2e0]
mov qword [rsp + 0x20], rax
mov r9d, listen
lea r8, [rsp + 0x78]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14017c4b3
test rdi, rdi
je 0x14017bff1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, r14
mov qword [rsp + 0x48], rbx
cmp byte [rbp + 0x2ea], 0
jne 0x14017c4b3
mov eax, dword [rbp + 0x2fc]
cmp eax, 0xe
ja 0x14017c017
mov ecx, 0x4492
bt ecx, eax
jb 0x14017c4b3
cmp eax, 0xf
je 0x14017c4b3
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x14017c617
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rsp + 0x60], rax
call fcn.14000b190
mov rcx, rax
test rax, rax
je 0x14017c60c
mov rax, qword [rax]
call qword [rax + SafeArrayCopy]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
movzx ecx, sil
call fcn.14017b9e0
test eax, eax
je 0x14017c086
mov rdx, qword [rsp + 0x60]
cmp dword [rdx - 0x10], 0
jne 0x14017c507
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14017c0a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14017c0c5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbp + 0x2e4]
mov edi, dword [rbp + 0x2f8]
cmp edi, eax
jae 0x14017c330
mov ebx, dword [rbp + 0x2ec]
cmp ebx, eax
jae 0x14017c330
cmp dword [rbp + 0x2f0], eax
jae 0x14017c330
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1d0]
call fcn.140289490
test edi, edi
je 0x14017c326
mov dword [rbp - 0x70], 0x11c
mov edi, r15d
mov rbx, qword [0x1403db4f8]
test rbx, rbx
jne 0x14017c173
xor eax, eax
lock cmpxchg dword [0x1403db3d0], r15d
jne 0x14017c143
call fcn.14017a530
mov dword [0x1403db3d0], 2
jmp 0x14017c169
mov eax, dword [0x1403db3d0]
cmp eax, 2
je 0x14017c164
nop
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1403db3d0]
cmp eax, 2
jne 0x14017c150
call fcn.14017a530
mov rbx, rax
mov qword [0x1403db4f8], rax
cmp dword [rbx + 8], 0xffffffff
je 0x14017c1fb
lea rcx, [rbx + 0xc]
lea rdx, [rbp - 0x70]
mov eax, 2
nop word [rax + rax]
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rax, 1
jne 0x14017c190
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov eax, dword [rcx + 0x18]
mov dword [rdx + 0x18], eax
jmp 0x14017c2a6
xor edx, edx
mov r8d, 0x11c
lea rcx, [rbp + 0xb0]
call fcn.140289490
mov dword [rbp + 0xb0], 0x11c
lea rdx, [rbp + 0xb0]
mov rcx, rbx
call fcn.140179840
test eax, eax
je 0x14017c2b7
lea rcx, [rbp - 0x70]
lea rdx, [rbp + 0xb0]
mov eax, 2
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rdx + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rdx, [rdx + 0x80]
sub rax, 1
jne 0x14017c240
movups xmm0, xmmword [rdx]
movups xmmword [rcx], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
cmp dword [rbp - 0x6c], 6
ja 0x14017c2b4
jne 0x14017c2b7
cmp dword [rbp - 0x68], 2
jb 0x14017c2b7
mov edi, r14d
mov eax, dword [rbp + 0x2f8]
lea r9, [rbp + 0x2e0]
add r9, rax
mov edx, 0x104
lea rcx, [rbp + 0x1d0]
lea rax, [rbp + 0x1d0]
sub r9, rax
nop dword [rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14017c300
movzx eax, byte [r9 + rcx]
test al, al
je 0x14017c300
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x14017c2e0
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
mov r8d, edi
mov rdx, r12
lea rcx, [rbp + 0x1d0]
call fcn.14017c720
mov ebx, dword [rbp + 0x2ec]
mov rax, qword [r12]
cmp dword [rax - 0x10], 0
jne 0x14017c343
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14017c4c6
jmp 0x14017c4bb
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1d0]
call fcn.140289490
test ebx, ebx
je 0x14017c378
mov eax, ebx
lea r8, [rbp + 0x2e0]
add r8, rax
mov edx, 0x104
lea rcx, [rbp + 0x1d0]
call fcn.14017c640
cmp byte [rbp + 0x1d0], 0
je 0x14017c395
lea rdx, [0x14032d0d4]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [rbp + 0x2f0]
test eax, eax
je 0x14017c3ba
lea r8, [rbp + 0x2e0]
add r8, rax
mov edx, 0x104
lea rcx, [rbp + 0x1d0]
call fcn.14017c640
cmp byte [rbp + 0x1d0], 0
je 0x14017c4a0
lea rdx, [0x14032d0d4]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
lea rax, [rbp + 0x1d0]
mov rcx, r13
inc rcx
cmp byte [rax + rcx], 0
jne 0x14017c3e5
lea r15, [rbp + 0x1d0]
mov rax, qword [r12]
lea rdi, [rbp + 0x1d0]
sub rdi, rax
mov esi, dword [rax - 0x10]
test ecx, ecx
js 0x14017c628
movsxd rdx, ecx
lea rcx, [rbp + 0x1d0]
call fcn.14028c7bc
mov r14, rax
mov ecx, 0x7fffffff
sub ecx, eax
cmp ecx, esi
jl 0x14017c628
lea ebx, [rsi + rax]
test ebx, ebx
js 0x14017c628
mov r8, qword [r12]
mov ecx, 1
sub ecx, dword [r8 - 8]
mov eax, dword [r8 - 0xc]
sub eax, ebx
or eax, ecx
jge 0x14017c45f
mov edx, ebx
mov rcx, r12
call fcn.1400107b0
mov r8, qword [r12]
cmp rdi, rsi
ja 0x14017c468
lea r15, [rdi + r8]
movsxd rdx, r14d
lea rcx, [r8 + rsi]
mov r9, rdx
mov r8, r15
call fcn.140015050
mov rax, qword [r12]
cmp ebx, dword [rax - 0xc]
jg 0x14017c628
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [r12]
mov byte [rcx + rax], 0
mov esi, dword [rsp + 0x40]
xor r14d, r14d
lea r15d, [r14 + 1]
mov rax, qword [r12]
cmp dword [rax - 0x10], 0
jne 0x14017c5f4
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14017c4c6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], r14
inc esi
mov dword [rsp + 0x40], esi
cmp esi, 0x10
jl 0x14017bf00
xor eax, eax
mov rcx, qword [rbp + 0x8d0]
xor rcx, rsp
call fcn.140172190
lea r11, [rsp + 0x9e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdi, [rdx - 0x18]
mov rbx, qword [r12]
sub rbx, 0x18
cmp rdi, rbx
je 0x14017c5ab
cmp dword [rbx + 0x10], 0
jl 0x14017c59f
mov rcx, qword [rdi]
cmp rcx, qword [rbx]
jne 0x14017c59f
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi + 0x10], 0
jl 0x14017c547
cmp rax, qword [rdi]
jne 0x14017c547
mov rsi, rdi
lock inc dword [rdi + 0x10]
jmp 0x14017c57c
mov rax, qword [rax]
mov r8d, r15d
mov edx, dword [rdi + 8]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x14017c622
mov eax, dword [rdi + 8]
mov dword [rsi + 8], eax
mov eax, dword [rdi + 8]
inc eax
movsxd rdx, eax
lea r8, [rdi + 0x18]
lea rcx, [rsi + 0x18]
mov r9, rdx
call fcn.140015050
mov eax, r13d
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x14017c595
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsi + 0x18]
mov qword [r12], rax
jmp 0x14017c5ab
mov r8d, dword [rdx - 0x10]
mov rcx, r12
call fcn.14002edf0
mov rbx, qword [rsp + 0x68]
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, r12
call fcn.14017b900
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14017c5db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock xadd dword [rdi + 0x10], r13d
sub r13d, 1
jg 0x14017c5f4
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14017c604
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r15d
jmp 0x14017c4d7
mov ecx, 0x80004005
call fcn.14000adf0
nop
mov ecx, 0x80004005
call fcn.14000adf0
nop
call fcn.14000bf60
nop
mov ecx, 0x80070057
call fcn.14000adf0
int3