Function at 0x140016430
Capabilities:
Get disk size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx]
lea rdx, [rbp - 0x48]
call qword [rax + 0x20]
nop
mov eax, dword [0x1401ddd80]
mov r8d, eax
imul r8d, eax
imul r8d, eax
mov eax, 0x66666667
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub r8d, eax
cmp r8d, 0xa
jne 0x1400164a0
lea edx, [r8 + 0x46]
lea r8d, [rdx + 1]
lea rcx, [0x14015b0c4]
call fcn.1400d7c60
lea rdx, [rbp - 0x48]
mov rcx, r14
call fcn.14001ee10
mov edi, eax
mov eax, 0x66666667
imul edi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
mov ecx, edi
sub ecx, eax
or ebx, 0xffffffff
cmp ecx, 1
jne 0x1400167ea
mov eax, dword [0x1401ddd80]
imul eax, eax
and eax, 0x80000007
jge 0x1400164eb
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 6
jne 0x140016514
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401ddd80]
mov edx, 7
test rax, rax
cmove ecx, edx
mov dword [0x1401ddd80], ecx
lea rcx, [0x1401d59a8]
mov rdx, qword [0x1401d59a8]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x50], rax
mov ecx, dword [0x1401ddd80]
lea r8d, [rcx + 1]
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, 7
jne 0x140016574
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov r8d, edi
lea rdx, [0x14015b184]
lea rcx, [rbp - 0x50]
call fcn.140012d30
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x48], rax
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x40], rax
lea rdx, str.errco
test rdx, 0xffffffffffff0000
jne 0x1400165e9
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x1400165f3
mov r8d, edi
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140002a60
jmp 0x1400165f3
lea rcx, [rbp + 0x40]
call fcn.140003a70
nop
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x30], rax
lea rdx, [0x14015c2f0]
test rdx, 0xffffffffffff0000
jne 0x14001663c
movzx edi, dx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140016646
mov r8d, edi
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140002a60
jmp 0x140016646
lea rcx, [rbp + 0x30]
call fcn.140003a70
nop
mov r8, r14
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x38]
call fcn.1400109e0
nop
lea r8, [rbp + 0x40]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.1400109e0
nop
lea r8, [0x14015c2e0]
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.14001c2d0
nop
lea r8, [rbp - 0x50]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.1400109e0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x48]
call fcn.1400114a0
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400166b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400166d0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400166e9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140016702
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001671b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140016733
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x14015b0cc]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x20]
call fcn.14001c2d0
nop
lea r8, [rsi + 0xe0]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.1400109e0
nop
lea r8, [rsi + 0xe8]
lea rdx, [rsi + 0xc8]
lea rcx, [rbp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov rcx, rsi
call fcn.140016820
movzx edi, al
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14001679a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400167b3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400167cc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
jg 0x1400167ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400167ed
mov dil, 1
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140016806
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, dil
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret