Function at 0x18000a09c
Capabilities:
Get disk size

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x18002f528]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov byte [rbp], r14b
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp + 1]
call fcn.180010ca0
mov r8d, dword [0x180031de8]
lea r9d, [r8 + 1]
mov ecx, r9d
imul ecx, r8d
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
mov eax, ecx
sub eax, edx
cmp eax, 8
jne 0x18000a177
lea eax, [r8 + 2]
imul eax, r9d
imul eax, r8d
and eax, 0x80000007
jge 0x18000a136
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 5
je 0x18000a16d
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0xb
jne 0x18000a16d
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 dword [0x180031fa0], 0x3a145e77
mov dword [rsp + 0x30], r14d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
lea r8, [rbp]
mov edx, 1
mov rcx, rsi
call qword [rdi + 0x20]
mov r8d, dword [0x180031de8]
mov eax, r8d
imul eax, r8d
and eax, 0x80000003
jge 0x18000a1b7
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 2
jne 0x18000a1d9
lea ecx, [rax - 1]
cmp r8d, ecx
jle 0x18000a1d3
mov eax, r8d
cdq
idiv ecx
inc ecx
add ecx, edx
cmp ecx, r8d
jl 0x18000a1c4
mov dword [0x180031de8], ecx
mov rdx, qword [rbp + 8]
test rdx, rdx
je 0x18000a2cd
movzx eax, word [rbp]
cmp r14w, ax
je 0x18000a2cd
movzx r8d, ax
shr r8, 1
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov edi, 7
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
lea rcx, [rsp + 0x50]
call fcn.180003d38
nop
lea rax, [rsp + 0x50]
cmp rbx, rax
je 0x18000a2a7
cmp qword [rbx + 0x18], 8
jb 0x18000a23e
mov rcx, qword [rbx]
call fcn.18000c430
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
cmp qword [rsp + 0x68], 8
jae 0x18000a26e
mov r8, qword [rsp + 0x60]
inc r8
je 0x18000a285
add r8, r8
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18000bdb0
jmp 0x18000a285
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov rax, qword [rsp + 0x50]
mov qword [rbx], rax
mov qword [rsp + 0x50], r14
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x10], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x18], rax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
cmp qword [rsp + 0x68], 8
jb 0x18000a2b9
mov rcx, qword [rsp + 0x50]
call fcn.18000c430
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r14
mov word [rsp + 0x50], r14w
mov al, 1
jmp 0x18000a331
call fcn.1800065e8
test al, al
jne 0x18000a32f
mov edi, r14d
lea rsi, [rsp + 0x70]
mov r10d, r14d
lea ebx, [r10 + 1]
lea ecx, [rdi + 1]
mov r8d, dword [0x180031de8]
mov eax, r8d
cdq
idiv ecx
mov r9d, edx
mov ecx, r8d
sub ecx, edi
imul r9d, ecx
mov eax, r8d
cdq
idiv ebx
add r9d, eax
sub r9d, r10d
mov edx, r9d
lea rcx, [0x180026cb8]
call fcn.18000cfd8
mov r10d, ebx
add rsi, 4
cmp ebx, 0x12
jl 0x18000a2e1
inc edi
cmp edi, 2
jl 0x18000a2de
xor al, al
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.18000bd80
add rsp, 0x510
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret