Function at 0x140116e20
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov r12, r9
mov qword [rsp + 0x58], r8
mov bl, dl
mov r14, rcx
mov rdi, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rdi, rax
je 0x140116e98
test byte [rdi + 0x1c], 1
je 0x140116e98
cmp byte [rdi + 0x19], 4
jb 0x140116e98
mov rcx, qword [rdi + 0x10]
lea r8, [0x140158468]
mov edx, 0x31
call fcn.14000c0e8
mov rdi, qword [0x14016a048]
xor ecx, ecx
xor eax, eax
mov dword [rsp + 0x50], ecx
mov r13d, ecx
mov dword [rsp + 0x48], ecx
mov esi, ecx
mov dword [rsp + 0x4c], ecx
mov r15d, 0x208
mov qword [rsp + 0x40], rcx
mov r8d, r15d
lea rcx, [rbp + 0x3a0]
mov qword [rsp + 0x68], rax
xor edx, edx
mov dword [rsp + 0x70], eax
call sub.msvcrt.dll_memset
mov r8d, r15d
lea rcx, [rbp + 0x190]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, r15d
lea rcx, [rbp - 0x80]
xor edx, edx
call sub.msvcrt.dll_memset
xor r15d, r15d
test r14, r14
je 0x140116eff
cmp word [r14], r15w
jne 0x140116f1e
lea r8, str.wszDiskPath__wszDiskPath
mov edx, 0x39b
lea rcx, str.base_stor_blbengine_blbengutils_blbvhdhelper.cpp
call fcn.140088f60
mov rdi, qword [0x14016a048]
test r12, r12
jne 0x140116f42
lea r8, str.pwszVolumePath
mov edx, 0x39c
lea rcx, str.base_stor_blbengine_blbengutils_blbvhdhelper.cpp
call fcn.140088f60
mov rdi, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rdi, rax
je 0x140116f7e
test byte [rdi + 0x1c], 1
je 0x140116f7e
cmp byte [rdi + 0x19], 4
jb 0x140116f7e
mov rcx, qword [rdi + 0x10]
lea r8, [0x140158468]
mov edx, 0x32
mov qword [rsp + 0x20], r12
mov r9, r14
call fcn.14005aaa8
mov rdi, qword [0x14016a048]
test r12, r12
je 0x1401174bf
test r14, r14
je 0x1401174bf
mov qword [rsp + 0x30], r15
mov r8d, 3
mov dword [rsp + 0x28], 0x2000080
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r8d
mov rcx, r14
mov qword [r12], r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rsp + 0x60], rax
cmp rax, 0xffffffffffffffff
jne 0x14011703c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140116fe6
movzx ebx, ax
or ebx, 0x80070000
mov rdi, qword [0x14016a048]
lea r15, [0x14016a048]
cmp rdi, r15
je 0x14011750c
test byte [rdi + 0x1c], 1
je 0x1401174e6
mov sil, 2
cmp byte [rdi + 0x19], sil
jb 0x1401174e6
mov rcx, qword [rdi + 0x10]
lea r8, [0x140158468]
mov edx, 0x33
mov dword [rsp + 0x20], ebx
mov r9, r14
call fcn.140014f78
mov rdi, qword [0x14016a048]
jmp 0x1401174e6
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x2d1080
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x1401170e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140117096
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
lea r13, [0x14016a048]
cmp rcx, r13
je 0x1401174a5
test byte [rcx + 0x1c], 1
je 0x1401174a5
mov sil, 2
cmp byte [rcx + 0x19], sil
jb 0x1401174a0
mov edx, 0x34
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158468]
mov r9d, ebx
call fcn.14000c114
jmp 0x1401174a0
mov rcx, qword [0x14016a048]
lea rdi, [0x14016a048]
cmp rcx, rdi
je 0x14011712a
test byte [rcx + 0x1c], 1
je 0x14011712a
cmp byte [rcx + 0x19], 4
jb 0x14011712a
mov eax, dword [rsp + 0x68]
lea r8, [0x140158468]
mov r9d, dword [rsp + 0x6c]
mov edx, 0x35
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
call fcn.1400c9db8
mov r9d, dword [rsp + 0x6c]
mov r15d, 0x104
lea rcx, [rbp - 0x80]
mov edx, r15d
lea r8, str._GlobalrootDeviceHarddisk_luPartition1
test bl, bl
jne 0x14011714e
lea r8, str._GlobalrootDeviceHarddisk_luPartition2
call fcn.1400141e0
xor r14d, r14d
mov ebx, eax
test eax, eax
jns 0x14011718c
mov rcx, qword [0x14016a048]
cmp rcx, rdi
je 0x1401174a5
test byte [rcx + 0x1c], 1
je 0x1401174a5
mov sil, 2
cmp byte [rcx + 0x19], sil
jb 0x1401174a0
lea edx, [r14 + 0x36]
jmp 0x1401170c9
cmp dword [0x14016ab04], r14d
mov edi, 0x80070000
mov sil, 2
mov ebx, 0x88888889
jbe 0x14011728f
lea r13, [0x14016a048]
lea rdx, [rsp + 0x4c]
lea rcx, [rbp - 0x80]
call fcn.140109740
test eax, eax
jns 0x14011728a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x1401171d8
movzx eax, ax
or eax, edi
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x14011720e
test byte [rcx + 0x1c], 1
je 0x14011720e
cmp byte [rcx + 0x19], sil
jb 0x14011720e
mov r9d, dword [rsp + 0x48]
lea r8, [0x140158468]
mov rcx, qword [rcx + 0x10]
mov edx, 0x37
mov dword [rsp + 0x20], eax
call fcn.1400c9c84
mov eax, ebx
mul dword [0x14016ab04]
shr edx, 4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov eax, ebx
mul dword [0x14016ab04]
mov eax, dword [rsp + 0x48]
shr edx, 4
add eax, edx
cmp eax, dword [0x14016ab04]
mov dword [rsp + 0x48], eax
jb 0x1401171ad
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140117280
test byte [rcx + 0x1c], 1
je 0x140117280
cmp byte [rcx + 0x19], sil
jb 0x140117280
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158468]
mov edx, 0x38
mov dword [rsp + 0x20], 0x8078004f
mov r9d, eax
call fcn.1400c9c84
mov ebx, 0x8078004f
jmp 0x1401174a0
mov r13d, dword [rsp + 0x4c]
mov r9d, r13d
lea r8, str._GlobalrootDeviceHarddiskVolume_lu
mov rdx, r15
lea rcx, [rbp + 0x190]
call fcn.1400141e0
mov ebx, eax
test eax, eax
jns 0x1401172e3
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1401174a0
test byte [rcx + 0x1c], 1
je 0x1401174a0
cmp byte [rcx + 0x19], sil
jb 0x1401174a0
mov edx, 0x39
jmp 0x1401170c9
xor r8d, r8d
lea rcx, [rbp + 0x190]
mov rdx, r12
call fcn.14008a470
mov ebx, eax
test eax, eax
jns 0x140117330
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1401174a0
test byte [rcx + 0x1c], 1
je 0x1401174a0
cmp byte [rcx + 0x19], sil
jb 0x1401174a0
mov edx, 0x3a
jmp 0x1401170c9
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.14008a7d0
mov ebx, eax
test eax, eax
jns 0x140117391
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x1401174a0
test byte [rcx + 0x1c], 1
je 0x1401174a0
cmp byte [rcx + 0x19], sil
jb 0x1401174a0
mov rcx, qword [rcx + 0x10]
lea r9, [rbp - 0x80]
mov edx, 0x3b
mov dword [rsp + 0x20], ebx
lea r8, [0x140158468]
call fcn.140014f78
jmp 0x1401174a0
cmp dword [0x14016ab04], r14d
jbe 0x14011748a
mov r12, qword [rsp + 0x40]
lea r13, [0x14016a048]
mov r8d, r15d
lea rdx, [rbp + 0x3a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14011748a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1401173e2
movzx ebx, ax
or ebx, edi
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x140117416
test byte [rcx + 0x1c], 1
je 0x140117416
cmp byte [rcx + 0x19], 4
jb 0x140117416
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158468]
mov edx, 0x3c
mov dword [rsp + 0x20], ebx
mov r9d, r14d
call fcn.1400c9c84
mov eax, 0x88888889
mul dword [0x14016ab04]
shr edx, 4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov eax, 0x88888889
mul dword [0x14016ab04]
shr edx, 4
add r14d, edx
cmp r14d, dword [0x14016ab04]
jb 0x1401173aa
test ebx, ebx
jns 0x14011748a
mov rcx, qword [0x14016a048]
cmp rcx, r13
je 0x1401174a0
test byte [rcx + 0x1c], 1
je 0x1401174a0
cmp byte [rcx + 0x19], sil
jb 0x1401174a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140158468]
mov edx, 0x3d
mov dword [rsp + 0x20], ebx
mov r9d, r14d
call fcn.1400c9c84
jmp 0x1401174a0
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp + 0x3a0]
xor r8d, r8d
call fcn.14008a470
mov ebx, eax
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rdi, qword [0x14016a048]
jmp 0x1401174c4
mov ebx, 0x80070057
test rsi, rsi
je 0x1401174df
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rdi, qword [0x14016a048]
lea r15, [0x14016a048]
cmp rdi, r15
je 0x14011750c
test byte [rdi + 0x1c], 1
je 0x14011750c
cmp byte [rdi + 0x19], 4
jb 0x14011750c
mov rcx, qword [rdi + 0x10]
lea r8, [0x140158468]
mov edx, 0x3e
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x708]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret