Function at 0x140021df0
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 [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov dword [rsp + 0x70], r8d
mov rdi, rcx
mov qword [rbp - 0x68], rdx
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140021e60
test byte [rcx + 0x1c], 1
je 0x140021e60
cmp byte [rcx + 0x19], 4
jb 0x140021e60
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155270]
mov edx, 0x1c0
call fcn.140004b70
xor ebx, ebx
cmp dword [rdi + 0x150], 1
mov r13d, ebx
mov dword [rsp + 0x50], ebx
mov r15d, ebx
mov qword [rsp + 0x60], rbx
mov r14d, ebx
mov qword [rbp - 0x80], rbx
mov r12d, ebx
mov qword [rsp + 0x40], rbx
mov qword [rbp - 0x40], rbx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
jne 0x140021ec3
lea r8, str.m_eMediaType___BLB_MT_SHINY
mov edx, 0x27ff
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400876c8
cmp byte [rdi + 0x186], bl
jne 0x140021ee3
lea r8, str.m_bSystemState
mov edx, 0x2800
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.1400876c8
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]
nop dword [rax + rax]
mov edx, dword [rdi + 0x170]
test edx, edx
je 0x140021f4b
mov rcx, qword [rdi + 0xd8]
mov r8d, edx
add rcx, 0x68
test byte [rcx - 0x14], 1
jne 0x140021f2b
mov dl, 1
cmp byte [rcx], bl
jne 0x140021f2d
mov dl, bl
test dl, dl
lea eax, [r13 + 1]
cmove eax, r13d
add rcx, 0x170
mov r13d, eax
sub r8, 1
jne 0x140021f1f
mov dword [rsp + 0x50], eax
mov eax, r13d
mov ebx, r13d
shl rbx, 3
mov rcx, rbx
mov qword [rbp - 0x38], rax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x48], rax
test rax, rax
jne 0x140021f7b
mov ebx, 0x8007000e
jmp 0x14002212f
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x40], rax
test rax, rax
je 0x140021f71
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov eax, 0xffffffff
cmp rbx, rax
ja 0x1400228ec
mov ebx, ebx
mov ecx, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rbp - 0x78], rax
test rax, rax
je 0x140021f71
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor ebx, ebx
cmp dword [rdi + 0x170], ebx
jbe 0x1400220b7
mov eax, r14d
imul rsi, rax, 0x170
mov rax, qword [rdi + 0xd8]
test byte [rsi + rax + 0x54], 1
jne 0x1400220a7
cmp byte [rsi + rax + 0x68], bl
je 0x1400220a7
test r12, r12
je 0x140022035
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rax, qword [rdi + 0xd8]
mov qword [rsp + 0x58], rbx
lea rcx, [rsi + rax]
lea rdx, [rsp + 0x58]
call fcn.140013a90
mov ebx, eax
test eax, eax
js 0x1400227d0
mov rcx, qword [rdi + 0x338]
lea r9, [rbp - 0x58]
mov r12, qword [rsp + 0x58]
lea r8, [rbp - 0x60]
xor ebx, ebx
mov rdx, r12
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x140005b13.0]
cmp r15d, r13d
jae 0x140022120
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 0x140021fef
mov rcx, qword [rdi + 0x158]
lea r8, [rsp + 0x48]
lea rdx, [0x140152808]
call fcn.14008867c
xor r15d, r15d
mov ebx, eax
test eax, eax
js 0x140022125
xor edx, edx
lea rcx, [rdi + 0x28]
call fcn.1400fdb78
mov ebx, eax
test eax, eax
js 0x140022125
mov r14, qword [rsp + 0x48]
lea r9, [rbp - 0x30]
mov rcx, r14
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
test eax, eax
jne 0x140022240
mov rcx, r14
call fcn.1401373d4
mov ebx, eax
jmp 0x140022243
mov ebx, 0x8000ffff
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
lea rcx, [rdi + 0x28]
call fcn.1400fdd24
xor r13d, r13d
test ebx, ebx
jns 0x140022178
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [rdi + 0x20], r13d
jl 0x140022168
mov ecx, 0x807800c5
mov eax, r13d
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]
nop dword [rax + rax]
xor edi, edi
cmp qword [rsp + 0x60], rdi
je 0x140022192
lea rcx, [rsp + 0x60]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x1400221aa
mov rcx, rax
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test r14, r14
je 0x1400221be
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test r15, r15
je 0x1400221d2
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400221e7
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov r15, qword [rbp - 0x48]
test r15, r15
je 0x140022900
mov r14d, dword [rsp + 0x50]
mov r13d, r14d
test r14d, r14d
je 0x14002222c
mov rdi, r15
mov esi, r14d
xor eax, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140022222
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
xor eax, eax
mov qword [rdi], rax
add rdi, 8
sub rsi, 1
jne 0x140022209
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x140022909
mov ebx, r15d
test ebx, ebx
js 0x1400228f6
lea rcx, [rdi + 0x28]
call fcn.1400fdd24
xor r9d, r9d
mov r13d, r9d
mov eax, r9d
mov dword [rsp + 0x54], eax
cmp dword [rdi + 0x170], r9d
jbe 0x1400225fc
mov rsi, qword [rdi + 0xd8]
imul rcx, rax, 0x170
add rsi, rcx
mov qword [rsp + 0x68], rcx
test byte [rsi + 0x54], 1
jne 0x1400225e6
cmp byte [rsi + 0x68], r9b
je 0x1400225e6
cmp r13d, dword [rsp + 0x50]
jae 0x140022120
test r12, r12
je 0x1400222c1
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
xor r15d, r15d
mov qword [rsp + 0x58], r15
jmp 0x1400222c4
xor r15d, r15d
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.140013a90
mov ebx, eax
test eax, eax
js 0x1400227d0
mov rax, qword [rbp - 0x48]
xor r8d, r8d
mov r12, qword [rsp + 0x58]
mov r14d, r13d
mov rcx, r12
lea rdx, [rax + r14*8]
call fcn.14008859c
mov ebx, eax
test eax, eax
js 0x140022125
cmp qword [rsp + 0x60], r15
je 0x14002231d
lea rcx, [rsp + 0x60]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov qword [rsp + 0x60], r15
lea rdx, [rsp + 0x60]
lea rcx, [rsi + 0x44]
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
test eax, eax
jne 0x1400227c6
mov r9, qword [rsp + 0x60]
lea r8, str._s.vhdx
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.1400100a8
mov ebx, eax
test eax, eax
js 0x140022125
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x1d8]
lea rdx, [rbp - 0x80]
and qword [rbp - 0x80], 0
call fcn.140088360
mov ebx, eax
test eax, eax
js 0x140022125
mov rax, qword [rbp - 0x40]
lea rdx, [rbp + 0x20]
mov rcx, qword [rbp - 0x80]
lea r14, [rax + r14*8]
mov r8, r14
call fcn.14008867c
mov ebx, eax
test eax, eax
js 0x140022125
xor edx, edx
lea rcx, [rdi + 0x28]
call fcn.1400fdb78
mov ebx, eax
test eax, eax
js 0x140022125
mov rcx, qword [r14]
call fcn.14008f188
lea rcx, [rdi + 0x28]
mov bl, al
call fcn.1400fdd24
xor eax, eax
test bl, bl
je 0x140022489
lea rbx, [rsi + 0xe0]
cmp qword [rbx], rax
je 0x140022453
mov rcx, qword [0x14017a048]
lea rdx, [0x14017a048]
mov rax, qword [rbx]
cmp rcx, rdx
je 0x14002242b
test byte [rcx + 0x1c], 1
je 0x14002242b
cmp byte [rcx + 0x19], 4
jb 0x14002242b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155270]
mov edx, 0x1c1
call fcn.140004b70
mov rax, qword [rsi + 0xe0]
mov rdx, qword [rbp - 0x78]
xor r8d, r8d
mov ecx, r13d
lea rdx, [rdx + rcx*8]
mov rcx, rax
call fcn.14008859c
xor r9d, r9d
mov ebx, eax
test eax, eax
js 0x140022125
jmp 0x1400225e3
test byte [rsi + 0x54], 0x18
jne 0x140022471
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.1400876c8
mov rdx, qword [r14]
mov r8, rbx
mov rcx, rdi
call fcn.14002edec
mov r15, qword [rsp + 0x40]
jmp 0x140022529
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400224a5
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
mov edx, dword [rsi + 0x54]
lea r8, [rsp + 0x40]
xor r9d, r9d
lea rcx, [rsi + 0x44]
call fcn.14008b4a4
mov r15, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
js 0x14002212a
lea rdx, [rbp - 0x70]
mov rcx, r15
call fcn.14008af2c
mov ebx, eax
test eax, eax
js 0x14002212a
lea rdx, [rbp - 0x50]
mov rcx, r15
call fcn.1401352f8
xor edx, edx
mov ebx, eax
test eax, eax
js 0x14002212a
mov ecx, dword [rsi + 0x40]
lea rax, [rsi + 0xe0]
mov r9, qword [rsi + 0x60]
mov r8, qword [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov byte [rsp + 0x20], dl
mov rdx, qword [r14]
call fcn.140021ba4
mov ebx, eax
test eax, eax
js 0x14002212a
mov rax, qword [rbp - 0x78]
mov ecx, r13d
lea r14, [rax + rcx*8]
mov rcx, qword [rdi + 0xd8]
mov rax, qword [rsp + 0x68]
mov rdx, r14
mov rcx, qword [rcx + rax + 0xe0]
call fcn.140088360
mov ebx, eax
test eax, eax
js 0x14002212a
mov rdx, qword [rsi + 0x60]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
nop dword [rax + rax]
xor r9d, r9d
test eax, eax
jne 0x1400225e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400225dd
test byte [rcx + 0x1c], 1
je 0x1400225dd
cmp byte [rcx + 0x19], 3
jb 0x1400225dd
mov r9, qword [rsi + 0x60]
lea r8, [0x140155270]
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.140005de0
xor r9d, r9d
mov ebx, r9d
inc r13d
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
cmp eax, dword [rdi + 0x170]
jb 0x14002226e
mov r13d, r9d
mov dword [rsp + 0x74], r9d
cmp dword [rsp + 0x50], r9d
jbe 0x140022858
mov rax, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x48]
mov r15, rax
mov r12d, dword [rsp + 0x70]
sub rcx, rax
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x78], rax
mov rsi, qword [rdi + 0x338]
mov eax, r9d
mov dword [rsp + 0x54], eax
cmp dword [rsi + 0xd8], r9d
jbe 0x140022774
mov r14d, eax
mov rax, qword [rsi + 0xc0]
cmp r14, rax
jb 0x140022681
lea r8, str.iElement___m_nSize
mov edx, 0x2cf
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlcoll.h
call fcn.1400876c8
mov rax, qword [rsi + 0xc0]
xor r9d, r9d
cmp r14, rax
jae 0x140022a0a
lfence
mov rax, qword [rsi + 0xb8]
mov r13d, r9d
mov r14, qword [rax + r14*8]
cmp dword [r14 + 0x5c], r9d
jbe 0x140022748
mov rax, qword [r14 + 0x68]
mov esi, r13d
cmp rsi, rax
jb 0x1400226d0
lea r8, str.iElement___m_nSize
mov edx, 0x2cf
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlcoll.h
call fcn.1400876c8
mov rax, qword [r14 + 0x68]
xor r9d, r9d
cmp rsi, rax
jae 0x140022a0a
lfence
mov rax, qword [r14 + 0x60]
mov r15, qword [rax + rsi*8]
mov esi, r9d
cmp dword [r15 + 0x68], r9d
jbe 0x140022736
mov eax, esi
imul rcx, rax, 0x38
mov rax, qword [r15 + 0x60]
mov r12, qword [rcx + rax]
test r12, r12
je 0x14002272e
mov rax, qword [rsp + 0x78]
or r8, 0xffffffffffffffff
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + rax]
inc r8
cmp word [rcx + r8*2], r9w
jne 0x140022709
mov rdx, qword [r12]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
xor r9d, r9d
test eax, eax
je 0x1400227da
inc esi
cmp esi, dword [r15 + 0x68]
jb 0x1400226e4
mov r15, qword [rsp + 0x78]
inc r13d
cmp r13d, dword [r14 + 0x5c]
jb 0x14002269c
mov eax, dword [rsp + 0x54]
mov rsi, qword [rdi + 0x338]
inc eax
mov dword [rsp + 0x54], eax
cmp eax, dword [rsi + 0xd8]
jb 0x140022647
mov rcx, qword [rsp + 0x68]
mov r13d, dword [rsp + 0x74]
mov r12d, dword [rsp + 0x70]
mov esi, r9d
test r12d, r12d
je 0x140022831
mov r14, qword [rbp - 0x68]
mov rcx, qword [rcx + r15]
or r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], r9w
jne 0x14002278c
mov rdx, qword [r14]
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
xor r9d, r9d
test eax, eax
jne 0x1400227b4
mov rcx, qword [r15]
test rcx, rcx
jne 0x14002280c
inc esi
add r14, 0x18
cmp esi, r12d
jae 0x140022831
mov rcx, qword [rsp + 0x68]
jmp 0x140022784
mov ebx, 0x8007000e
jmp 0x140022125
mov r12, qword [rsp + 0x58]
jmp 0x140022125
mov r15, qword [rsp + 0x78]
mov rcx, qword [r15]
test rcx, rcx
je 0x14002273b
lea rdx, [r12 + 8]
cmp qword [rdx], r9
jne 0x14002273b
call fcn.140088360
xor r9d, r9d
mov ebx, eax
test eax, eax
js 0x1400227d0
jmp 0x14002273b
mov eax, esi
lea rdx, [rax + rax*2]
mov rax, qword [rbp - 0x68]
lea rdx, [rdx + 1]
lea rdx, [rax + rdx*8]
cmp qword [rdx], r9
jne 0x140022831
call fcn.140088360
xor r9d, r9d
mov ebx, eax
test eax, eax
js 0x1400227d0
inc r13d
add r15, 8
mov dword [rsp + 0x74], r13d
mov qword [rsp + 0x78], r15
cmp r13d, dword [rsp + 0x50]
jae 0x140022853
mov rcx, qword [rsp + 0x68]
jmp 0x14002262c
mov r12, qword [rsp + 0x58]
lea rsi, [rdi + 0x2d0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x140022125
test byte [rcx + 0x1c], 1
je 0x140022125
cmp byte [rcx + 0x19], 4
jb 0x140022125
mov rcx, qword [rcx + 0x10]
lea rdx, [rdi + 0x2c8]
mov eax, dword [rdx]
lea r8, [0x140155270]
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.140010438
jmp 0x140022125
mov ebx, 0x80070216
jmp 0x14002212f
mov r15, qword [rsp + 0x40]
jmp 0x14002212f
mov r14d, dword [rsp + 0x50]
mov r13, qword [rbp - 0x38]
mov r15, qword [rbp - 0x40]
test r15, r15
je 0x140022951
test r14d, r14d
je 0x140022942
mov rdi, r15
mov rsi, r13
xor eax, eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x140022938
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
xor eax, eax
mov qword [rdi], rax
add rdi, 8
sub rsi, 1
jne 0x14002291f
mov rcx, r15
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rsi, qword [rbp - 0x78]
test rsi, rsi
je 0x140022995
test r14d, r14d
je 0x140022986
mov rdi, rsi
xor r14d, r14d
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002297c
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rdi], r14
add rdi, 8
sub r13, 1
jne 0x140022965
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test r12, r12
je 0x1400229a9
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400229dd
test byte [rcx + 0x1c], 1
je 0x1400229dd
cmp byte [rcx + 0x19], 4
jb 0x1400229dd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140155270]
mov edx, 0x1c4
call fcn.140004b70
mov eax, ebx
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.14014b700
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.140001950
int3