Function at 0x18000a170
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov r15, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rbp - 0x69], r14d
lea rcx, [rbp - 0x39]
call fcn.180009e50
nop
mov rcx, qword [r15]
sub rcx, 0x18
call fcn.180002110
add rax, 0x18
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 0x7f]
call fcn.18000a7b0
nop
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x7f]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000a46a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov qword [rbp - 0x51], rsi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.1800289f0
mov rbx, rax
test rax, rax
jne 0x18000a2b2
mov rcx, rdi
call fcn.180009d50
mov dword [rbp - 0x69], 1
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000a25c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000a275
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000a28e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
lea rax, [rbp - 0x31]
mov qword [rbp - 0x41], rax
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x18000a2ad
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbp - 0x21], r14
jmp 0x18000a4e3
lea r9, [rbp - 0x51]
mov r8, rsi
mov rdx, rax
mov rcx, qword [rbp + 0x7f]
call fcn.18000b4f0
test eax, eax
jne 0x18000a364
mov r9d, dword [0x180069c80]
lea r10d, [r9 + 1]
mov r8d, r10d
imul r8d, r9d
mov eax, 0x38e38e39
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*8]
add ecx, ecx
mov eax, r8d
sub eax, ecx
cmp eax, 4
jne 0x18000a326
mov eax, 0x66666667
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
sub r8d, eax
cmp r8d, 3
cmove r9d, r10d
mov dword [0x180069c80], r9d
mov rcx, rbx
call fcn.180028a24
mov rcx, rdi
call fcn.180009d50
mov dword [rbp - 0x69], 1
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000a356
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
lea rcx, [rbp - 0x39]
call fcn.18000a530
jmp 0x18000a4fc
mov rsi, qword [rbp - 0x51]
xorps xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x18000a37d
addsd xmm0, qword [0x1800577c0]
divsd xmm0, qword [0x1800577a0]
call fcn.18003d840
mulsd xmm0, qword [0x1800577a8]
xor eax, eax
movsd xmm1, qword [0x1800577b8]
comisd xmm0, xmm1
jb 0x18000a3b9
subsd xmm0, xmm1
comisd xmm0, xmm1
jae 0x18000a3b9
movabs rcx, 0x8000000000000000
mov rax, rcx
cvttsd2si r14, xmm0
add r14, rax
mov qword [rbp - 0x59], r14
lea rcx, [r14 + 1]
call fcn.1800289f0
mov r12, rax
mov rcx, rbx
test rax, rax
je 0x18000a329
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9, r14
mov r8, r12
mov rdx, rsi
call fcn.1800030a0
test al, al
jne 0x18000a408
mov rcx, rbx
call fcn.180028a24
mov rcx, r12
jmp 0x18000a329
mov rax, qword [rbp - 0x59]
mov byte [r12 + rax], 0
mov rdx, r12
lea rcx, [rbp - 0x61]
call fcn.180001aa0
nop
mov rcx, rbx
call fcn.180028a24
mov rcx, r12
call fcn.180028a24
mov rcx, qword [rbp - 0x61]
add rcx, 0xffffffffffffffe8
call fcn.180002110
add rax, 0x18
mov qword [rdi], rax
mov dword [rbp - 0x69], 1
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000a33d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x18000a33d
mov rcx, rdi
call fcn.180009d50
mov dword [rbp - 0x69], 1
mov rdx, qword [rbp + 0x7f]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000a492
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000a4ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000a4c4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
lea rax, [rbp - 0x31]
mov qword [rbp - 0x41], rax
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x18000a4e3
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbp - 0x21], r14
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000a4fc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18000a513
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rax, rdi
add rsp, 0xd0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret