Function at 0x14003b4b0
Capabilities:
Get storage device properties

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400c1010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, rdx
mov ebp, ecx
mov rcx, qword [rdx]
lea rdx, [rcx - 0x18]
mov rbx, qword [rdx]
mov esi, 0xffffffff
xor edi, edi
cmp dword [rcx - 0x10], edi
je 0x14003b536
mov eax, dword [rcx - 8]
shr eax, 0x1f
test al, al
je 0x14003b511
cmp dword [rcx - 0xc], edi
jl 0x14003b75f
mov dword [rcx - 0x10], edi
mov rax, qword [r14]
mov word [rax], di
jmp 0x14003b536
mov eax, esi
lock xadd dword [rcx - 8], eax
sub eax, 1
jg 0x14003b526
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [r14], rax
call fcn.1400375a0
mov rcx, rax
test rax, rax
je 0x14003b754
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov r8d, ebp
lea rdx, str..PhysicalDrive_u
lea rcx, [rsp + 0x50]
call fcn.140045140
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14003b5a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14003b70c
mov qword [rsp + 0x5c], rdi
mov dword [rsp + 0x58], edi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0x58]
mov edx, 0x2d1400
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14003b602
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14003b702
mov ebx, dword [rsp + 0x6c]
mov ecx, ebx
call fcn.1400489e0
mov r15, rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r15
mov r9d, 0xc
lea r8, [rsp + 0x58]
mov edx, 0x2d1400
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14003b65f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14003b6fa
mov eax, dword [r15 + 0x18]
test eax, eax
je 0x14003b6fa
lea rdx, [r15 + rax]
lea rcx, [rsp + 0x40]
call fcn.140044900
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [r14]
sub rbx, 0x18
cmp rcx, rbx
je 0x14003b6dc
mov eax, dword [rbx + 0x10]
shr eax, 0x1f
test al, al
jne 0x14003b6cf
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14003b6cf
call fcn.140044ce0
mov r13, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14003b6c6
mov r9, qword [rbx]
mov rcx, qword [r9]
mov r8, qword [rcx + 8]
mov rdx, rbx
mov rcx, r9
call r8
lea rax, [r13 + 0x18]
mov qword [r14], rax
jmp 0x14003b6dc
mov r8d, dword [rcx + 8]
mov rcx, r14
call fcn.140044dd0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003b6fa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, r15
call fcn.1400482f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14003b729
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140048200
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140037400
nop
mov ecx, 0x80070057
call fcn.140037400
int3