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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
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 [rax - 0x88], xmm11
mov rax, qword [0x1402f2018]
xor rax, rsp
mov qword [rbp - 0x30], rax
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
call fcn.14013e9d0
mov rsi, qword [0x1402fb580]
movsd xmm0, qword [rsi + 8]
movsd qword [rsp + 0x20], xmm0
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x28], edx
mov edi, r15d
mov r14, qword [rax + 8]
mov rbx, qword [rax]
cmp rbx, r14
je 0x140039e5a
movss xmm9, dword [rsp + 0x28]
movss xmm10, dword [rsp + 0x20]
movss xmm8, dword [0x1402c19c4]
movss xmm7, dword [0x1402c1908]
movss xmm11, dword [0x1402c1a68]
cmp byte [rbx + 0xa7], r15b
je 0x140039e45
mov eax, dword [rsi + 0x1c]
cmp dword [rbx + 0x1c], eax
je 0x140039e45
movss xmm6, dword [rbx + 0xd4]
comiss xmm6, xmm8
jbe 0x140039df8
movaps xmm6, xmm7
addss xmm6, xmm11
movsd xmm0, qword [rbx + 8]
movaps xmm1, xmm10
movsd qword [rsp + 0x40], xmm0
subss xmm1, xmm0
movaps xmm2, xmm9
subss xmm2, dword [rbx + 0x10]
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm2, xmm1
xorps xmm0, xmm0
ucomiss xmm0, xmm2
ja 0x140039e36
xorps xmm0, xmm0
sqrtss xmm0, xmm2
jmp 0x140039e3e
movaps xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
comiss xmm6, xmm0
jb 0x140039e45
inc edi
add rbx, 0x5e0
cmp rbx, r14
jne 0x140039dd6
cmp edi, 1
jge 0x14003a2c0
call fcn.14013e9d0
mov rdi, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x38]
movd xmm6, dword [rcx + 0x2b0]
cvtdq2ps xmm6, xmm6
mov rcx, qword [0x1402fb580]
movsd xmm0, qword [rcx + 8]
movsd qword [rsp + 0x20], xmm0
mov ecx, dword [rcx + 0x10]
mov dword [rsp + 0x28], ecx
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
mov qword [rbp - 0x38], r15
mov dword [rsp + 0x30], 1
mov r14, qword [rax + 8]
mov rbx, qword [rax]
mov rsi, qword [rbp - 0x40]
cmp rbx, r14
je 0x140039f44
mulss xmm6, xmm6
lea rdi, [rbx + 8]
movss xmm7, dword [rsp + 0x28]
movss xmm8, dword [rsp + 0x20]
nop dword [rax]
movsd xmm0, qword [rdi]
movaps xmm2, xmm8
movsd qword [rsp + 0x40], xmm0
subss xmm2, xmm0
movaps xmm1, xmm7
subss xmm1, dword [rdi + 8]
mulss xmm1, xmm1
mulss xmm2, xmm2
addss xmm1, xmm2
comiss xmm6, xmm1
jbe 0x140039f2c
mov qword [rsp + 0x50], rbx
cmp rsi, qword [rbp - 0x38]
je 0x140039f17
mov qword [rsi], rbx
mov rsi, qword [rbp - 0x40]
add rsi, 8
mov qword [rbp - 0x40], rsi
jmp 0x140039f2c
lea r8, [rsp + 0x50]
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.1401307f0
mov rsi, qword [rbp - 0x40]
add rbx, 0x5e0
add rdi, 0x5e0
cmp rbx, r14
jne 0x140039ed0
mov rdi, qword [rsp + 0x38]
mov r14, qword [rbp - 0x48]
cmp r14, rsi
je 0x14003a2b7
movss xmm8, dword [0x1402c1b04]
xorps xmm6, xmm6
nop dword [rax]
mov r8, qword [r14]
mov rdx, qword [0x1402fb580]
mov eax, dword [rdx + 0x1c]
cmp dword [r8 + 0x1c], eax
je 0x14003a2aa
cmp dword [rdx + 0x378], 0
jbe 0x140039f8d
cmp dword [rdx + 0x374], 0
je 0x14003a2aa
movss xmm0, dword [0x1402fb3b0]
comiss xmm0, dword [rdx + 0x380]
jb 0x14003a2aa
mov eax, dword [rdx + 0x370]
test eax, eax
je 0x14003a2aa
lea ecx, [rax - 1]
mov rax, qword [0x1402fb580]
movss xmm0, dword [rax + 0x30]
comiss xmm0, dword [rdx + rcx*4 + 0x3a8]
jb 0x14003a2aa
cmp byte [r8 + 0x90], 0
je 0x14003a2aa
movss xmm1, dword [rdi + 0x5c]
addss xmm1, xmm8
movss xmm0, dword [0x1402fb394]
comiss xmm0, xmm1
jbe 0x14003a2aa
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [r14]
sub eax, dword [rcx + 0x8c]
cmp eax, 0x3e8
jb 0x14003a2aa
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [r14]
sub eax, dword [rcx + 0x8c]
cmp eax, 0x493e0
jae 0x14003a2aa
mov rdx, qword [0x1402fb580]
cmp dword [rdx + 0x378], 0
jbe 0x14003a047
cmp dword [rdx + 0x374], 0
je 0x14003a2aa
movss xmm0, dword [0x1402fb3b0]
comiss xmm0, dword [rdx + 0x380]
jb 0x14003a2aa
mov eax, dword [rdx + 0x370]
test eax, eax
je 0x14003a2aa
lea ecx, [rax - 1]
mov rax, qword [0x1402fb580]
movss xmm0, dword [rax + 0x30]
comiss xmm0, dword [rdx + rcx*4 + 0x3a8]
jb 0x14003a2aa
mov rcx, qword [0x1402fb9c0]
test rcx, rcx
jne 0x14003a0b4
mov ecx, 0x36e490
call fcn.14022869c
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.1401d6670
mov rcx, rax
mov qword [0x1402fb9c0], rax
mov rax, qword [r14]
movsd xmm0, qword [rax + 8]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x78], eax
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x70]
call fcn.1401d5b90
movss xmm2, dword [rax]
movss xmm1, dword [rax + 4]
comiss xmm2, xmm6
jbe 0x14003a221
addss xmm2, xmm6
movd xmm0, dword [0x1402fb3a0]
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm2
jbe 0x14003a221
comiss xmm1, xmm6
jbe 0x14003a221
addss xmm1, xmm6
movd xmm0, dword [0x1402fb39c]
cvtdq2ps xmm0, xmm0
comiss xmm0, xmm1
jbe 0x14003a221
call fcn.14013edd0
mov r12, rax
mov rcx, qword [r14]
movsd xmm7, qword [rcx + 8]
mov r13d, dword [rcx + 0x10]
mov rcx, qword [0x1402fb490]
cmp byte [rcx + 0x6c], 0
jne 0x14003a2aa
mov r15, qword [0x1402fb580]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], 0
mov rdx, qword [0x1402fe798]
sub rdx, qword [0x1402fe790]
je 0x14003a1a9
lea rcx, [rsp + 0x58]
call fcn.140014500
mov rdi, qword [rsp + 0x58]
mov rdx, qword [0x1402fe790]
mov rbx, qword [0x1402fe798]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rdi]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x38]
lea rdx, [rsp + 0x58]
lea rcx, [r15 + 0x170]
call fcn.140066940
test al, al
jne 0x14003a2aa
mov rax, qword [0x1402fb4f0]
cmp dword [rax + 0x154], 1
je 0x14003a2aa
mov rax, qword [0x1402fb9c0]
test rax, rax
jne 0x14003a200
mov ecx, 0x36e490
call fcn.14022869c
mov qword [rbp - 0x60], rax
mov rcx, rax
call fcn.1401d6670
nop
mov qword [0x1402fb9c0], rax
movsd qword [rbp - 0x80], xmm7
mov dword [rbp - 0x78], r13d
lea r8, [rbp - 0x80]
lea rdx, [rbp - 0x58]
mov rcx, rax
call fcn.1401d5b90
mov r8, qword [rax]
mov rcx, r12
jmp 0x14003a28d
call fcn.14013edd0
mov rbx, rax
mov rcx, qword [0x1402fb9c0]
test rcx, rcx
jne 0x14003a255
mov ecx, 0x36e490
call fcn.14022869c
mov qword [rbp - 0x50], rax
mov rcx, rax
call fcn.1401d6670
mov rcx, rax
mov qword [0x1402fb9c0], rax
mov rax, qword [r14]
movsd xmm0, qword [rax + 8]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x48], eax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
call fcn.1401d5d20
movss xmm0, dword [rax + 4]
movss xmm1, dword [rax]
unpcklps xmm1, xmm0
movq r8, xmm1
mov rcx, rbx
xor r9d, r9d
lea edx, [r9 + 2]
call fcn.14006d7b0
test al, al
je 0x14003a2aa
movss xmm0, dword [0x1402fb394]
movss dword [rdi + 0x5c], xmm0
add r14, 8
cmp r14, rsi
jne 0x140039f60
lea rcx, [rbp - 0x48]
call fcn.140033e60
mov rcx, qword [rbp - 0x30]
xor rcx, rsp
call fcn.1402283f0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, 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 rbp
ret