Function at 0x1400206b8
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x14016d608]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov dword [rbp - 0x80], r8d
mov rdi, rcx
mov qword [rbp - 0x68], rdx
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140020727
test byte [rcx + 0x1c], 1
je 0x140020727
cmp byte [rcx + 0x19], 4
jb 0x140020727
mov rcx, qword [rcx + 0x10]
lea r8, [0x140147170]
mov edx, 0x1c0
call fcn.140004968
xor r15d, r15d
cmp dword [rdi + 0x150], 1
mov r12d, r15d
mov dword [rsp + 0x40], r15d
mov r14d, r15d
mov qword [rsp + 0x70], r15
mov r13d, r15d
mov qword [rsp + 0x58], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x38], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x68], r15
mov qword [rbp - 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x48], r15
jne 0x14002078a
lea r8, str.m_eMediaType___BLB_MT_SHINY
mov edx, 0x27ff
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140081b60
cmp byte [rdi + 0x186], r15b
jne 0x1400207ab
lea r8, str.m_bSystemState
mov edx, 0x2800
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140081b60
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea rcx, [rdi + 0x2c8]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [rdi + 0x170]
test edx, edx
je 0x140020810
mov rcx, qword [rdi + 0xd8]
mov r8d, edx
add rcx, 0x68
test byte [rcx - 0x14], 1
jne 0x1400207ee
mov dl, 1
cmp byte [rcx], r15b
jne 0x1400207f1
mov dl, r15b
add rcx, 0x170
lea eax, [r12 + 1]
test dl, dl
cmove eax, r12d
mov r12d, eax
sub r8, 1
jne 0x1400207e1
mov dword [rsp + 0x40], eax
mov eax, r12d
mov ebx, r12d
shl rbx, 3
mov rcx, rbx
mov qword [rbp - 0x30], rax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x14002083a
mov ebx, 0x8007000e
jmp 0x140020d69
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rbp - 0x38], rax
test rax, rax
je 0x140020830
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, 8
lea rcx, [rsp + 0x50]
mov edx, r12d
call fcn.14000f570
mov ebx, eax
test eax, eax
js 0x1400209b3
xor ebx, ebx
cmp dword [rdi + 0x170], ebx
jbe 0x140020952
mov eax, r14d
imul rsi, rax, 0x170
mov rax, qword [rdi + 0xd8]
test byte [rax + rsi + 0x54], 1
jne 0x140020942
cmp byte [rax + rsi + 0x68], bl
je 0x140020942
test r13, r13
je 0x1400208ca
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x48], rbx
mov rcx, qword [rdi + 0xd8]
lea rdx, [rsp + 0x48]
add rcx, rsi
call fcn.140012c10
mov ebx, eax
test eax, eax
js 0x1400209b3
mov rcx, qword [rdi + 0x338]
lea r9, [rbp - 0x58]
mov r13, qword [rsp + 0x48]
lea r8, [rbp - 0x60]
xor ebx, ebx
mov rdx, r13
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x140005783.0]
cmp r15d, r12d
jae 0x1400209ae
mov rcx, qword [rdi + 0xd8]
inc r15d
mov rax, qword [rbp - 0x60]
mov qword [rcx + rsi + 0x30], rax
mov rcx, qword [rdi + 0xd8]
mov rax, qword [rbp - 0x58]
mov qword [rcx + rsi + 0x38], rax
inc r14d
cmp r14d, dword [rdi + 0x170]
jb 0x140020891
mov rcx, qword [rdi + 0x158]
lea r8, [rbp - 0x50]
lea rdx, [0x1401447d4]
call fcn.1400829d8
xor r14d, r14d
mov ebx, eax
test eax, eax
js 0x1400209b3
xor edx, edx
lea rcx, [rdi + 0x28]
call fcn.1400f4344
mov ebx, eax
test eax, eax
js 0x1400209b3
mov rbx, qword [rbp - 0x50]
lea r9, [rsp + 0x60]
mov rcx, rbx
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x1400209bd
mov rcx, rbx
call fcn.14012a050
mov ebx, eax
jmp 0x1400209c0
mov ebx, 0x8000ffff
mov r14, qword [rsp + 0x50]
jmp 0x140020d69
mov ebx, r14d
test ebx, ebx
js 0x1400209b3
lea rcx, [rdi + 0x28]
call fcn.1400f44d0
mov r12d, r14d
mov eax, r14d
mov dword [rsp + 0x78], eax
cmp dword [rdi + 0x170], r14d
jbe 0x140020f46
mov rsi, qword [rdi + 0xd8]
imul rcx, rax, 0x170
add rsi, rcx
mov qword [rbp - 0x78], rcx
test byte [rsi + 0x54], 1
jne 0x140020d29
cmp byte [rsi + 0x68], r14b
je 0x140020d29
cmp r12d, dword [rsp + 0x40]
jae 0x140020f3c
test r13, r13
je 0x140020a2b
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140012c10
mov r15, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
js 0x140020f28
mov rax, qword [rbp - 0x40]
xor r8d, r8d
mov r13d, r12d
mov rcx, r15
lea rdx, [rax + r13*8]
call fcn.14008290c
mov ebx, eax
test eax, eax
js 0x140020f28
cmp qword [rsp + 0x70], r14
je 0x140020a7e
lea rcx, [rsp + 0x70]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov qword [rsp + 0x70], r14
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 0x44]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x140020d5a
mov r9, qword [rsp + 0x70]
lea r8, str._s.vhdx
mov edx, 0x104
lea rcx, [rbp + 0x10]
call fcn.14000f4f8
mov ebx, eax
test eax, eax
js 0x140020d5f
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rdi + 0x1d8]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], r14
call fcn.1400826fc
mov ebx, eax
test eax, eax
js 0x140020d49
mov rax, qword [rbp - 0x38]
lea rdx, [rbp + 0x10]
lea r14, [rax + r13*8]
mov rax, qword [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x58], rax
mov r8, r14
call fcn.1400829d8
mov ebx, eax
test eax, eax
js 0x140021208
xor edx, edx
lea rcx, [rdi + 0x28]
call fcn.1400f4344
mov ebx, eax
test eax, eax
js 0x140020d5f
mov rcx, qword [r14]
call fcn.140088e08
lea rcx, [rdi + 0x28]
mov bl, al
call fcn.1400f44d0
test bl, bl
je 0x140020bdc
lea rbx, [rsi + 0xe0]
xor r15d, r15d
cmp qword [rbx], r15
je 0x140020bab
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140020b82
test byte [rcx + 0x1c], 1
je 0x140020b82
cmp byte [rcx + 0x19], 4
jb 0x140020b82
mov rcx, qword [rcx + 0x10]
lea r8, [0x140147170]
mov edx, 0x1c1
call fcn.140004968
mov r14, qword [rsp + 0x50]
xor r8d, r8d
mov rcx, qword [rbx]
lea rdx, [r14 + r13*8]
call fcn.14008290c
mov ebx, eax
test eax, eax
js 0x140020d64
inc r12d
xor r14d, r14d
jmp 0x140020d29
test byte [rsi + 0x54], 0x18
jne 0x140020bc9
lea r8, str.VOLUME_IS_BLOCKLEVEL_pVolCtxt__m_dwVolumeFlags___VOLUME_IS_INCREMENTAL_pVolCtxt__m_dwVolumeFlags_
mov edx, 0x28db
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140081b60
mov rdx, qword [r14]
mov r8, rbx
mov rcx, rdi
call fcn.14002d078
jmp 0x140020c79
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x140020bf3
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rbp - 0x70], 0
mov edx, dword [rsi + 0x54]
lea r8, [rbp - 0x70]
xor r9d, r9d
lea rcx, [rsi + 0x44]
call fcn.140085570
mov ebx, eax
test eax, eax
js 0x140020d5f
mov r15, qword [rbp - 0x70]
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.140085070
mov ebx, eax
test eax, eax
js 0x140020d5f
lea rdx, [rbp - 0x48]
mov rcx, r15
call fcn.140128144
xor r15d, r15d
mov ebx, eax
test eax, eax
js 0x140020d5f
mov ecx, dword [rsi + 0x40]
lea rax, [rsi + 0xe0]
mov r9, qword [rsi + 0x60]
mov r8, qword [rsp + 0x68]
mov rdx, qword [r14]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov byte [rsp + 0x20], r15b
call fcn.140020470
mov ebx, eax
test eax, eax
js 0x140020d5f
mov rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 0xd8]
lea r14, [rax + r13*8]
mov rax, qword [rbp - 0x78]
mov rdx, r14
mov rcx, qword [rcx + rax + 0xe0]
call fcn.1400826fc
mov ebx, eax
test eax, eax
js 0x140020d5f
mov rdx, qword [rsi + 0x60]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
jne 0x140020d23
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140020d1b
test byte [rcx + 0x1c], 1
je 0x140020d1b
cmp byte [rcx + 0x19], 3
jb 0x140020d1b
mov r9, qword [rsi + 0x60]
lea r8, [0x140147170]
mov rcx, qword [rcx + 0x10]
movzx eax, dx
or eax, 0x80070000
test edx, edx
cmovle eax, edx
mov edx, 0x1c2
mov dword [rsp + 0x28], eax
mov rax, qword [r14]
mov qword [rsp + 0x20], rax
call fcn.1400059f4
xor r14d, r14d
mov ebx, r14d
jmp 0x140020d26
xor r14d, r14d
inc r12d
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x78], eax
cmp eax, dword [rdi + 0x170]
jae 0x140020f46
mov r13, qword [rsp + 0x48]
jmp 0x1400209e4
mov r13, qword [rsp + 0x60]
mov r14, qword [rsp + 0x50]
mov r12d, dword [rsp + 0x40]
jmp 0x140020d6e
mov ebx, 0x8007000e
mov r14, qword [rsp + 0x50]
mov r12d, dword [rsp + 0x40]
mov r13, qword [rsp + 0x58]
mov r15, qword [rsp + 0x48]
lea rcx, [rdi + 0x28]
call fcn.1400f44d0
test ebx, ebx
jns 0x140020dab
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
cmp dword [rdi + 0x20], eax
jl 0x140020da1
mov ecx, 0x807800c5
cmp ebx, ecx
mov dword [rdi + 0x20], ecx
cmovne eax, ebx
mov dword [rdi + 0x24], eax
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor edi, edi
cmp qword [rsp + 0x70], rdi
je 0x140020dbf
lea rcx, [rsp + 0x70]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test r13, r13
je 0x140020dcd
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x140020ddf
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x140020df1
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x140020e03
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r13, qword [rbp - 0x40]
test r13, r13
je 0x140020e3f
test r12d, r12d
je 0x140020e36
mov rdi, r13
mov esi, r12d
xor eax, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140020e2c
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov qword [rdi], rax
add rdi, 8
sub rsi, 1
jne 0x140020e19
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r13, qword [rbp - 0x38]
test r13, r13
je 0x140020e7b
test r12d, r12d
je 0x140020e72
mov rdi, r13
mov esi, r12d
xor eax, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140020e68
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov qword [rdi], rax
add rdi, 8
sub rsi, 1
jne 0x140020e55
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r14, r14
je 0x140020eba
test r12d, r12d
je 0x140020eb1
mov rax, qword [rbp - 0x30]
mov rdi, r14
xor esi, esi
mov rcx, qword [rdi]
test rcx, rcx
je 0x140020ea3
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rbp - 0x30]
mov qword [rdi], rsi
add rdi, 8
sub rax, 1
mov qword [rbp - 0x30], rax
jne 0x140020e8e
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15, r15
je 0x140020ec8
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140020efc
test byte [rcx + 0x1c], 1
je 0x140020efc
cmp byte [rcx + 0x19], 4
jb 0x140020efc
mov rcx, qword [rcx + 0x10]
lea r8, [0x140147170]
mov edx, 0x1c4
call fcn.140004968
mov eax, ebx
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14013cc00
mov rbx, qword [rsp + 0x380]
add rsp, 0x330
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r14, qword [rsp + 0x50]
mov r12d, dword [rsp + 0x40]
mov r13, qword [rsp + 0x58]
jmp 0x140020d73
mov ebx, 0x8000ffff
jmp 0x140020d5f
mov r13d, dword [rsp + 0x40]
mov r12d, r14d
mov dword [rbp - 0x78], r14d
test r13d, r13d
je 0x140021177
mov rax, qword [rsp + 0x50]
mov rcx, qword [rbp - 0x40]
mov r15, rax
sub rcx, rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], rcx
mov rsi, qword [rdi + 0x338]
mov eax, r14d
mov dword [rsp + 0x78], eax
cmp dword [rsi + 0xd8], r14d
jbe 0x1400210a6
mov r14d, eax
cmp r14, qword [rsi + 0xc0]
jb 0x140020fc0
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.140081b60
cmp r14, qword [rsi + 0xc0]
jae 0x140021227
mov rax, qword [rsi + 0xb8]
xor r9d, r9d
mov r13d, r9d
mov r14, qword [rax + r14*8]
cmp dword [r14 + 0x5c], r9d
jbe 0x140021078
mov esi, r13d
cmp rsi, qword [r14 + 0x68]
jb 0x140021009
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.140081b60
xor r9d, r9d
cmp rsi, qword [r14 + 0x68]
jae 0x14002121c
mov rax, qword [r14 + 0x60]
mov r15, qword [rax + rsi*8]
mov esi, r9d
cmp dword [r15 + 0x68], r9d
jbe 0x140021066
mov eax, esi
imul rcx, rax, 0x38
mov rax, qword [r15 + 0x60]
mov r12, qword [rcx + rax]
test r12, r12
je 0x14002105e
mov rax, qword [rsp + 0x68]
or r8, 0xffffffffffffffff
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + rax]
inc r8
cmp word [rcx + r8*2], r9w
jne 0x14002103f
mov rdx, qword [r12]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
xor r9d, r9d
test eax, eax
je 0x1400210f1
inc esi
cmp esi, dword [r15 + 0x68]
jb 0x14002101a
mov r15, qword [rsp + 0x68]
inc r13d
cmp r13d, dword [r14 + 0x5c]
jb 0x140020fdb
mov eax, dword [rsp + 0x78]
mov rsi, qword [rdi + 0x338]
inc eax
mov dword [rsp + 0x78], eax
cmp eax, dword [rsi + 0xd8]
jb 0x140020f8f
mov rcx, qword [rsp + 0x60]
xor r14d, r14d
mov r12d, dword [rbp - 0x78]
mov r13d, dword [rsp + 0x40]
mov esi, r14d
cmp dword [rbp - 0x80], r14d
jbe 0x140021158
mov r14, qword [rbp - 0x68]
mov rcx, qword [rcx + r15]
or r8, 0xffffffffffffffff
xor eax, eax
inc r8
cmp word [rcx + r8*2], ax
jne 0x1400210c1
mov rdx, qword [r14]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
xor ecx, ecx
test eax, eax
jne 0x1400210df
cmp qword [r15], rcx
jne 0x140021127
inc esi
add r14, 0x18
cmp esi, dword [rbp - 0x80]
jae 0x140021155
mov rcx, qword [rsp + 0x60]
jmp 0x1400210b7
mov r15, qword [rsp + 0x68]
mov rcx, qword [r15]
test rcx, rcx
je 0x14002106b
lea rdx, [r12 + 8]
cmp qword [rdx], r9
jne 0x14002106b
call fcn.1400826fc
xor r9d, r9d
mov ebx, eax
test eax, eax
js 0x140020d5f
jmp 0x14002106b
mov eax, esi
xor r14d, r14d
lea rdx, [rax + rax*2]
mov rax, qword [rbp - 0x68]
lea rdx, [rdx + 1]
lea rdx, [rax + rdx*8]
cmp qword [rdx], r14
jne 0x140021158
mov rcx, qword [r15]
call fcn.1400826fc
mov ebx, eax
test eax, eax
js 0x140020d5f
jmp 0x140021158
xor r14d, r14d
inc r12d
add r15, 8
mov dword [rbp - 0x78], r12d
mov qword [rsp + 0x68], r15
cmp r12d, r13d
jae 0x140021177
mov rcx, qword [rsp + 0x60]
jmp 0x140020f74
lea rsi, [rdi + 0x2d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [0x14016d090]
lea rax, [0x14016d090]
cmp rcx, rax
je 0x140020d5f
test byte [rcx + 0x1c], 1
je 0x140020d5f
cmp byte [rcx + 0x19], 4
jb 0x140020d5f
mov rcx, qword [rcx + 0x10]
lea rdx, [rdi + 0x2c8]
mov eax, dword [rdx]
lea r8, [0x140147170]
mov dword [rsp + 0x60], eax
mov eax, dword [rdx + 4]
mov dword [rsp + 0x64], eax
mov eax, dword [rsi]
mov dword [rbp - 0x68], eax
mov eax, dword [rsi + 4]
mov dword [rbp - 0x64], eax
movabs rax, 0x346dc5d63886594b
mov rdx, qword [rbp - 0x68]
sub rdx, qword [rsp + 0x60]
mul rdx
mov r9, rdx
mov edx, 0x1c3
shr r9, 0xb
call fcn.14000f8a4
jmp 0x140020d5f
mov r14, qword [rsp + 0x50]
mov r12d, dword [rsp + 0x40]
mov r13, qword [rsp + 0x60]
jmp 0x140020d6e
mov ecx, 0x80070057
call fcn.140001ae4
int3
mov ecx, 0x80070057
call fcn.140001ae4
int3