Function at 0x14004ae40
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
xor r14d, r14d
mov qword [rsp + 0x70], r14
lea rcx, str.__r_
mov rax, qword [str.__r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
lea rbp, str._L_S_1_15_2_1430448594_2639229838_973813799_439329657_1197984847_4069167804_1277922394
test rbp, 0xffffffffffff0000
jne 0x14004aeb4
movzx edi, bp
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x14004af27
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140002760
mov rbx, qword [rsp + 0x78]
jmp 0x14004af27
mov esi, dword [rbx - 0x10]
mov rdi, rbp
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x58
or eax, ecx
jge 0x14004aee6
mov edx, 0x58
lea rcx, [rsp + 0x78]
call fcn.140002560
mov rbx, qword [rsp + 0x78]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 0xb0
mov rcx, rbx
add rdx, rdx
cmp rdi, rsi
ja 0x14004af06
lea r8, [rbx + rdi*2]
call fcn.1400d400c
jmp 0x14004af0e
mov r8, rbp
call fcn.1400d41cc
cmp dword [rbx - 0xc], 0x58
jl 0x14004b0bb
mov dword [rbx - 0x10], 0x58
mov word [rbx + 0xb0], r14w
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x80]
call fcn.14002a610
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
or rdi, 0xffffffffffffffff
cmp rcx, rbx
je 0x14004af91
cmp dword [rbx + 0x10], 0
jl 0x14004af82
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004af82
call fcn.1400025c0
mov rsi, rax
lock add dword [rbx + 0x10], edi
jg 0x14004af77
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x78], rax
jmp 0x14004af91
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x78]
call fcn.140002470
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004afad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rsp + 0x78]
lea rcx, [rsi - 0x18]
call fcn.1400025c0
lea rbx, [rax + 0x18]
mov qword [rsp + 0x88], rbx
lea rcx, [0x14015de80]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b083
lea rdx, str.GetAppContainerFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004b029
lea rdx, [rsp + 0x70]
mov rcx, rbx
call rax
mov rdx, qword [rsp + 0x70]
test rdx, rdx
jne 0x14004b00b
mov eax, r14d
jmp 0x14004b01a
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004b010
mov r8d, eax
lea rcx, [0x1401d7af0]
call fcn.140002470
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [0x1401d5d60]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x66666667
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
cmp r8d, 1
jne 0x14004b07e
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov bpl, 1
jmp 0x14004b086
xor bpl, bpl
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x14004b09f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lock add dword [rsi - 8], 0xffffffff
jg 0x14004b0b5
mov rcx, qword [rsi - 0x18]
mov r8, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bpl
jmp 0x14004b0c6
mov ecx, 0x80070057
call fcn.140001920
nop
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret