Function at 0x1800090cc
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r15, r9
mov r12, r8
mov rdi, rdx
mov r13, qword [0x180031e00]
mov qword [rsp + 0x60], r13
mov eax, dword [0x180031de8]
mov ecx, eax
imul ecx, eax
imul ecx, eax
and ecx, 0x8000000f
jge 0x180009123
dec ecx
or ecx, 0xfffffff0
inc ecx
cmp ecx, 4
jne 0x18000914a
mov ecx, 4
call fcn.18000c278
mov rbx, rax
call fcn.18000cecc
mov dword [rbx], eax
mov dword [0x180031de8], eax
mov rcx, rbx
call fcn.18000c270
mov r9d, dword [rsp + 0xb0]
mov r8, r15
mov rdx, r12
mov rcx, rdi
call qword [r13 + 0x48]
mov ecx, eax
mov rax, qword [rsp + 0xb8]
mov dword [rax], ecx
test r12, r12
je 0x180009409
test ecx, ecx
je 0x180009409
cmp dword [r15], 0
je 0x180009409
lea rdi, [r13 + 0x50]
mov qword [rsp + 0x50], rdi
lea r14, [rdi + 8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rdx, qword [r13 + 0x80]
mov rbx, qword [rdx]
jmp 0x1800091b7
cmp qword [rbx + 0x50], r12
sete al
test al, al
jne 0x1800091bc
mov rbx, qword [rbx]
cmp rbx, rdx
jne 0x1800091a9
mov qword [rsp + 0x58], rbx
cmp rdx, rbx
jne 0x1800091d4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x180009409
mov r12b, byte [rbx + 0x18]
mov byte [rsp + 0x90], r12b
test r12b, r12b
je 0x1800091c6
lea rax, [rbx + 0x30]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rbx + 0x48]
mov qword [rsp + 0x48], rcx
mov r14, qword [rax + 8]
sub r14, qword [rax]
mov eax, dword [0x180031de8]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 0xe
jne 0x18000923e
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov edx, dword [r15]
add rdx, r14
mov rcx, qword [rsp + 0xb8]
call fcn.1800039ac
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx]
mov r8d, dword [r15]
add rcx, r14
mov rdx, qword [rsp + 0x48]
call fcn.18000bbf0
mov r8d, dword [0x180031de8]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 7
sub ecx, edx
cmp ecx, 5
jne 0x180009338
xor r9d, r9d
mov dword [rsp + 0x40], r9d
test r8d, r8d
je 0x180009338
inc r9d
mov dword [rsp + 0x40], r9d
mov eax, r8d
and eax, 0x80000001
jge 0x1800092c9
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x1800092e0
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [0x180031de8], eax
jmp 0x1800092ef
lea r8d, [r8*2 + 1]
mov dword [0x180031de8], r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov ecx, r8d
sub ecx, eax
je 0x180009313
sub ecx, 2
je 0x18000931e
dec ecx
je 0x180009328
jmp 0x180009333
add r8d, 2
mov dword [0x180031de8], r8d
inc r8d
mov dword [0x180031de8], r8d
add r8d, 2
mov dword [0x180031de8], r8d
jmp 0x1800092a7
mov byte [rsp + 0x28], r12b
mov r8, qword [rsp + 0xb8]
mov rdx, qword [rbx + 0x10]
mov rcx, r13
call fcn.18000942c
test al, al
jne 0x18000935e
lea rcx, [rdi + 8]
jmp 0x1800091c9
mov r8d, dword [0x180031de8]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x16
sub ecx, edx
cmp ecx, 6
jne 0x1800093e8
lea r11d, [rcx + 0xc]
mov dword [rsp + 0x3c], r11d
xor ecx, ecx
mov dword [rsp + 0x30], ecx
cmp ecx, r11d
jge 0x1800093e8
xor r10d, r10d
mov dword [rsp + 0x38], r10d
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
cmp r10d, eax
jge 0x1800093e4
xor r9d, r9d
mov dword [rsp + 0x34], r9d
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
cmp r9d, eax
jge 0x1800093df
mov eax, r10d
imul eax, ecx
sub eax, r9d
add r11d, eax
mov dword [rsp + 0x3c], r11d
inc r9d
jmp 0x1800093b3
inc r10d
jmp 0x18000939e
inc ecx
jmp 0x180009392
jmp 0x180009273
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret