Function at 0x140003630
Capabilities:
Get storage device properties

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0xf0
mov rax, qword [0x1400321e8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r12d, r12d
mov qword [rbp - 0x71], rcx
mov r14, qword [rbp - 0x71]
mov edi, 0x2088e
mov qword [r11 + 0x10], rbx
mov qword [rbp - 0x21], r12
lea r15d, [r12 + 9]
mov dword [rbp - 0x19], r12d
lea r13d, [r12 + 2]
mov qword [r11 + 0x18], rsi
nop dword [rax]
nop word [rax + rax]
lea r8, [rbp - 0x59]
mov edx, r15d
xor ecx, ecx
call fcn.140006480
test eax, eax
jne 0x14000395f
mov rbx, qword [rbp - 0x59]
lea r8, [rbp - 9]
xor eax, eax
mov qword [rsp + 0x38], r12
mov qword [rbp + 0x27], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x69]
mov qword [rbp - 5], r12
mov qword [rsp + 0x30], rax
mov r9d, 0xc
lea rax, [rbp + 7]
mov dword [rsp + 0x28], 0x28
mov edx, 0x2d1400
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov dword [rbp - 9], r12d
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000371a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400039ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400039ac
mov ecx, dword [rbp + 0x23]
cmp ecx, 0x11
ja 0x14000372b
bt edi, ecx
jae 0x14000372b
mov dl, 1
jmp 0x14000372d
xor dl, dl
mov eax, dword [rbp - 0x41]
cmp ecx, 7
cmove eax, r13d
mov dword [rbp - 0x41], eax
test dl, dl
je 0x1400039ac
lea rcx, [rbp - 0x59]
call fcn.140005b30
test eax, eax
jne 0x14000395f
xor dil, dil
lea rcx, [rbp - 0x59]
mov byte [rbp - 0x79], dil
call fcn.1400039e0
test eax, eax
je 0x140003770
lea rcx, [rbp - 0x59]
call fcn.1400032c0
cmp dword [rbp - 0x41], r13d
je 0x14000392b
test eax, eax
je 0x14000379a
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x59]
call fcn.140005570
movzx edi, byte [rbp - 0x79]
test dil, dil
je 0x14000379a
mov rbx, qword [rbp - 0x59]
jmp 0x140003806
movsxd rbx, dword [rbp - 0x51]
cmp rbx, 0x1000
ja 0x14000392b
mov ecx, 0x1000
call fcn.14000b15c
mov rsi, rax
test rax, rax
je 0x14000392b
mov edx, ebx
mov qword [rsp + 0x20], rax
mov rbx, qword [rbp - 0x59]
mov r9d, 1
mov rcx, rbx
xor r8d, r8d
call fcn.1400058d0
test eax, eax
jne 0x1400037f5
mov rdx, qword [rbp - 0x49]
lea r8, [rbp - 0x79]
mov rcx, rsi
call fcn.140005450
movzx edi, byte [rbp - 0x79]
mov rcx, rsi
call fcn.14000aec4
test dil, dil
je 0x14000392f
mov edx, 0x238
mov ecx, 1
call fcn.14000aee0
mov r8, rax
test rax, rax
je 0x1400038cd
mov rdx, qword [rbp - 0x21]
lea rax, [rbp - 0x21]
test rdx, rdx
je 0x14000383e
nop
mov rcx, qword [rdx]
mov rax, rdx
mov rdx, rcx
test rcx, rcx
jne 0x140003830
mov qword [rax], r8
movzx eax, byte [rbp - 0x39]
movups xmm0, xmmword [rbp - 0x34]
mov byte [r8 + 0x216], al
movzx eax, byte [rbp - 0x38]
mov byte [r8 + 0x217], al
movzx eax, byte [rbp - 0x37]
mov byte [r8 + 0x218], al
movzx eax, byte [rbp - 0x36]
mov byte [r8 + 0x219], al
movzx eax, byte [rbp - 0x35]
mov byte [r8 + 0x21a], al
movups xmmword [r8 + 0x224], xmm0
test al, al
jne 0x140003895
mov dword [r8 + 0x21c], 1
jmp 0x1400038c2
cmp al, 0x10
jne 0x1400038a2
mov dword [r8 + 0x21c], r13d
jmp 0x1400038c2
cmp al, 1
jne 0x1400038b3
mov dword [r8 + 0x21c], 3
jmp 0x1400038c2
cmp al, 0x11
jne 0x1400038c2
mov dword [r8 + 0x21c], 4
mov rbx, qword [rbp - 0x59]
mov r14, r8
mov dword [r8 + 8], r13d
mov ecx, 0x1000
call fcn.14000b15c
mov rdi, rax
test rax, rax
je 0x140003924
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x1000
mov rcx, rbx
call fcn.1400058d0
mov esi, eax
test eax, eax
jne 0x140003918
lea rdx, [r14 + 0xc]
mov r8d, 0x104
lea rcx, [rdi + 0x1b8]
call fcn.140004500
mov esi, eax
mov rcx, rdi
call fcn.14000aec4
test esi, esi
je 0x14000392f
mov word [r14 + 0xc], r12w
jmp 0x14000392f
mov rbx, qword [rbp - 0x59]
cmp rbx, 0xffffffffffffffff
je 0x14000395a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140003952
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140003952
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbp - 0x59], 0xffffffffffffffff
mov edi, 0x2088e
sub r15d, 1
jns 0x140003690
mov rax, qword [rbp - 0x21]
mov r12, qword [rbp - 0x71]
mov rsi, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x128]
mov qword [r12], rax
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140007800
mov rdi, qword [rsp + 0x138]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp rbx, 0xffffffffffffffff
je 0x14000395f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400039cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400039cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rbp - 0x59], 0xffffffffffffffff
jmp 0x14000395f