Function at 0x140119eb0
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 [0x14017b608]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov r15, r9
mov qword [rsp + 0x60], r8
mov dil, dl
mov r14, rcx
mov rbx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rbx, rax
je 0x140119f29
test byte [rbx + 0x1c], 1
je 0x140119f29
cmp byte [rbx + 0x19], 4
jb 0x140119f29
mov rcx, qword [rbx + 0x10]
lea r8, [0x140164238]
mov edx, 0x31
call fcn.140004c10
mov rbx, qword [0x14017b048]
xor ecx, ecx
xor eax, eax
mov dword [rsp + 0x58], ecx
mov r13d, ecx
mov dword [rsp + 0x48], ecx
mov r12d, ecx
mov qword [rsp + 0x50], rcx
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov qword [rsp + 0x68], rax
mov r8d, 0x208
mov dword [rsp + 0x70], eax
or rsi, 0xffffffffffffffff
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor eax, eax
test r14, r14
je 0x140119f93
cmp word [r14], ax
jne 0x140119fb2
lea r8, str.wszDiskPath__wszDiskPath
mov edx, 0x39a
lea rcx, str.base_stor_blbengine_blbengutils_blbvhdhelper.cpp
call fcn.140087b08
mov rbx, qword [0x14017b048]
test r15, r15
jne 0x140119fd6
lea r8, str.pwszVolumePath
mov edx, 0x39b
lea rcx, str.base_stor_blbengine_blbengutils_blbvhdhelper.cpp
call fcn.140087b08
mov rbx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rbx, rax
je 0x14011a012
test byte [rbx + 0x1c], 1
je 0x14011a012
cmp byte [rbx + 0x19], 4
jb 0x14011a012
mov rcx, qword [rbx + 0x10]
lea r8, [0x140164238]
mov edx, 0x32
mov qword [rsp + 0x20], r15
mov r9, r14
call fcn.140010880
mov rbx, qword [0x14017b048]
xor eax, eax
test r15, r15
je 0x14011a5d2
test r14, r14
je 0x14011a5d2
mov qword [rsp + 0x30], rax
lea r8d, [rax + 3]
mov dword [rsp + 0x28], 0x2000080
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], r8d
mov rcx, r14
mov qword [r15], rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x14011a0ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rbx, r15
je 0x14011a1d7
test byte [rbx + 0x1c], 1
je 0x14011a1b1
mov sil, 2
cmp byte [rbx + 0x19], sil
jb 0x14011a1b1
mov rcx, qword [rbx + 0x10]
lea r8, [0x140164238]
mov edx, 0x33
mov dword [rsp + 0x20], edi
mov r9, r14
call fcn.140005d40
mov rbx, qword [0x14017b048]
jmp 0x14011a1b1
lea rcx, [rsp + 0x58]
xor r14d, r14d
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rcx
mov edx, 0x2d1080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x14011a204
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rbx, rax
je 0x14011a16e
test byte [rbx + 0x1c], 1
je 0x14011a16e
mov sil, 2
cmp byte [rbx + 0x19], sil
jb 0x14011a16e
lea edx, [r14 + 0x34]
mov rcx, qword [rbx + 0x10]
lea r8, [0x140164238]
mov r9d, edi
call fcn.140004c3c
mov rbx, qword [0x14017b048]
mov rsi, qword [rsp + 0x40]
cmp rsi, 0xffffffffffffffff
je 0x14011a18f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rbx, qword [0x14017b048]
test r12, r12
je 0x14011a1aa
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbx, qword [0x14017b048]
lea r15, [0x14017b048]
cmp rbx, r15
je 0x14011a1d7
test byte [rbx + 0x1c], 1
je 0x14011a1d7
cmp byte [rbx + 0x19], 4
jb 0x14011a1d7
mov rcx, qword [rbx + 0x10]
lea r8, [0x140164238]
mov edx, 0x3e
call fcn.140004c10
mov eax, edi
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.14014bb60
mov rbx, qword [rsp + 0x708]
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [0x14017b048]
lea rsi, [0x14017b048]
cmp rcx, rsi
je 0x14011a24d
test byte [rcx + 0x1c], 1
je 0x14011a24d
cmp byte [rcx + 0x19], 4
jb 0x14011a24d
mov eax, dword [rsp + 0x68]
lea r8, [0x140164238]
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.1400b2e10
mov r9d, dword [rsp + 0x6c]
mov ebx, 0x104
lea rcx, [rbp - 0x80]
mov edx, ebx
lea r8, str._GlobalrootDeviceHarddisk_luPartition1
test dil, dil
jne 0x14011a270
lea r8, str._GlobalrootDeviceHarddisk_luPartition2
call fcn.140010188
mov edi, eax
test eax, eax
jns 0x14011a2ac
mov rbx, qword [0x14017b048]
cmp rbx, rsi
je 0x14011a16e
test byte [rbx + 0x1c], 1
je 0x14011a16e
mov sil, 2
cmp byte [rbx + 0x19], sil
jb 0x14011a16e
mov edx, 0x36
jmp 0x14011a154
cmp dword [0x14017bc04], r14d
mov sil, 2
jbe 0x14011a367
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.140111a44
test eax, eax
jns 0x14011a3b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov rcx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rcx, rax
je 0x14011a328
test byte [rcx + 0x1c], 1
je 0x14011a328
cmp byte [rcx + 0x19], sil
jb 0x14011a328
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164238]
movzx eax, dx
mov r9d, r13d
or eax, 0x80070000
test edx, edx
cmovle eax, edx
mov edx, 0x37
mov dword [rsp + 0x20], eax
call fcn.1400b311c
mov eax, 0x88888889
mov edi, 0x8078004f
mul dword [0x14017bc04]
shr edx, 4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov eax, 0x88888889
mul dword [0x14017bc04]
shr edx, 4
add r13d, edx
cmp r13d, dword [0x14017bc04]
jb 0x14011a2bc
test edi, edi
jns 0x14011a3b7
mov rbx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rbx, rax
je 0x14011a16e
test byte [rbx + 0x1c], 1
je 0x14011a16e
cmp byte [rbx + 0x19], sil
jb 0x14011a16e
mov edx, 0x38
mov r9d, r13d
mov rcx, qword [rbx + 0x10]
lea r8, [0x140164238]
mov dword [rsp + 0x20], edi
call fcn.1400b311c
jmp 0x14011a167
mov r9d, dword [rsp + 0x48]
lea r8, str._GlobalrootDeviceHarddiskVolume_lu
mov rdx, rbx
lea rcx, [rbp + 0x190]
call fcn.140010188
mov edi, eax
test eax, eax
jns 0x14011a40d
mov rbx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rbx, rax
je 0x14011a16e
test byte [rbx + 0x1c], 1
je 0x14011a16e
cmp byte [rbx + 0x19], sil
jb 0x14011a16e
mov edx, 0x39
jmp 0x14011a154
xor r8d, r8d
lea rcx, [rbp + 0x190]
mov rdx, r15
call fcn.1400889dc
mov edi, eax
test eax, eax
jns 0x14011a45a
mov rbx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rbx, rax
je 0x14011a16e
test byte [rbx + 0x1c], 1
je 0x14011a16e
cmp byte [rbx + 0x19], sil
jb 0x14011a16e
mov edx, 0x3a
jmp 0x14011a154
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400887a0
xor r15d, r15d
mov edi, eax
test eax, eax
jns 0x14011a4c0
mov rbx, qword [0x14017b048]
lea rax, [0x14017b048]
cmp rbx, rax
je 0x14011a4b6
test byte [rbx + 0x1c], 1
je 0x14011a4b6
cmp byte [rbx + 0x19], sil
jb 0x14011a4b6
mov rcx, qword [rbx + 0x10]
lea edx, [r15 + 0x3b]
lea r9, [rbp - 0x80]
mov dword [rsp + 0x20], edi
lea r8, [0x140164238]
call fcn.140005d40
mov r12, qword [rsp + 0x50]
jmp 0x14011a167
mov r12, qword [rsp + 0x50]
jmp 0x14011a16e
cmp dword [0x14017bc04], r15d
lea r13, [0x14017b048]
mov r12, qword [rsp + 0x50]
jbe 0x14011a582
mov r8d, ebx
lea rdx, [rbp + 0x3a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
nop dword [rax + rax]
test eax, eax
jne 0x14011a5b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [0x14017b048]
cmp rcx, r13
je 0x14011a548
test byte [rcx + 0x1c], 1
je 0x14011a548
cmp byte [rcx + 0x19], 4
jb 0x14011a548
mov rcx, qword [rcx + 0x10]
lea r8, [0x140164238]
mov edx, 0x3c
mov dword [rsp + 0x20], edi
mov r9d, r14d
call fcn.1400b311c
mov eax, 0x88888889
mul dword [0x14017bc04]
shr edx, 4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov eax, 0x88888889
mul dword [0x14017bc04]
shr edx, 4
add r14d, edx
cmp r14d, dword [0x14017bc04]
jb 0x14011a4d9
test edi, edi
jns 0x14011a5b7
mov rbx, qword [0x14017b048]
cmp rbx, r13
je 0x14011a16e
test byte [rbx + 0x1c], 1
je 0x14011a16e
cmp byte [rbx + 0x19], sil
jb 0x14011a16e
mov edx, 0x3d
mov r9d, r14d
jmp 0x14011a39e
mov rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x3a0]
xor r8d, r8d
call fcn.1400889dc
mov edi, eax
jmp 0x14011a167
mov edi, 0x80070057
jmp 0x14011a173