Function at 0x14011f034
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x140170608]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x44], edx
mov r13, r8
xor edx, edx
mov qword [rsp + 0x50], rcx
mov rbx, rcx
lea rcx, [rsp + 0x68]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
and dword [rsp + 0x40], 0
xor edi, edi
test r13, r13
jne 0x14011f0a3
lea r8, str.ppHeader
mov edx, 0x456
lea rcx, [0x140159650]
call fcn.14008388c
and qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
and qword [r13], rdi
lea r8, [rsp + 0x58]
and dword [rsp + 0x60], edi
mov r9d, 0xc
and dword [rsp + 0x5c], edi
mov edx, 0x2d1400
mov qword [rsp + 0x30], rax
mov rcx, rbx
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea rbx, [0x140170048]
test eax, eax
jne 0x14011f155
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x140170048]
cmp rcx, rbx
je 0x14011f13b
test byte [rcx + 0x1c], 1
je 0x14011f13b
cmp byte [rcx + 0x19], 2
jb 0x14011f13b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159780]
mov edx, 0x38
mov r9d, eax
call fcn.140004c78
mov rcx, qword [0x140170048]
movzx ebx, di
lea r14, [0x140170048]
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14011f402
mov ecx, dword [rsp + 0x78]
mov r14d, 0x108
mov eax, ecx
mov r15d, 0x38
not eax
lea ebp, [rcx + 0x50]
and ebp, eax
mov dword [rsp + 0x48], ebp
lea ebx, [r14 + 0x50]
add ebx, ecx
test rdi, rdi
je 0x14011f186
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, ebx
mov r12d, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rdi, rax
test rax, rax
je 0x14011f408
mov r8d, r12d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
and byte [rdi + 0x25], 0xfe
mov r9d, ebx
or byte [rdi + 0x25], 2
mov r8, rdi
mov ecx, dword [rsp + 0x44]
mov edx, 0x4d004
and qword [rsp + 0x38], 0
mov eax, ecx
sar eax, 8
mov word [rdi], r15w
mov word [rdi + 7], VarUI4FromDisp
mov dword [rdi + 0xc], r14d
mov dword [rdi + 0x10], 0x14
mov dword [rdi + 0x20], r15d
mov byte [rdi + 6], 0xa
mov byte [rdi + 0x24], 0x46
mov r12d, ebp
mov qword [rdi + 0x18], r12
mov byte [rdi + 0x26], al
mov eax, r14d
shr eax, 8
mov byte [rdi + 0x2b], al
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov byte [rdi + 0x27], cl
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
mov byte [rdi + 0x2c], r14b
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14011f3a5
test byte [rdi + 0x3a], 0xf
jne 0x14011f34f
add r12, rdi
movzx eax, byte [r12 + 1]
movzx ecx, byte [r12]
shl ecx, 8
or ecx, eax
movzx eax, byte [r12 + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [r12 + 3]
shl ecx, 8
or ecx, eax
lea ebp, [rcx + 4]
cmp ebp, 4
jb 0x14011f309
xor ebx, ebx
cmp ebp, r14d
jbe 0x14011f283
mov ecx, dword [rsp + 0x78]
mov r14d, ebp
mov ebp, dword [rsp + 0x48]
jmp 0x14011f172
mov ecx, ebp
mov r15d, ebp
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r14, rax
test rax, rax
jne 0x14011f2a7
mov ebx, 0x8007000e
lea r14, [0x140170048]
jmp 0x14011f3f2
mov r8, r15
mov rdx, r12
mov rcx, r14
call sub.msvcrt.dll_memcpy
mov qword [r13], r14
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x14011f3f2
test byte [rcx + 0x1c], 1
je 0x14011f3f2
cmp byte [rcx + 0x19], 5
jb 0x14011f3f2
mov eax, dword [rsp + 0x44]
lea r8, [0x140159780]
mov rcx, qword [rcx + 0x10]
mov edx, 0x3d
mov r9d, ebp
mov dword [rsp + 0x20], eax
call fcn.14000fe18
jmp 0x14011f3f2
mov rax, qword [0x140170048]
lea r14, [0x140170048]
cmp rax, r14
je 0x14011f345
test byte [rax + 0x1c], 1
je 0x14011f345
cmp byte [rax + 0x19], 2
jb 0x14011f345
mov edx, 0x3b
mov dword [rsp + 0x20], ecx
mov rcx, qword [rax + 0x10]
lea r8, [0x140159780]
lea r9d, [rdx - 0x37]
call fcn.14000fe18
mov ebx, 0x8000ffff
jmp 0x14011f3f2
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x14011f39e
test byte [rcx + 0x1c], 1
je 0x14011f39e
cmp byte [rcx + 0x19], 2
jb 0x14011f39e
movzx r8d, byte [rdi + 0x44]
mov edx, 0x3a
movzx eax, byte [rdi + 0x45]
movzx r9d, byte [rdi + 0x3a]
mov rcx, qword [rcx + 0x10]
and r9d, 0xf
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r8, [0x140159780]
call fcn.140077734
mov ebx, 1
jmp 0x14011f3f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
cmp rcx, r14
je 0x14011f3e4
test byte [rcx + 0x1c], 1
je 0x14011f3e4
cmp byte [rcx + 0x19], 2
jb 0x14011f3e4
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159780]
mov edx, 0x39
mov r9d, eax
call fcn.140004c78
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x140170048]
test ebx, ebx
jns 0x14011f444
jmp 0x14011f41b
mov rcx, qword [0x140170048]
lea r14, [0x140170048]
mov ebx, 0x8007000e
cmp rcx, r14
je 0x14011f444
test byte [rcx + 0x1c], 1
je 0x14011f444
cmp byte [rcx + 0x19], 2
jb 0x14011f444
mov rcx, qword [rcx + 0x10]
lea r8, [0x140159780]
mov edx, 0x3e
mov r9d, ebx
call fcn.140004c78
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140141360
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret