Function at 0x1400033b0
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3140]
mov eax, 0x3240
call fcn.14003dfd0
sub rsp, rax
mov rax, qword [0x14007c668]
xor rax, rsp
mov qword [rbp + 0x3130], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rbp + 0x20d0]
mov r8d, 0x1010
call fcn.14003fab0
mov rcx, qword [rsi]
lea rax, [rsp + 0x40]
xor edi, edi
mov dword [rbp + 0x20b8], 3
mov qword [rsp + 0x38], rdi
lea r8, [rbp + 0x20b0]
mov qword [rsp + 0x30], rax
mov r9d, 0x1030
lea rax, [rbp + 0x20b0]
mov dword [rsp + 0x28], 0x1030
mov edx, 0x2d1400
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x20bc], 1
mov dword [rbp + 0x20c8], 0x28
mov dword [rbp + 0x20cc], 0x1000
mov qword [rbp + 0x20b0], 0x31
mov qword [rbp + 0x20c0], 1
mov dword [rsp + 0x40], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
test eax, eax
je 0x1400034a7
mov r9d, 0x200
mov dword [rsi + 0x910], 0x11
mov edx, r9d
lea rcx, [rsi + 8]
lea r8, [rbp + 0x20e0]
call fcn.14000a0a0
mov eax, ebx
jmp 0x1400039f5
mov rcx, qword [rsi]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 8
mov edx, 0x41018
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x3268], r14
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400039eb
movzx r9d, byte [rsp + 0x4c]
lea r8, str..Scsi_d:
xor eax, eax
lea rcx, [rbp + 0x30e0]
mov qword [rbp + 0x30e0], rax
mov qword [rbp + 0x30e8], rax
mov qword [rbp + 0x30f0], rax
lea rdx, [rax - 1]
mov qword [rbp + 0x30f8], rax
mov qword [rbp + 0x3100], rax
mov qword [rbp + 0x3108], rax
mov qword [rbp + 0x3110], rax
mov qword [rbp + 0x3118], rax
mov qword [rbp + 0x3120], rax
call fcn.1400028c0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
lea rcx, [rbp + 0x30e0]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400039eb
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x1098
call fcn.14003fab0
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x60]
movabs rax, 0x696e694d656d764e
mov dword [rsp + 0x70], 0xe0002000
mov qword [rsp + 0x64], rax
mov r9d, 0x1098
lea rax, [rsp + 0x40]
mov dword [rsp + 0x60], 0x1c
mov qword [rsp + 0x30], rax
mov edx, 0x4d008
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 0x1098
mov rcx, r14
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x6c], 0x28
mov dword [rsp + 0x78], 0x107c
mov dword [rbp - 0x14], 0x1000
mov dword [rbp - 0xc], 0x1098
mov dword [rbp - 0x1c], 2
mov qword [rbp - 0x6c], 6
mov dword [rbp - 0x44], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, 0x1f8
cmp eax, 1
jne 0x140003719
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rax, rdi
nop dword [rax]
movd xmm1, dword [rbp + rax - 8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm1, xmm3
movdqa xmm3, xmm1
movd xmm1, dword [rbp + rax - 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
paddd xmm1, xmm2
movdqa xmm2, xmm1
cmp rax, rbx
jl 0x140003640
paddd xmm2, xmm3
mov edx, edi
movdqa xmm0, xmm2
mov r8d, edi
psrldq xmm0, 8
mov rcx, rbx
paddd xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd r9d, xmm2
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 8]
add edx, eax
movzx eax, byte [rbp + rcx - 7]
add r8d, eax
add rcx, 2
cmp rcx, 0x1fd
jl 0x1400036b0
cmp rcx, 0x1fe
jge 0x1400036dd
movzx eax, byte [rbp + rcx - 8]
add r9d, eax
lea ecx, [rdx + r8]
add r9d, ecx
je 0x140003719
mov r9d, 0x200
lea rcx, [rsi + 8]
mov edx, r9d
lea r8, [rbp - 8]
call fcn.14000a0a0
mov rcx, r14
mov dword [rsi + 0x910], 0x10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400039ed
xor edx, edx
lea rcx, [rbp + 0x1000]
mov r8d, 0x10a4
call fcn.14003fab0
movabs rax, 0x6d764e6c65746e49
mov qword [rsp + 0x38], rdi
mov qword [rbp + 0x1004], rax
lea r8, [rbp + 0x1000]
movzx eax, byte [rsp + 0x4d]
mov r9d, 0x10a4
mov byte [rbp + 0x101d], al
mov edx, 0x4d008
mov eax, dword [rbp + 0x1020]
mov rcx, r14
and eax, 0xffffff06
mov dword [rbp + 0x1000], 0x1c
or eax, 6
mov dword [rbp + 0x100c], 0xa
mov dword [rbp + 0x1020], eax
mov eax, dword [rbp + 0x1048]
and eax, 0xfffffffd
mov dword [rbp + 0x1010], 0xf0002808
or eax, 1
mov dword [rbp + 0x1018], 0x1088
mov dword [rbp + 0x1048], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1000]
mov dword [rsp + 0x28], 0x10a4
mov qword [rsp + 0x20], rax
mov byte [rbp + 0x101c], 1
mov dword [rbp + 0x1024], edi
mov dword [rbp + 0x1074], 0xa4
mov dword [rbp + 0x1078], 0x1000
mov dword [rbp + 0x1060], edi
mov dword [rsp + 0x50], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14000383a
mov r9d, 0x200
lea rcx, [rsi + 8]
mov edx, r9d
lea r8, [rbp + 0x10a4]
call fcn.14000a0a0
mov rcx, r14
mov dword [rsi + 0x910], 0x15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400039ed
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x1098
call fcn.14003fab0
movzx ecx, byte [rsp + 0x4e]
lea r8, [rbp + 0x20b0]
shl ecx, 8
movabs rax, 0x44494152656d764e
mov qword [rsp + 0x64], rax
mov r9d, 0x1098
movzx eax, byte [rsp + 0x4d]
mov edx, 0x4d008
shl eax, 0x10
add ecx, eax
mov qword [rsp + 0x38], rdi
movzx eax, byte [rsp + 0x4f]
add eax, 0x86000000
mov dword [rsp + 0x70], 0xe0002000
add ecx, eax
mov dword [rsp + 0x6c], 0x28
lea rax, [rsp + 0x40]
mov dword [rsp + 0x74], ecx
mov qword [rsp + 0x30], rax
mov rcx, r14
lea rax, [rbp + 0x20b0]
mov dword [rsp + 0x28], 0x1098
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 0x1c
mov dword [rsp + 0x78], 0x107c
mov qword [rbp - 0x1c], 2
mov qword [rbp - 0x14], 0x1000
mov dword [rbp - 0xc], 0x1098
mov qword [rbp - 0x6c], 6
mov dword [rbp - 0x44], 1
mov byte [rbp - 8], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x1400039e2
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rax, rdi
nop word [rax + rax]
movd xmm1, dword [rbp + rax - 8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
paddd xmm1, xmm3
movdqa xmm3, xmm1
movd xmm1, dword [rbp + rax - 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
paddd xmm1, xmm2
movdqa xmm2, xmm1
cmp rax, rbx
jl 0x140003920
paddd xmm2, xmm3
mov ecx, edi
movdqa xmm0, xmm2
psrldq xmm0, 8
paddd xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd edx, xmm2
nop dword [rax]
movzx eax, byte [rbp + rbx - 8]
add edi, eax
movzx eax, byte [rbp + rbx - 7]
add ecx, eax
add rbx, 2
cmp rbx, 0x1fd
jl 0x140003980
cmp rbx, 0x1fe
jge 0x1400039ab
movzx eax, byte [rbp + rbx - 8]
add edx, eax
lea eax, [rcx + rdi]
add edx, eax
je 0x1400039e2
mov r9d, 0x200
lea rcx, [rsi + 8]
mov edx, r9d
lea r8, [rbp - 8]
call fcn.14000a0a0
mov rcx, r14
mov dword [rsi + 0x910], 0x16
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400039ed
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov r14, qword [rsp + 0x3268]
mov rcx, qword [rbp + 0x3130]
xor rcx, rsp
call fcn.14003e040
mov rbx, qword [rsp + 0x3270]
add rsp, 0x3240
pop rdi
pop rsi
pop rbp
ret