Function at 0x140111754
Capabilities:
Get disk size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov r12, rdx
mov rdi, rcx
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x1401117a3
test byte [rcx + 0x1c], 1
je 0x1401117a3
cmp byte [rcx + 0x19], 4
jb 0x1401117a3
mov rcx, qword [rcx + 0x10]
lea r8, str.9_H_rgY
mov edx, 0x97
call fcn.140004968
xor esi, esi
test rdi, rdi
jne 0x1401117c2
lea r8, str.wszVHDVolumeDevicePath
mov edx, 0xb4b
lea rcx, str.base_stor_blbengine_blbengutils_blbvhdhelper.cpp
call fcn.140081b60
test r12, r12
jne 0x1401117df
lea r8, str.pbCompactionRequired
mov edx, 0xb4c
lea rcx, str.base_stor_blbengine_blbengutils_blbvhdhelper.cpp
call fcn.140081b60
lea r9, [rbp + 0x50]
mov dword [rbp + 0x40], esi
lea r8, [rbp + 0x58]
mov dword [rbp + 0x48], esi
lea rdx, [rbp + 0x48]
mov dword [rbp + 0x58], esi
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x50], esi
mov dword [rbp - 0x20], esi
mov r15b, sil
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x30], rsi
mov byte [r12], sil
call fcn.140123f9c
mov ebx, eax
test eax, eax
jns 0x140111859
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x140111bba
test byte [rcx + 0x1c], 1
je 0x140111b94
cmp byte [rcx + 0x19], 2
jb 0x140111b94
mov rcx, qword [rcx + 0x10]
lea r8, str.9_H_rgY
mov edx, 0x98
mov r9d, eax
call fcn.140004988
jmp 0x140111b8d
cmp dword [rbp + 0x40], esi
je 0x14011189c
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x140111bba
test byte [rcx + 0x1c], 1
je 0x140111b94
cmp byte [rcx + 0x19], 4
jb 0x140111b94
mov rcx, qword [rcx + 0x10]
lea r8, str.9_H_rgY
mov edx, 0x99
call fcn.140004968
jmp 0x140111b8d
cmp dword [rbp + 0x48], esi
je 0x1401118df
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x1401118d5
test byte [rcx + 0x1c], 1
je 0x1401118d5
cmp byte [rcx + 0x19], 4
jb 0x1401118d5
mov rcx, qword [rcx + 0x10]
lea r8, str.9_H_rgY
mov edx, 0x9a
call fcn.140004968
mov rcx, qword [0x14016d090]
mov byte [r12], 1
jmp 0x140111b94
lea r8, [rbp - 0x30]
mov rcx, rdi
lea rdx, [0x1401447d4]
call fcn.1400829d8
mov ebx, eax
test eax, eax
jns 0x140111940
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x140111b7d
test byte [rcx + 0x1c], 1
je 0x140111b7d
cmp byte [rcx + 0x19], 2
jb 0x140111b7d
mov edx, 0x9b
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, str.9_H_rgY
call fcn.140004988
mov rcx, qword [0x14016d090]
jmp 0x140111b7d
mov rcx, qword [rbp - 0x30]
lea r9, [rbp - 8]
lea r8, [rbp - 0x18]
mov qword [rbp + 0x48], rsi
lea rdx, [rbp - 0x10]
mov qword [rbp + 0x40], rsi
mov r14, rsi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140111972
mov rcx, qword [rbp - 0x30]
call fcn.14012a050
mov ebx, eax
jmp 0x140111984
mov r14, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov qword [rbp + 0x48], r14
mov qword [rbp + 0x40], rax
mov ebx, esi
test ebx, ebx
jns 0x1401119c0
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x140111b7d
test byte [rcx + 0x1c], 1
je 0x140111b7d
cmp byte [rcx + 0x19], 2
jb 0x140111b7d
mov edx, 0x9c
mov r9d, ebx
jmp 0x140111924
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.140111bd0
mov ebx, eax
test eax, eax
jns 0x140111a07
mov rcx, qword [0x14016d090]
lea r14, [0x14016d090]
cmp rcx, r14
je 0x140111b7d
test byte [rcx + 0x1c], 1
je 0x140111b7d
cmp byte [rcx + 0x19], 2
jb 0x140111b7d
mov edx, LoadRegTypeLib
jmp 0x140111921
mov rcx, qword [0x14016d090]
lea r8, [0x14016d090]
mov rsi, qword [rbp - 0x28]
cmp rcx, r8
je 0x140111a50
test byte [rcx + 0x1c], 1
je 0x140111a50
cmp byte [rcx + 0x19], 4
jb 0x140111a50
mov rcx, qword [rcx + 0x10]
lea r8, str.9_H_rgY
mov edx, LoadRegTypeLib
mov r9, rsi
call fcn.14000f8a4
mov rcx, qword [0x14016d090]
lea r8, [0x14016d090]
mov rdx, qword [rbp + 0x40]
sub r14, rdx
cmp rsi, r14
jb 0x140111b74
mov eax, dword [rbp + 0x50]
mov rdi, rsi
sub rdi, r14
shl rax, 0x1e
cmp rdi, rax
jb 0x140111a96
cmp rcx, r8
je 0x140111b12
test byte [rcx + 0x1c], 1
je 0x140111b12
cmp byte [rcx + 0x19], 4
jb 0x140111b12
mov edx, LoadRegTypeLib
jmp 0x140111af0
movsd xmm2, qword [0x1401589a8]
xorps xmm0, xmm0
cvtsi2sd xmm0, rdi
test rdi, rdi
jns 0x140111aaf
addsd xmm0, xmm2
xorps xmm1, xmm1
cvtsi2sd xmm1, rsi
test rsi, rsi
jns 0x140111ac0
addsd xmm1, xmm2
divsd xmm0, xmm1
mulsd xmm0, qword [0x140158998]
cvttsd2si rax, xmm0
mov qword [rbp - 0x20], rax
cmp eax, dword [rbp + 0x58]
jb 0x140111b15
cmp rcx, r8
je 0x140111b12
test byte [rcx + 0x1c], 1
je 0x140111b12
cmp byte [rcx + 0x19], 4
jb 0x140111b12
mov edx, LoadRegTypeLib
mov rcx, qword [rcx + 0x10]
lea r8, str.9_H_rgY
call fcn.140004968
mov rcx, qword [0x14016d090]
lea r8, [0x14016d090]
mov rdx, qword [rbp + 0x40]
mov r15b, 1
cmp rcx, r8
je 0x140111b70
test byte [rcx + 0x1c], 1
je 0x140111b70
cmp byte [rcx + 0x19], 4
jb 0x140111b70
mov rcx, qword [rcx + 0x10]
lea rax, str.TRUE
test r15b, r15b
lea r9, str.FALSE
cmovne r9, rax
mov rax, qword [rbp - 0x20]
mov dword [rsp + 0x48], eax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.14010d270
mov rcx, qword [0x14016d090]
mov byte [r12], r15b
lea r14, [0x14016d090]
xor esi, esi
cmp qword [rbp - 0x30], rsi
je 0x140111b94
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
cmp rcx, r14
je 0x140111bba
test byte [rcx + 0x1c], 1
je 0x140111bba
cmp byte [rcx + 0x19], 4
jb 0x140111bba
mov rcx, qword [rcx + 0x10]
lea r8, str.9_H_rgY
mov edx, QueryPathOfRegTypeLib
call fcn.140004968
mov eax, ebx
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret