Function at 0x14012d788
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xd0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r13, r9
mov rsi, rdx
xor edi, edi
mov qword [rsp + 0x30], rdi
mov byte [rbp + 0x77], 1
mov qword [rbp - 0x49], rdi
mov r14d, 0x80
mov ecx, r14d
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rbx, rax
mov qword [rbp - 0x29], rax
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
nop
mov rax, qword [r13]
mov rdx, rbx
mov rcx, r13
mov rax, qword [rax + 0x18]
call qword [case.0x1400057f3.0]
test eax, eax
jns 0x14012d84c
lea r12, [0x14016f048]
mov rcx, qword [0x14016f048]
cmp rcx, r12
je 0x14012e4d9
test byte [rcx + 0x1c], 1
je 0x14012e4d9
cmp byte [rcx + 0x19], 2
jb 0x14012e4d9
lea edx, [rdi + 0x4f]
mov r9d, eax
lea r8, [0x140157c48]
mov rcx, qword [rcx + 0x10]
call fcn.1400049f8
jmp 0x14012e4d9
movups xmm0, xmmword [rbx]
movdqu xmmword [rsi + 0x10], xmm0
lea rdx, [rsi + 0x28]
xor r8d, r8d
mov rcx, qword [rbx + 0x68]
call fcn.140082e28
test eax, eax
jns 0x14012d86f
mov edi, eax
jmp 0x14012e4d9
mov rcx, qword [rbx + 0x60]
add rcx, 0x22
call qword [sym.imp.msvcrt.dll__wtol]
mov dword [rsi + 0x20], eax
mov rax, qword [rbx + 0x28]
mov qword [rsi + 0x30], rax
lea r15, [rsi + 0x68]
mov rdx, r15
mov rcx, qword [rbx + 0x78]
call fcn.140133e84
mov r14d, eax
test eax, eax
jns 0x14012d8de
lea r12, [0x14016f048]
mov rcx, qword [0x14016f048]
cmp rcx, r12
je 0x14012d8d6
test byte [rcx + 0x1c], 1
je 0x14012d8d6
cmp byte [rcx + 0x19], 2
jb 0x14012d8d6
mov edx, 0x50
mov r9d, eax
lea r8, [0x140157c48]
mov rcx, qword [rcx + 0x10]
call fcn.1400049f8
lea r12, [0x14016f048]
cmp byte [rbp + 0x7f], dil
je 0x14012d90d
mov eax, dword [rsi + 0x30]
mov dword [rsi], eax
movzx eax, word [rsi + 0x20]
mov word [rsi + 4], ax
mov rax, qword [rsi + 0x30]
mov qword [rsi + 0x38], rax
mov dword [rsi + 0x44], edi
mov r13, qword [rsp + 0x30]
jmp 0x14012e243
cmp dword [rbx + 0x44], 1
jne 0x14012d91a
mov eax, dword [rbx + 0x48]
mov dword [rsi], eax
jmp 0x14012d922
movups xmm0, xmmword [rbx + 0x48]
movdqu xmmword [rsi], xmm0
mov qword [rbp - 0x61], rdi
mov rax, qword [r13]
lea r8, [rbp - 0x79]
lea rdx, [rbp - 0x61]
mov rcx, r13
mov rax, qword [rax + 0x30]
call qword [case.0x1400057f3.0]
mov r14d, eax
test eax, eax
jns 0x14012d9c2
cmp eax, 0x80042444
je 0x14012d965
lea r8, str.hr__VDS_E_PACK_OFFLINE
mov edx, 0x65a
lea rcx, str.base_stor_blbwsbutilwsbvdshelperlibrary.cpp
call fcn.140082070
lea r12, [0x14016f048]
mov rcx, qword [0x14016f048]
cmp rcx, r12
je 0x14012d99c
test byte [rcx + 0x1c], 1
je 0x14012d99c
cmp byte [rcx + 0x19], 3
jb 0x14012d99c
mov edx, 0x51
mov r9d, r14d
lea r8, [0x140157c48]
mov rcx, qword [rcx + 0x10]
call fcn.1400049f8
mov qword [rsi + 0x38], rdi
mov dword [rsi + 0x44], edi
mov byte [rsi + 0x40], 1
mov r14d, edi
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x14012e49a
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14012e49a
mov r9d, edi
movsxd r10, dword [rbp - 0x79]
test r10, r10
jle 0x14012da7f
mov r8, rdi
mov rax, qword [rbp - 0x61]
lea rdx, [rax + 0x10]
mov r11d, 0x66
mov ecx, dword [rdx]
cmp ecx, 6
ja 0x14012d9f0
bt r11d, ecx
jb 0x14012d9f8
cmp ecx, 0x7fff
jne 0x14012da09
inc r9d
inc r8
add rdx, 0x50
cmp r8, r10
jl 0x14012d9e3
jmp 0x14012da7f
mov rcx, qword [0x14016f048]
cmp rcx, r12
je 0x14012da7b
test byte [rcx + 0x1c], 1
je 0x14012da51
cmp byte [rcx + 0x19], 4
jb 0x14012da51
movsxd rdx, r9d
lea r8, [rdx + rdx*4]
add r8, r8
mov edx, 0x4e
mov r8d, dword [rax + r8*8 + 0x10]
mov dword [rsp + 0x20], r8d
lea r8, [0x140157c48]
mov rcx, qword [rcx + 0x10]