Function at 0x140016860
Capabilities:
Get disk size

Disassembly:
push rdi
sub rsp, 0xd0
mov rax, qword [0x14002fb80]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov al, byte [0x14002fb6c]
movsx eax, al
mov dword [rsp + 0x34], eax
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
call fcn.14001e754
movsx eax, al
mov dword [rsp + 0x38], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x38]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x140016bc1
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x20]
call fcn.140014840
mov rcx, rax
call fcn.140013830
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0xc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
cdqe
cvtsi2sd xmm0, rax
call fcn.1400214ec
mov dword [rsp + 0x4c], eax
mov cl, byte [0x14002fb6c]
movsx ecx, cl
mov dword [rsp + 0x40], ecx
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
call fcn.14001e754
movsx eax, al
shl eax, 1
mov dword [rsp + 0x44], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x44]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x4c]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140016bc1
xor eax, eax
cmp eax, 7
je 0x140016bc1
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x21]
call fcn.140014c9c
mov rcx, rax
call fcn.140013ae8
mov qword [rsp + 0x90], rax
mov al, byte [0x14002fb6c]
movsx eax, al
mov dword [rsp + 0x50], eax
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x50]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x58], eax
call fcn.14001e754
movsx eax, al
imul eax, eax, 9
mov dword [rsp + 0x54], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x54]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x58]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
test eax, eax
je 0x140016bc1
mov rax, qword [rsp + 0x90]
cmp qword [rsp + 0xb0], rax
jae 0x140016a75
mov qword [rsp + 0x88], 1
jmp 0x140016a81
mov qword [rsp + 0x88], 0
cvtsi2sd xmm0, qword [rsp + 0x88]
call fcn.1400214ec
mov dword [rsp + 0x68], eax
mov cl, byte [0x14002fb6c]
movsx ecx, cl
mov dword [rsp + 0x5c], ecx
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x5c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x64], eax
call fcn.14001e754
movsx eax, al
shl eax, 2
mov dword [rsp + 0x60], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x60]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x64]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
mov ecx, dword [rsp + 0x68]
imul ecx, eax
mov eax, ecx
test eax, eax
je 0x140016bc1
xor eax, eax
cmp eax, 9
je 0x140016bc1
mov dword [rsp + 0x24], 0
jmp 0x140016b25
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov al, byte [0x14002fb6c]
movsx eax, al
mov dword [rsp + 0x6c], eax
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
call fcn.14001e754
movsx eax, al
imul eax, eax, 5
mov dword [rsp + 0x70], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x70]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.1400214ec
cmp dword [rsp + 0x24], eax
jge 0x140016bc1
mov dword [rsp + 0x28], 0
jmp 0x140016bac
cmp dword [rsp + 0x28], 0x5a
jae 0x140016bbc
mov al, 1
jmp 0x140016c71
jmp 0x140016b1b
mov dword [rsp + 0x2c], 0
jmp 0x140016bd5
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov al, byte [0x14002fb6c]
movsx eax, al
mov dword [rsp + 0x78], eax
call fcn.14001e760
movsx eax, al
mov ecx, dword [rsp + 0x78]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x80], eax
call fcn.14001e754
movsx eax, al
mov dword [rsp + 0x7c], eax
call fcn.14001e750
movsx eax, al
mov ecx, dword [rsp + 0x7c]
imul ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x80]
add ecx, eax
mov eax, ecx
mov cl, byte [0x14002fb6b]
movsx ecx, cl
xor edx, edx
div ecx
mov cl, byte [0x14002fb68]
movsx ecx, cl
sub eax, ecx
mov eax, eax
cvtsi2sd xmm0, rax
call fcn.1400214ec
cmp dword [rsp + 0x2c], eax
jge 0x140016c71
mov dword [rsp + 0x30], 0
jmp 0x140016c5f
cmp dword [rsp + 0x30], 0x14
jae 0x140016c6c
xor al, al
jmp 0x140016c71
jmp 0x140016bcb
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140024970
add rsp, 0xd0
pop rdi
ret