Function at 0x14002244c
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r14, r8
mov rdi, rdx
mov rsi, rcx
and dword [rsp + 0x30], 0
mov rax, qword [rdx]
cmp dword [rax - 0x10], 0
je 0x1400226fa
mov rax, qword [r8]
cmp dword [rax - 0x10], 0
je 0x1400226fa
lea rcx, [0x14019b9a8]
mov rax, qword [0x14019b9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x88], rax
mov r8d, dword [0x1401a3d80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub ecx, edx
cmp ecx, 5
jne 0x140022529
movsd xmm3, qword [0x140138420]
xorps xmm2, xmm2
movd xmm4, r8d
cvtdq2pd xmm4, xmm4
addsd xmm2, xmm3
movaps xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x140022511
subsd xmm2, xmm3
divsd xmm3, qword [0x140138448]
movaps xmm1, xmm2
mulsd xmm1, xmm2
movaps xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmmword [0x140138418]
ja 0x1400224f4
xor r15b, r15b
xor bpl, bpl
mov rdx, qword [r14]
or r13d, 0xffffffff
test rdx, rdx
je 0x140022558
mov rcx, qword [rdi]
cmp dword [rcx - 0x10], 0
jl 0x140022558
call fcn.1400bbf1c
mov rbx, rax
mov r8d, dword [0x1401a3d80]
test rax, rax
jne 0x14002255d
mov ebx, r13d
jmp 0x140022563
sub rbx, qword [rdi]
sar rbx, 1
imul r8d, r8d
mov eax, 0x30c30c31
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r8d, edx
cmp r8d, 0x11
jne 0x14002259b
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
cmp ebx, r13d
je 0x1400226bc
mov rax, qword [r14]
add ebx, dword [rax - 0x10]
js 0x1400226b1
mov r8, qword [rdi]
mov ecx, dword [r8 - 0x10]
cmp ebx, ecx
jg 0x1400226b1
movsxd rax, ebx
cmp word [r8 + rax*2], 0x3d
jne 0x1400225cc
inc ebx
test ebx, ebx
js 0x1400226a6
cmp ebx, ecx
jg 0x1400226a6
movsxd rax, ebx
mov r9d, 0x22
cmp word [r8 + rax*2], r9w
jne 0x1400225f1
mov r15b, 1
jmp 0x140022604
cmp ebx, ecx
jg 0x14002269b
cmp word [r8 + rax*2], 0x27
jne 0x140022606
mov bpl, 1
inc ebx
test ebx, ebx
js 0x14002263d
cmp ebx, ecx
jge 0x14002263d
neg bpl
sbb dx, dx
and dx, 7
add dx, 0x20
test r15b, r15b
cmovne dx, r9w
movsxd rax, ebx
lea rcx, [r8 + rax*2]
call fcn.1400bd49c
test rax, rax
je 0x140022645
sub rax, qword [rdi]
sar rax, 1
jmp 0x140022640
mov eax, r13d
cmp eax, r13d
jne 0x14002264b
mov rax, qword [rdi]
mov eax, dword [rax - 0x10]
sub eax, ebx
mov r9d, eax
mov r8d, ebx
lea rdx, [rsp + 0x98]
mov rcx, rdi
call fcn.14000d9e4
nop
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.1400021c4
nop
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x1400226bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400226bc
mov ecx, 0x80070057
call fcn.14000187c
int3
mov ecx, 0x80070057
call fcn.14000187c
int3
mov ecx, 0x80070057
call fcn.14000187c
int3
lea rdx, [rsp + 0x88]
mov rcx, rsi
call fcn.140002cf8
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, r13d
test eax, eax
jg 0x14002270f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002270f
lea rdx, [0x140131658]
call fcn.1400020f8
nop
mov dword [rsp + 0x30], 1
mov rax, rsi
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret