Function at 0x14011d048
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 [0x14017a048]
lea r14, [0x14017a048]
cmp rcx, r14
je 0x14011d097
test byte [rcx + 0x1c], 1
je 0x14011d097
cmp byte [rcx + 0x19], 4
jb 0x14011d097
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401630c8]
mov edx, 0x9a
call fcn.140004b70
xor esi, esi
test rdi, rdi
jne 0x14011d0b6
lea r8, str.wszVHDVolumeDevicePath
mov edx, 0xb8b
lea rcx, str.base_stor_blbengine_blbengutils_blbvhdhelper.cpp
call fcn.1400876c8
test r12, r12
jne 0x14011d0d3
lea r8, str.pbCompactionRequired
mov edx, 0xb8c
lea rcx, str.base_stor_blbengine_blbengutils_blbvhdhelper.cpp
call fcn.1400876c8
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.140130ce0
mov ebx, eax
test eax, eax
jns 0x14011d14f
mov r10, qword [0x14017a048]
cmp r10, r14
je 0x14011d4f7
test byte [r10 + 0x1c], 1
je 0x14011d4cf
cmp byte [r10 + 0x19], 2
jb 0x14011d4cf
mov rcx, qword [r10 + 0x10]
lea r8, [0x1401630c8]
mov edx, 0x9b
mov r9d, eax
call fcn.140004b9c
jmp 0x14011d4c8
cmp dword [rbp + 0x40], esi
je 0x14011d194
mov r10, qword [0x14017a048]
cmp r10, r14
je 0x14011d4f7
test byte [r10 + 0x1c], 1
je 0x14011d4cf
cmp byte [r10 + 0x19], 4
jb 0x14011d4cf
mov rcx, qword [r10 + 0x10]
lea r8, [0x1401630c8]
mov edx, 0x9c
call fcn.140004b70
jmp 0x14011d4c8
cmp dword [rbp + 0x48], esi
je 0x14011d1d9
mov r10, qword [0x14017a048]
cmp r10, r14
je 0x14011d1cf
test byte [r10 + 0x1c], 1
je 0x14011d1cf
cmp byte [r10 + 0x19], 4
jb 0x14011d1cf
mov rcx, qword [r10 + 0x10]
lea r8, [0x1401630c8]
mov edx, LoadRegTypeLib
call fcn.140004b70
mov r10, qword [0x14017a048]
mov byte [r12], 1
jmp 0x14011d4cf
lea r8, [rbp - 0x30]
mov rcx, rdi
lea rdx, [0x140152808]
call fcn.14008867c
mov ebx, eax
test eax, eax
jns 0x14011d23c
mov r10, qword [0x14017a048]
cmp r10, r14
je 0x14011d4b2
test byte [r10 + 0x1c], 1
je 0x14011d4b2
cmp byte [r10 + 0x19], 2
jb 0x14011d4b2
mov edx, LoadRegTypeLib
mov r9d, eax
mov rcx, qword [r10 + 0x10]
lea r8, [0x1401630c8]
call fcn.140004b9c
mov r10, qword [0x14017a048]
jmp 0x14011d4b2
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]
nop dword [rax + rax]
test eax, eax
jne 0x14011d274
mov rcx, qword [rbp - 0x30]
call fcn.1401373d4
mov ebx, eax
jmp 0x14011d286
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 0x14011d2c4
mov r10, qword [0x14017a048]
lea r14, [0x14017a048]
cmp r10, r14
je 0x14011d4b2
test byte [r10 + 0x1c], 1
je 0x14011d4b2
cmp byte [r10 + 0x19], 2
jb 0x14011d4b2
mov edx, QueryPathOfRegTypeLib
mov r9d, ebx
jmp 0x14011d220
lea rdx, [rbp - 0x28]
mov rcx, rdi
call fcn.14011d514
mov ebx, eax
test eax, eax
jns 0x14011d30d
mov r10, qword [0x14017a048]
lea r14, [0x14017a048]
cmp r10, r14
je 0x14011d4b2
test byte [r10 + 0x1c], 1
je 0x14011d4b2
cmp byte [r10 + 0x19], 2
jb 0x14011d4b2
mov edx, QueryPathOfRegTypeLib
jmp 0x14011d21d
mov r10, qword [0x14017a048]
lea r8, [0x14017a048]
mov rsi, qword [rbp - 0x28]
cmp r10, r8
je 0x14011d358
test byte [r10 + 0x1c], 1
je 0x14011d358
cmp byte [r10 + 0x19], 4
jb 0x14011d358
mov rcx, qword [r10 + 0x10]
lea r8, [0x1401630c8]
mov edx, reloc.OLEAUT32.dll_LoadRegTypeLib
mov r9, rsi
call fcn.140010438
mov r10, qword [0x14017a048]
lea r8, [0x14017a048]
mov rdx, qword [rbp + 0x40]
sub r14, rdx
cmp rsi, r14
jb 0x14011d4a9
mov eax, dword [rbp + 0x50]
mov rdi, rsi
sub rdi, r14
shl rax, 0x1e
cmp rdi, rax
jb 0x14011d3a3
cmp r10, r8
je 0x14011d445
test byte [r10 + 0x1c], 1
je 0x14011d445
cmp byte [r10 + 0x19], 4
jb 0x14011d445
mov edx, QueryPathOfRegTypeLib
jmp 0x14011d423
xorps xmm0, xmm0
test rdi, rdi
js 0x14011d3b2
cvtsi2sd xmm0, rdi
jmp 0x14011d3ca
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm0, rcx
addsd xmm0, xmm0
xorps xmm1, xmm1
test rsi, rsi
js 0x14011d3d9
cvtsi2sd xmm1, rsi
jmp 0x14011d3f1
mov rax, rsi
mov rcx, rsi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
divsd xmm0, xmm1
mulsd xmm0, qword [0x140166b78]
cvttsd2si rax, xmm0
mov qword [rbp - 0x20], rax
cmp eax, dword [rbp + 0x58]
jb 0x14011d448
cmp r10, r8
je 0x14011d445
test byte [r10 + 0x1c], 1
je 0x14011d445
cmp byte [r10 + 0x19], 4
jb 0x14011d445
mov edx, reloc.OLEAUT32.dll_QueryPathOfRegTypeLib
mov rcx, qword [r10 + 0x10]
lea r8, [0x1401630c8]
call fcn.140004b70
mov r10, qword [0x14017a048]
lea r8, [0x14017a048]
mov rdx, qword [rbp + 0x40]
mov r15b, 1
cmp r10, r8
je 0x14011d4a5
test byte [r10 + 0x1c], 1
je 0x14011d4a5
cmp byte [r10 + 0x19], 4
jb 0x14011d4a5
mov rcx, qword [r10 + 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.1401183ec
mov r10, qword [0x14017a048]
mov byte [r12], r15b
lea r14, [0x14017a048]
xor esi, esi
cmp qword [rbp - 0x30], rsi
je 0x14011d4cf
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov r10, qword [0x14017a048]
cmp r10, r14
je 0x14011d4f7
test byte [r10 + 0x1c], 1
je 0x14011d4f7
cmp byte [r10 + 0x19], 4
jb 0x14011d4f7
mov rcx, qword [r10 + 0x10]
lea r8, [0x1401630c8]
mov edx, 0xa5
call fcn.140004b70
mov eax, ebx
add rsp, 0x80
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret