Function at 0x180102520
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
movaps xmmword [rsp + 0x70], xmm11
movzx r14d, r9b
mov ebp, r8d
mov r12, rdx
mov rsi, rcx
movsd xmm6, qword [rcx + 0x70]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r10d, eax
sub r10d, dword [rsi + 0xc8]
cmp r10d, 0x64
jb 0x1801025c8
test ebp, ebp
jle 0x1801025a9
comisd xmm6, xmmword [0x1803e63d0]
jb 0x1801025c8
movsd xmm0, qword [0x1803e63f8]
comisd xmm0, xmm6
jmp 0x1801025bf
movsd xmm0, qword [0x1803e6420]
comisd xmm0, xmm6
jb 0x1801025c8
comisd xmm6, xmmword [0x1803e63f8]
jb 0x1801025c8
mov byte [rsi + 0xd8], 1
mov dword [rsi + 0xc8], eax
xor r13d, r13d
test ebp, ebp
jle 0x1801025df
comisd xmm6, xmmword [0x1803e6410]
jmp 0x1801025eb
movsd xmm0, qword [0x1803e63e8]
comisd xmm0, xmm6
jbe 0x1801025fb
mov dword [rsi + 0xdc], r13d
mov byte [rsi + 0xd8], r13b
cmp qword [rsi + 0x28], r13
je 0x180102849
mov eax, dword [0x1804dc870]
test al, 1
jne 0x180102625
or eax, 1
mov dword [0x1804dc870], eax
movsd xmm0, qword [rsi + 0x70]
movsd qword [0x1804dc868], xmm0
test al, 2
jne 0x18010263e
or eax, 2
mov dword [0x1804dc870], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804dc860], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, dword [0x1804dc860]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1804dc860], eax
lea rbx, [rsi + 0xa8]
mov qword [rsp + 0x100], rbx
test rbx, rbx
je 0x18010267b
mov rcx, qword [rbx]
test rcx, rcx
je 0x18010267b
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
movups xmm10, xmmword [rsi + 0x78]
movups xmm11, xmmword [rsi + 0x88]
movsd xmm1, qword [rsi + 0x70]
movaps xmm7, xmm1
movsd xmm4, qword [0x1804dc868]
cmp edi, 0x64
jae 0x1801026ac
mov eax, ebp
cdq
xor eax, edx
sub eax, edx
cmp eax, 1
jne 0x1801026ac
movaps xmm7, xmm4
xor al, al
movaps xmm0, xmm7
movsd xmm3, qword [0x1803e6400]
subsd xmm0, xmm3
movsd xmm8, qword [0x1803e6880]
andps xmm0, xmm8
movsd xmm2, qword [0x1803e62f0]
comisd xmm2, xmm0
jbe 0x180102703
movaps xmm0, xmm1
subsd xmm0, xmm3
andps xmm0, xmm8
comisd xmm2, xmm0
jbe 0x180102703
movaps xmm0, xmm7
subsd xmm0, xmm4
andps xmm0, xmm8
movzx eax, al
mov ecx, 1
comisd xmm2, xmm0
cmova eax, ecx
movsd qword [0x1804dc868], xmm1
test al, al
jne 0x18010278b
test r14b, r14b
je 0x18010278b
cmp byte [rsi + 0xd8], al
je 0x180102741
subsd xmm1, xmm3
andps xmm1, xmm8
comisd xmm2, xmm1
jbe 0x180102781
mov eax, dword [rsi + 0xdc]
cmp eax, 1
ja 0x180102781
inc eax
mov dword [rsi + 0xdc], eax
mov al, 1
jmp 0x180102783
cmp byte [0x1804dc63c], 0
je 0x180102850
mov eax, dword [0x1804dc638]
cmp eax, 4
jae 0x180102773
subsd xmm1, xmm3
andps xmm1, xmm8
comisd xmm2, xmm1
jbe 0x180102773
inc eax
mov dword [0x1804dc638], eax
mov al, 1
jmp 0x180102783
mov byte [0x1804dc63c], 0
mov dword [0x1804dc638], r13d
xor al, al
test al, al
jne 0x180102948
movsd xmm6, qword [rsi + 0x70]
movsd qword [rsp + 0x30], xmm6
mov rdi, qword [rsi + 0x28]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0xd0]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0xc8]
test ebp, ebp
setg r15b
xor r14b, r14b
mov rcx, qword [rsi + 0x68]
test rcx, rcx
je 0x1801027d1
mov rax, qword [rcx]
call qword [rax + 0x80]
movzx r14d, al
mov edi, r13d
mov eax, ebp
cdq
mov ebp, eax
xor ebp, edx
sub ebp, edx
test ebp, ebp
jle 0x18010280e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
movaps xmm3, xmm7
movzx r8d, r15b
movzx edx, r14b
call fcn.18021a860
movsd xmm6, qword [rsp + 0x30]
test al, al
je 0x18010280e
movaps xmm7, xmm6
inc edi
cmp edi, ebp
jl 0x1801027e1
movsd xmm7, qword [rsi + 0x70]
movaps xmm0, xmm7
subsd xmm0, xmm6
andps xmm0, xmm8
movsd xmm9, qword [0x1803e6328]
comisd xmm9, xmm0
jbe 0x180102870
test rbx, rbx
je 0x180102849
mov rcx, qword [rbx]
test rcx, rcx
je 0x180102841
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x100], r13
xor al, al
jmp 0x180102965
subsd xmm1, xmm3
andps xmm1, xmm8
comisd xmm2, xmm1
jbe 0x180102781
mov byte [0x1804dc63c], 1
mov al, 1
jmp 0x180102783
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x58], xmm1
mov rax, qword [r12]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rsp + 0x30], xmm0
shr rax, 0x20
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rsp + 0x38], xmm0
mov rax, qword [rsi]
lea r9, [rsp + 0x48]
movaps xmm2, xmm6
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [rax + 0x120]
movups xmmword [rsi + 0x78], xmm10
movups xmmword [rsi + 0x88], xmm11
movsd qword [rsi + 0x70], xmm7
movsd qword [0x1804dc868], xmm6
test rbx, rbx
je 0x1801028f5
mov rcx, qword [rbx]
test rcx, rcx
je 0x1801028ea
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, r13
mov qword [rsp + 0x100], rbx
movaps xmm1, xmm6
subsd xmm1, xmm7
andps xmm1, xmm8
movaps xmm0, xmm1
movsd xmm2, qword [0x1803e6338]
subsd xmm0, xmm2
andps xmm0, xmm8
comisd xmm9, xmm0
ja 0x180102924
comisd xmm1, xmm2
ja 0x180102924
xor dl, dl
jmp 0x180102926
mov dl, 1
mov rax, qword [rsi]
mov byte [rsp + 0x28], 0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
movaps xmm3, xmm6
mov r8, r12
mov rcx, rsi
call qword [rax + 0x158]
nop
test rbx, rbx
je 0x180102963
mov rcx, qword [rbx]
test rcx, rcx
je 0x18010295b
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x100], r13
mov al, 1
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret