Function at 0x180066410
Capabilities:
Get storage device properties

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7e8]
sub rsp, 0x8c0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov r12, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x40], r14d
mov r15d, 0x4492
lea r13, [r14 - 1]
nop dword [rax + rax]
mov rbx, r14
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r14
mov r9d, esi
lea r8, [0x1800fe5b8]
mov edx, 0x200
lea rcx, [rbp + 0x5b0]
call fcn.18002d560
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 + 0x5b0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800664da
call fcn.1800213a0
mov rdi, r14
test eax, eax
je 0x1800664e2
jmp 0x1800668b8
mov rbx, rax
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0x3e8
lea rcx, [rbp + 0x1c0]
call fcn.1800abaa0
mov qword [rsp + 0x7c], 0
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 + 0x1c0]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x78]
mov edx, 0x2d1400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1800668a5
test rdi, rdi
je 0x180066563
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, r14
mov qword [rsp + 0x48], rbx
cmp byte [rbp + 0x1ca], 0
jne 0x1800668a5
mov eax, dword [rbp + 0x1dc]
cmp eax, 0xe
ja 0x180066585
bt r15d, eax
jb 0x1800668a5
cmp eax, 0xf
je 0x1800668a5
call fcn.180025f00
test rax, rax
je 0x1800669d2
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
call fcn.180025f00
test rax, rax
je 0x1800669c7
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
movzx ecx, sil
call fcn.180065ef0
test eax, eax
je 0x1800665f4
mov rdx, qword [rsp + 0x60]
cmp dword [rdx - 0x10], 0
jne 0x180066905
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180066614
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180066633
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov edi, dword [rbp + 0x1d8]
mov eax, dword [rbp + 0x1c4]
cmp edi, eax
jae 0x1800668f9
mov ebx, dword [rbp + 0x1cc]
cmp ebx, eax
jae 0x1800668f9
cmp dword [rbp + 0x1d0], eax
jae 0x1800668f9
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xb0]
call fcn.1800abaa0
test edi, edi
je 0x180066716
mov dword [rbp - 0x70], 0x11c
mov ebx, 1
lea rcx, [rbp - 0x70]
call fcn.180024510
test eax, eax
je 0x1800666a7
cmp dword [rbp - 0x6c], 6
ja 0x1800666a4
jne 0x1800666a7
cmp dword [rbp - 0x68], 2
jb 0x1800666a7
mov ebx, r14d
mov eax, dword [rbp + 0x1d8]
lea r9, [rbp + 0x1c0]
add r9, rax
mov edx, 0x104
lea rcx, [rbp + 0xb0]
lea rax, [rbp + 0xb0]
sub r9, rax
nop dword [rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1800666f0
movzx eax, byte [r9 + rcx]
test al, al
je 0x1800666f0
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x1800666d0
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
mov r8d, ebx
mov rdx, r12
lea rcx, [rbp + 0xb0]
call fcn.180065be0
mov ebx, dword [rbp + 0x1cc]
mov rax, qword [r12]
cmp dword [rax - 0x10], 0
jne 0x180066733
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800668b8
jmp 0x1800668ad
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xb0]
call fcn.1800abaa0
test ebx, ebx
je 0x180066768
mov eax, ebx
lea r8, [rbp + 0x1c0]
add r8, rax
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.180060ed0
cmp byte [rbp + 0xb0], 0
je 0x180066785
lea rdx, [0x1800fc65c]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [rbp + 0x1d0]
test eax, eax
je 0x1800667aa
lea r8, [rbp + 0x1c0]
add r8, rax
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.180060ed0
cmp byte [rbp + 0xb0], 0
je 0x180066892
lea rdx, [0x1800fc65c]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_StrTrimA]
lea rax, [rbp + 0xb0]
mov rcx, r13
inc rcx
cmp byte [rax + rcx], 0
jne 0x1800667d5
lea r15, [rbp + 0xb0]
mov rax, qword [r12]
lea rsi, [rbp + 0xb0]
sub rsi, rax
mov edi, dword [rax - 0x10]
test ecx, ecx
js 0x1800669fe
movsxd rdx, ecx
lea rcx, [rbp + 0xb0]
call fcn.1800bc114
mov r14, rax
mov ecx, 0x7fffffff
sub ecx, eax
cmp ecx, edi
jl 0x1800669f3
lea ebx, [rdi + rax]
test ebx, ebx
js 0x1800669e8
mov r8, qword [r12]
mov ecx, 1
sub ecx, dword [r8 - 8]
mov eax, dword [r8 - 0xc]
sub eax, ebx
or eax, ecx
jge 0x18006684f
mov edx, ebx
mov rcx, r12
call fcn.180060c20
mov r8, qword [r12]
cmp rsi, rdi
ja 0x180066858
lea r15, [rsi + r8]
movsxd rdx, r14d
lea rcx, [rdi + r8]
mov r9d, r14d
mov r8, r15
call fcn.180060a00
mov rax, qword [r12]
cmp ebx, dword [rax - 0xc]
jg 0x1800669dd
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
mov r15d, 0x4492
mov rax, qword [r12]
cmp dword [rax - 0x10], 0
jne 0x1800669a8
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x1800668b8
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 0x180066470
xor eax, eax
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.18008f850
lea r11, [rsp + 0x8c0]
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
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800668b8
jmp 0x1800668ad
lea rdi, [rdx - 0x18]
mov rbx, qword [r12]
sub rbx, 0x18
cmp rdi, rbx
je 0x18006695f
cmp dword [rbx + 0x10], 0
jl 0x180066953
mov rax, qword [rbx]
cmp qword [rdi], rax
jne 0x180066953
mov rcx, rdi
call fcn.180060980
mov rsi, rax
mov ecx, r13d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x180066949
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [r8 + 8]
lea rax, [rsi + 0x18]
mov qword [r12], rax
jmp 0x18006695f
mov r8d, dword [rdx - 0x10]
mov rcx, r12
call fcn.180060a90
mov rbx, qword [rsp + 0x68]
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, r12
call fcn.1800640a0
nop
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18006698f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lock xadd dword [rdi + 0x10], r13d
sub r13d, 1
jg 0x1800669a8
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800669bd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], r14
mov eax, 1
jmp 0x1800668c9
mov ecx, 0x80004005
call fcn.1800220a0
nop
mov ecx, 0x80004005
call fcn.1800220a0
int3
mov ecx, 0x80070057
call fcn.1800220a0
int3
mov ecx, 0x80070057
call fcn.1800220a0
int3
mov ecx, 0x80070057
call fcn.1800220a0
int3
mov ecx, 0x80070057
call fcn.1800220a0
int3