Function at 0x140020b14
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 - 0x240]
sub rsp, 0x340
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov dword [rbp - 0x78], r8d
mov rdi, rcx
mov qword [rbp - 0x68], rdx
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140020b83
test byte [rcx + 0x1c], 1
je 0x140020b83
cmp byte [rcx + 0x19], 4
jb 0x140020b83
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148140]
mov edx, 0x1c0
call fcn.1400049d8
xor ebx, ebx
cmp dword [rdi + 0x150], 1
mov esi, ebx
mov dword [rsp + 0x50], ebx
mov r12d, ebx
mov qword [rsp + 0x68], rbx
mov r13d, ebx
mov qword [rsp + 0x40], rbx
mov r14d, ebx
mov qword [rsp + 0x78], rbx
mov r15d, ebx
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x70], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x60], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
jne 0x140020be9
lea r8, str.m_eMediaType___BLB_MT_SHINY
mov edx, 0x27ff
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140082070
cmp byte [rdi + 0x186], bl
jne 0x140020c09
lea r8, str.m_bSystemState
mov edx, 0x2800
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.140082070
xor edx, edx
lea rcx, [rbp + 0x20]
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 0x140020c68
mov rcx, qword [rdi + 0xd8]
mov r8d, edx
add rcx, 0x68
test byte [rcx - 0x14], 1
jne 0x140020c4b
mov dl, 1
cmp byte [rcx], bl
jne 0x140020c4d
mov dl, bl
test dl, dl
lea eax, [rsi + 1]
cmove eax, esi
add rcx, 0x170
mov esi, eax
sub r8, 1
jne 0x140020c3f
mov dword [rsp + 0x50], eax
mov eax, esi
mov ebx, esi
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 0x140020c90
mov ebx, 0x8007000e
jmp 0x140021463
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 0x140020c86
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, 8
lea rcx, [rbp - 0x80]
mov edx, esi
call fcn.14000f99c
mov ebx, eax
test eax, eax
js 0x140021463
xor ebx, ebx
cmp dword [rdi + 0x170], ebx
jbe 0x140020da9
mov eax, r14d
imul rsi, rax, 0x170
mov rax, qword [rdi + 0xd8]
test byte [rsi + rax + 0x54], 1
jne 0x140020d99
cmp byte [rsi + rax + 0x68], bl
je 0x140020d99
test r15, r15
je 0x140020d25
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [rdi + 0xd8]
mov qword [rsp + 0x60], rbx
lea rcx, [rsi + rax]
lea rdx, [rsp + 0x60]
call fcn.140013044
mov r15, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
js 0x140021459
mov rcx, qword [rdi + 0x338]
lea r9, [rbp - 0x50]
xor ebx, ebx
lea r8, [rbp - 0x58]
mov qword [rbp - 0x58], rbx
mov rdx, r15
mov qword [rbp - 0x50], rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x1400057f3.0]
cmp r12d, dword [rsp + 0x50]
jae 0x140020e0d
mov rcx, qword [rdi + 0xd8]
inc r12d
mov rax, qword [rbp - 0x58]
mov qword [rcx + rsi + 0x30], rax
mov rcx, qword [rdi + 0xd8]
mov rax, qword [rbp - 0x50]
mov qword [rcx + rsi + 0x38], rax
inc r14d
cmp r14d, dword [rdi + 0x170]
jb 0x140020ce5
mov rcx, qword [rdi + 0x158]
lea r8, [rsp + 0x48]
lea rdx, [0x140145788]
call fcn.140082ef4
xor r12d, r12d
mov ebx, eax
test eax, eax
js 0x140021459
xor edx, edx
lea rcx, [rdi + 0x28]
call fcn.1400f4d58
mov ebx, eax
test eax, eax
js 0x140021459
mov r14, qword [rsp + 0x48]
lea r9, [rbp - 0x60]
mov rcx, r14
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140020e17
mov rcx, r14
call fcn.14012aed4
mov ebx, eax
jmp 0x140020e1a
mov ebx, 0x8000ffff
jmp 0x140021459
mov ebx, r12d
test ebx, ebx
js 0x14002145e
lea rcx, [rdi + 0x28]
call fcn.1400f4ee4
mov eax, r12d
mov r14d, r12d
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x54], r14d
cmp dword [rdi + 0x170], r12d
jbe 0x1400211a4
mov rsi, qword [rdi + 0xd8]
imul rcx, rax, 0x170
add rsi, rcx
mov qword [rbp - 0x60], rcx
test byte [rsi + 0x54], 1
jne 0x14002118e
cmp byte [rsi + 0x68], r12b
je 0x14002118e
cmp r14d, dword [rsp + 0x50]
jae 0x140020e0d
test r15, r15
je 0x140020e8a
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsp + 0x60], r12
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.140013044
mov r15, qword [rsp + 0x60]
mov ebx, eax
test eax, eax
js 0x140021459
mov rax, qword [rbp - 0x40]
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x70], r14
lea rdx, [rax + r14*8]
call fcn.140082e28
mov ebx, eax
test eax, eax
js 0x140021459
cmp qword [rsp + 0x68], r12
je 0x140020edf
lea rcx, [rsp + 0x68]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov qword [rsp + 0x68], r12
lea rdx, [rsp + 0x68]
lea rcx, [rsi + 0x44]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x1400212cd
mov r9, qword [rsp + 0x68]
lea r8, str._s.vhdx
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14000f924
mov ebx, eax
test eax, eax
js 0x140021459
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rdi + 0x1d8]
lea rdx, [rsp + 0x40]
and qword [rsp + 0x40], 0
call fcn.140082c18
mov ebx, eax
test eax, eax
js 0x140021459
mov rax, qword [rbp - 0x38]
lea rdx, [rbp + 0x20]
mov rcx, qword [rsp + 0x40]
lea r14, [rax + r14*8]
mov r8, r14
call fcn.140082ef4
mov ebx, eax
test eax, eax
js 0x140021459
xor edx, edx
lea rcx, [rdi + 0x28]
call fcn.1400f4d58
mov ebx, eax
test eax, eax
js 0x140021459
mov rcx, qword [r14]
call fcn.140089350
lea rcx, [rdi + 0x28]
mov bl, al
call fcn.1400f4ee4
test bl, bl
je 0x14002103e
lea rbx, [rsi + 0xe0]
xor r12d, r12d
cmp qword [rbx], r12
je 0x14002100d
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
mov r9, qword [rbx]
cmp rcx, rax
je 0x140020fe6
test byte [rcx + 0x1c], 1
je 0x140020fe6
cmp byte [rcx + 0x19], 4
jb 0x140020fe6
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148140]
mov edx, 0x1c1
call fcn.1400049d8
mov r9, qword [rsi + 0xe0]
mov rax, qword [rbp - 0x80]
xor r8d, r8d
mov rcx, qword [rsp + 0x70]
lea rdx, [rax + rcx*8]
mov rcx, r9
call fcn.140082e28
mov ebx, eax
test eax, eax
js 0x140021459
jmp 0x140021181
test byte [rsi + 0x54], 0x18
jne 0x14002102b
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.140082070
mov rdx, qword [r14]
mov r8, rbx
mov rcx, rdi
call fcn.14002d340
jmp 0x1400210d8
test r13, r13
je 0x140021052
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
and qword [rsp + 0x78], 0
mov edx, dword [rsi + 0x54]
lea r8, [rsp + 0x78]
xor r9d, r9d
lea rcx, [rsi + 0x44]
call fcn.140085a88
mov r13, qword [rsp + 0x78]
xor r12d, r12d
mov ebx, eax
test eax, eax
js 0x140021459
lea rdx, [rbp - 0x70]
mov rcx, r13
call fcn.140085588
mov ebx, eax
test eax, eax
js 0x140021459
lea rdx, [rbp - 0x48]
mov rcx, r13
call fcn.140128fb4
mov ebx, eax
test eax, eax
js 0x140021459
mov ecx, dword [rsi + 0x40]
lea rax, [rsi + 0xe0]
mov r9, qword [rsi + 0x60]
mov r8, qword [rbp - 0x70]
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], r12b
call fcn.1400208cc
mov ebx, eax
test eax, eax
js 0x140021459
mov rax, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x70]
lea r14, [rax + rcx*8]
mov rcx, qword [rdi + 0xd8]
mov rax, qword [rbp - 0x60]
mov rdx, r14
mov rcx, qword [rcx + rax + 0xe0]
call fcn.140082c18
mov ebx, eax
test eax, eax
js 0x140021459
mov rdx, qword [rsi + 0x60]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
jne 0x140021181
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14002117e
test byte [rcx + 0x1c], 1
je 0x14002117e
cmp byte [rcx + 0x19], 3
jb 0x14002117e
mov r9, qword [rsi + 0x60]
lea r8, [0x140148140]
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.140005a64
mov ebx, r12d
mov r14d, dword [rsp + 0x54]
inc r14d
mov dword [rsp + 0x54], r14d
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
cmp eax, dword [rdi + 0x170]
jb 0x140020e47
xor r9d, r9d
mov dword [rsp + 0x54], r12d
cmp dword [rsp + 0x50], r9d
jbe 0x1400213dc
mov rsi, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x40]
mov r13d, dword [rbp - 0x78]
sub rcx, rsi
mov qword [rsp + 0x70], rcx
mov r14, qword [rdi + 0x338]
mov eax, r9d
mov dword [rsp + 0x58], eax
cmp dword [r14 + 0xd8], r9d
jbe 0x140021337
mov r15d, eax
mov rax, qword [r14 + 0xc0]
cmp r15, rax
jb 0x140021220
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.140082070
mov rax, qword [r14 + 0xc0]
xor r9d, r9d
cmp r15, rax
jae 0x140021623
lfence
mov rax, qword [r14 + 0xb8]
mov r12d, r9d
mov r15, qword [rax + r15*8]
cmp dword [r15 + 0x5c], r9d
jbe 0x14002130b
mov rax, qword [r15 + 0x68]
mov r14d, r12d
cmp r14, rax
jb 0x14002126f
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.140082070
mov rax, qword [r15 + 0x68]
xor r9d, r9d
cmp r14, rax
jae 0x140021618
lfence
mov rax, qword [r15 + 0x60]
mov r13, qword [rax + r14*8]
mov r14d, r9d
cmp dword [r13 + 0x68], r9d
jbe 0x1400212fe
mov eax, r14d
imul rcx, rax, 0x38
mov rax, qword [r13 + 0x60]
mov rax, qword [rcx + rax]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x1400212c2
mov rcx, qword [rsp + 0x70]
or r8, 0xffffffffffffffff
mov rcx, qword [rcx + rsi]
inc r8
cmp word [rcx + r8*2], r9w
jne 0x1400212a8
mov rdx, qword [rax]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
xor r9d, r9d
test eax, eax
je 0x1400212d7
inc r14d
cmp r14d, dword [r13 + 0x68]
jae 0x1400212fe
jmp 0x140021283
mov ebx, 0x8007000e
jmp 0x140021459
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400212fe
mov rdx, qword [rbp - 0x60]
add rdx, 8
cmp qword [rdx], r9
jne 0x1400212fe
call fcn.140082c18
xor r9d, r9d
mov ebx, eax
test eax, eax
js 0x1400213c3
inc r12d
cmp r12d, dword [r15 + 0x5c]
jb 0x14002123b
mov eax, dword [rsp + 0x58]
mov r14, qword [rdi + 0x338]
inc eax
mov dword [rsp + 0x58], eax
cmp eax, dword [r14 + 0xd8]
jb 0x1400211e6
mov rcx, qword [rsp + 0x70]
mov r12d, dword [rsp + 0x54]
mov r13d, dword [rbp - 0x78]
mov r14d, r9d
test r13d, r13d
je 0x1400213a6
mov r15, qword [rbp - 0x68]
mov rcx, qword [rcx + rsi]
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], r9w
jne 0x14002134b
mov rdx, qword [r15]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
xor r9d, r9d
test eax, eax
jne 0x14002136d
mov rcx, qword [rsi]
test rcx, rcx
jne 0x140021380
inc r14d
add r15, 0x18
cmp r14d, r13d
jae 0x1400213a6
mov rcx, qword [rsp + 0x70]
jmp 0x140021343
mov eax, r14d
lea rdx, [rax + rax*2]
mov rax, qword [rbp - 0x68]
lea rdx, [rdx + 1]
lea rdx, [rax + rdx*8]
cmp qword [rdx], r9
jne 0x1400213a6
call fcn.140082c18
xor r9d, r9d
mov ebx, eax
test eax, eax
js 0x1400213c3
inc r12d
add rsi, 8
mov dword [rsp + 0x54], r12d
cmp r12d, dword [rsp + 0x50]
jae 0x1400213d2
mov rcx, qword [rsp + 0x70]
jmp 0x1400211cb
mov r13, qword [rsp + 0x78]
mov r15, qword [rsp + 0x60]
jmp 0x140021459
mov r13, qword [rsp + 0x78]
mov r15, qword [rsp + 0x60]
lea rsi, [rdi + 0x2d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x140021459
test byte [rcx + 0x1c], 1
je 0x140021459
cmp byte [rcx + 0x19], 4
jb 0x140021459
mov rcx, qword [rcx + 0x10]
lea rdx, [rdi + 0x2c8]
mov eax, dword [rdx]
lea r8, [0x140148140]
mov dword [rbp - 0x70], eax
mov eax, dword [rdx + 4]
mov dword [rbp - 0x6c], 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 [rbp - 0x70]
mul rdx
mov r9, rdx
mov edx, 0x1c3
shr r9, 0xb
call fcn.14000fcd0
mov r14, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
lea rcx, [rdi + 0x28]
call fcn.1400f4ee4
test ebx, ebx
jns 0x14002149b
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
cmp dword [rdi + 0x20], eax
jl 0x140021491
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 + 0x68], rdi
je 0x1400214af
lea rcx, [rsp + 0x68]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
test r12, r12
je 0x1400214bd
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r14, r14
je 0x1400214cb
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r13, r13
je 0x1400214d9
mov rcx, r13
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400214e8
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r12, qword [rbp - 0x40]
test r12, r12
je 0x140021530
mov r14d, dword [rsp + 0x50]
mov r13d, r14d
test r14d, r14d
je 0x140021525
mov rdi, r12
mov esi, r14d
xor eax, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140021519
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov qword [rdi], rax
add rdi, 8
sub rsi, 1
jne 0x140021506
xor edi, edi
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x140021539
mov r14d, dword [rsp + 0x50]
mov r13, qword [rbp - 0x30]
mov r12, qword [rbp - 0x38]
test r12, r12
je 0x140021577
test r14d, r14d
je 0x14002156e
mov rdi, r12
mov rsi, r13
xor eax, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140021562
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov qword [rdi], rax
add rdi, 8
sub rsi, 1
jne 0x14002154f
xor edi, edi
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rsi, qword [rbp - 0x80]
test rsi, rsi
je 0x1400215aa
test r14d, r14d
je 0x1400215a0
mov rcx, qword [rsi]
test rcx, rcx
je 0x140021596
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov qword [rsi], rdi
add rsi, 8
sub r13, 1
jne 0x140021585
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test r15, r15
je 0x1400215b8
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x1400215ec
test byte [rcx + 0x1c], 1
je 0x1400215ec
cmp byte [rcx + 0x19], 4
jb 0x1400215ec
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148140]
mov edx, 0x1c4
call fcn.1400049d8
mov eax, ebx
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.14013e290
mov rbx, qword [rsp + 0x390]
add rsp, 0x340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140001b04
int3
mov ecx, 0x80070057
call fcn.140001b04
int3