Function at 0x140087494
Capabilities:
Get disk information via ioctl

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r13, rdx
mov r12d, ecx
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140087506
test byte [rcx + 0x1c], 1
je 0x140087506
cmp byte [rcx + 0x19], 4
jb 0x140087506
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
mov edx, 0x67
call fcn.14000c328
mov rcx, qword [0x140173048]
xor eax, eax
xorps xmm0, xmm0
xor r15d, r15d
mov qword [rbp + 0x1f], rax
mov edi, r15d
mov qword [rbp - 0x21], r15
mov dword [rbp - 0x25], r15d
movups xmmword [rbp - 0x11], xmm0
mov dword [rbp + 0x27], eax
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
cmp rcx, r14
je 0x14008754e
test byte [rcx + 0x1c], 1
je 0x14008754e
cmp byte [rcx + 0x19], 4
jb 0x14008754e
mov rcx, qword [rcx + 0x10]
mov r9d, r12d
mov qword [rsp + 0x20], r13
call fcn.140087d98
mov r9d, r12d
lea r8, str..PhysicalDrive_d
mov edx, 0x1e
lea rcx, [rbp - 0x11]
call fcn.140014420
mov ebx, eax
test eax, eax
jns 0x1400875ad
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140087a63
test byte [rcx + 0x1c], 1
je 0x140087a3d
cmp byte [rcx + 0x19], 2
jb 0x140087a3d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
mov edx, 0x69
mov r9d, eax
call fcn.14000c354
jmp 0x140087a36
mov qword [rsp + 0x30], r15
lea rcx, [rbp - 0x11]
mov r8d, 3
mov dword [rsp + 0x28], 0x2000000
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rbp - 0x19], rax
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14008764b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140087605
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140087a63
test byte [rcx + 0x1c], 1
je 0x140087a3d
cmp byte [rcx + 0x19], 2
jb 0x140087a3d
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x11]
mov edx, 0x6a
mov dword [rsp + 0x20], ebx
lea r8, [0x140155930]
call fcn.1400151b8
jmp 0x140087a36
mov r14d, 0x4830
mov dword [rbp - 0x29], r14d
test rdi, rdi
je 0x14008766d
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rbp - 0x21], r15
mov r8d, r14d
lea rcx, [rbp - 0x21]
mov edx, 1
call fcn.14000d5bc
mov rdi, qword [rbp - 0x21]
mov ebx, eax
test eax, eax
js 0x140087a93
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x25]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov edx, 0x70050
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14008772a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x7a
je 0x1400876dc
cmp eax, 0xea
jne 0x1400876e8
add r14d, 0x2400
jmp 0x140087651
test eax, eax
jle 0x1400876f5
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140087a13
test byte [rcx + 0x1c], 1
je 0x140087a13
cmp byte [rcx + 0x19], 2
jb 0x140087a13
mov edx, 0x6c
jmp 0x1400879af
cmp r14d, 0x30
jb 0x1400879c4
lea ecx, [r14 - 0x30]
movabs rax, 0xe38e38e38e38e38f
mul rcx
mov ebx, r15d
shr rdx, 7
cmp dword [rdi + 4], edx
jbe 0x14008778f
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140087785
test byte [rcx + 0x1c], 1
je 0x140087785
cmp byte [rcx + 0x19], 2
jb 0x140087785
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
mov edx, 0x6e
call fcn.14000c328
mov ebx, 0x8000ffff
jmp 0x140087a13
cmp dword [rdi + 4], ebx
jbe 0x140087933
lea r14, [0x140173048]
mov eax, r15d
lea rsi, [rax + rax*8]
add rsi, rsi
mov ecx, dword [rdi + rsi*8 + 0x30]
test ecx, ecx
je 0x140087897
cmp ecx, 1
je 0x1400877d7
lea r8, [0x140150944]
mov edx, 0x76c
lea rcx, str.base_stor_blbengine_service_bmr.cpp
call fcn.1400906e0
jmp 0x14008791e
cmp qword [rdi + rsi*8 + 0x38], r13
jne 0x14008782f
mov byte [rdi + rsi*8 + 0x4c], 1
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14008781d
test byte [rcx + 0x1c], 1
je 0x14008781d
cmp byte [rcx + 0x19], 4
jb 0x14008781d
mov eax, dword [rdi + rsi*8 + 0x48]
mov edx, 0x71
mov rcx, qword [rcx + 0x10]
mov r9d, r12d
mov qword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
call fcn.140087d30
movups xmm0, xmmword [0x1401561c8]
movdqu xmmword [rdi + rsi*8 + 0x50], xmm0
jmp 0x14008791e
mov rax, qword [rdi + rsi*8 + 0x50]
sub rax, qword [0x1401561c8]
jne 0x140087849
mov rax, qword [rdi + rsi*8 + 0x58]
sub rax, qword [0x1401561d0]
test rax, rax
jne 0x14008791e
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14008791e
test byte [rcx + 0x1c], 1
je 0x14008791e
cmp byte [rcx + 0x19], 4
jb 0x14008791e
and qword [rsp + 0x28], rbx
lea edx, [rax + 0x72]
mov eax, dword [rdi + rsi*8 + 0x48]
mov r9d, r12d
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.140087d30
jmp 0x14008791e
mov byte [rdi + rsi*8 + 0x4c], 1
cmp qword [rdi + rsi*8 + 0x38], r13
jne 0x1400878e4
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x1400878dd
test byte [rcx + 0x1c], 1
je 0x1400878dd
cmp byte [rcx + 0x19], 4
jb 0x1400878dd
mov eax, dword [rdi + rsi*8 + 0x48]
mov edx, 0x6f
mov rcx, qword [rcx + 0x10]
mov r9d, r12d
mov qword [rsp + 0x28], 1
mov dword [rsp + 0x20], eax
call fcn.140087d30
mov byte [rdi + rsi*8 + 0x51], 1
jmp 0x14008791e
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x14008791a
test byte [rcx + 0x1c], 1
je 0x14008791a
cmp byte [rcx + 0x19], 4
jb 0x14008791a
and qword [rsp + 0x28], rbx
mov edx, 0x70
mov eax, dword [rdi + rsi*8 + 0x48]
mov r9d, r12d
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], eax
call fcn.140087d30
mov byte [rdi + rsi*8 + 0x51], bl
inc r15d
cmp r15d, dword [rdi + 4]
jb 0x14008779f
mov r14d, dword [rbp - 0x29]
mov rsi, qword [rbp - 0x19]
xor r15d, r15d
lea rax, [rbp - 0x25]
mov qword [rsp + 0x38], r15
mov r9d, r14d
mov qword [rsp + 0x30], rax
mov r8, rdi
mov dword [rsp + 0x28], r15d
mov edx, 0x7c054
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x140087a0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14008798b
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140087a13
test byte [rcx + 0x1c], 1
je 0x140087a13
cmp byte [rcx + 0x19], 2
jb 0x140087a13
mov edx, 0x73
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
call fcn.14000c354
jmp 0x140087a13
mov ebx, 0x80070216
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x140087a0c
test byte [rcx + 0x1c], 1
je 0x140087a0c
cmp byte [rcx + 0x19], 2
jb 0x140087a0c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
mov edx, 0x6d
mov dword [rsp + 0x28], ebx
mov r9d, r14d
mov dword [rsp + 0x20], 0x30
call fcn.140087cd4
lea r14, [0x140173048]
test rdi, rdi
je 0x140087a27
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
cmp rcx, r14
je 0x140087a63
test byte [rcx + 0x1c], 1
je 0x140087a63
cmp byte [rcx + 0x19], 4
jb 0x140087a63
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155930]
mov edx, 0x74
call fcn.14000c328
mov eax, ebx
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140007410
lea r11, [rsp + 0xa0]
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 [0x140173048]
lea r14, [0x140173048]
cmp rcx, r14
je 0x140087a13
test byte [rcx + 0x1c], 1
je 0x140087a13
cmp byte [rcx + 0x19], 2
jb 0x140087a13
mov edx, 0x6b
mov r9d, eax
jmp 0x1400879b2