Function at 0x140147150
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r15, rdx
mov rsi, rcx
lea rdi, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x1401471ab
test byte [rcx + 0x1c], 1
je 0x1401471ab
cmp byte [rcx + 0x19], 4
jb 0x1401471ab
mov edx, 0x17
lea r8, [0x140014bd0]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
and qword [rbp - 0x29], 0
and qword [rbp + 0x7f], 0
and qword [rbp + 0x77], 0
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rbp + 7]
call sub.msvcrt.dll_memset
and qword [r15], 0
xor r14d, r14d
lea r9, [rbp - 0x19]
lea r8, [rbp + 0x6f]
lea rdx, [rbp - 9]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x1401471f5
mov rcx, rsi
call fcn.140154be4
mov ebx, eax
jmp 0x1401471fb
mov r14, qword [rbp + 0x6f]
xor ebx, ebx
test ebx, ebx
js 0x140147569
cmp qword [rbp - 0x29], 0
je 0x140147222
lea r8, [0x14000559c]
mov edx, 0x95
lea rcx, [0x140005580]
call fcn.1400a8be8
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r9, [0x140001250]
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [0x1400012c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
jns 0x14014728c
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x140147529
test byte [rcx + 0x1c], 1
je 0x140147529
cmp byte [rcx + 0x19], 2
jb 0x140147529
mov edx, 0x18
mov r9d, eax
lea r8, [0x140014bd0]
mov rcx, qword [rcx + 0x10]
call fcn.14001de24
jmp 0x140147522
movups xmm0, xmmword [0x140002b48]
movdqu xmmword [rbp - 9], xmm0
mov rbx, qword [rbp - 0x29]
test rbx, rbx
jne 0x1401472bd
lea r8, [0x140005578]
mov edx, 0x9a
lea rcx, [0x140005580]
call fcn.1400a8be8
mov rbx, qword [rbp - 0x29]
cmp qword [rbp + 0x7f], 0
je 0x1401472dc
lea r8, [0x14000559c]
mov edx, 0x95
lea rcx, [0x140005580]
call fcn.1400a8be8
mov rax, qword [rbx]
lea r9, [rbp + 0x7f]
lea r8, [0x140001270]
lea rdx, [rbp - 9]
mov rcx, rbx
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
jns 0x140147328
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x140147529
test byte [rcx + 0x1c], 1
je 0x140147529
cmp byte [rcx + 0x19], 2
jb 0x140147529
mov edx, 0x19
jmp 0x140147274
mov rbx, qword [rbp + 0x7f]
test rbx, rbx
jne 0x14014734d
lea r8, [0x140005578]
mov edx, 0x9a
lea rcx, [0x140005580]
call fcn.1400a8be8
mov rbx, qword [rbp + 0x7f]
cmp qword [rbp + 0x77], 0
je 0x14014736c
lea r8, [0x14000559c]
mov edx, 0x95
lea rcx, [0x140005580]
call fcn.1400a8be8
mov rax, qword [rbx]
lea r8, [rbp + 0x77]
mov rdx, rsi
mov rcx, rbx
call qword [rax + 0x30]
mov ebx, eax
test eax, eax
jns 0x1401473c7
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x140147529
test byte [rcx + 0x1c], 1
je 0x140147529
cmp byte [rcx + 0x19], 2
jb 0x140147529
mov edx, 0x1a
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x140014bd0]
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
jmp 0x140147522
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rbp + 7]
call sub.msvcrt.dll_memset
and dword [rbp + 0x6f], 0
mov rcx, qword [rbp + 0x77]
test rcx, rcx
jne 0x1401473ff
lea r8, [0x140005578]
mov edx, 0x9a
lea rcx, [0x140005580]
call fcn.1400a8be8
mov rcx, qword [rbp + 0x77]
mov rax, qword [rcx]
lea r9, [rbp + 0x6f]
lea r8, [rbp + 7]
mov edx, 1
call qword [rax + 0x18]
mov ebx, eax
cmp eax, 1
je 0x140147533
test eax, eax
js 0x140147569
cmp dword [rbp + 7], 3
je 0x140147443
lea r8, [0x140014c28]
mov edx, 0x1e9
lea rcx, [0x140014bf0]
call fcn.1400a8be8
cmp dword [rbp + 0x6f], 1
je 0x140147461
lea r8, [0x140014be0]
mov edx, 0x1ea
lea rcx, [0x140014bf0]
call fcn.1400a8be8
mov rdx, rsi
mov rcx, qword [rbp + 0x17]
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x1401474b7
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x14014749e
test byte [rcx + 0x1c], 1
je 0x14014749e
cmp byte [rcx + 0x19], 3
jb 0x14014749e
mov edx, 0x1b
lea r8, [0x140014bd0]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1401473c7
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdi, qword [rbp + 0x27]
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140147506
test byte [rcx + 0x1c], 1
je 0x140147506
cmp byte [rcx + 0x19], 4
jb 0x140147506
mov edx, 0x1d
mov r9, rsi
lea r8, [0x140014bd0]
mov rcx, qword [rcx + 0x10]
call fcn.14001ec40
shr r14, 3
cmp rdi, r14
jbe 0x140147517
sub rdi, r14
mov qword [r15], rdi
jmp 0x14014751b
and qword [r15], 0
lea rdi, [0x14017d3a8]
mov rcx, qword [0x14017d3a8]
test ebx, ebx
jns 0x1401475b1
jmp 0x140147569
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x1401475d8
test byte [rcx + 0x1c], 1
je 0x1401475b1
cmp byte [rcx + 0x19], 4
jb 0x1401475b1
mov edx, 0x1c
mov r9, rsi
lea r8, [0x140014bd0]
mov rcx, qword [rcx + 0x10]
call fcn.14001ec40
jmp 0x1401475aa
lea rdx, [rbp + 0x6f]
mov ecx, ebx
call fcn.14011884c
mov ebx, eax
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x1401475d8
test byte [rcx + 0x1c], 1
je 0x1401475b1
cmp byte [rcx + 0x19], 2
jb 0x1401475b1
mov edx, 0x1e
mov dword [rsp + 0x20], eax
mov r9, rsi
lea r8, [0x140014bd0]
mov rcx, qword [rcx + 0x10]
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
cmp rcx, rdi
je 0x1401475d8
test byte [rcx + 0x1c], 1
je 0x1401475d8
cmp byte [rcx + 0x19], 4
jb 0x1401475d8
mov edx, 0x1f
lea r8, [0x140014bd0]
mov rcx, qword [rcx + 0x10]
call fcn.14001dd24
nop
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x1401475e8
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
nop
mov rcx, qword [rbp + 0x7f]
test rcx, rcx
je 0x1401475f8
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140147607
mov rax, qword [rcx]
call qword [rax + CoRevokeClassObject]
mov eax, ebx
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret