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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x101c7724]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ecx]
push edi
mov edi, dword [ebp + 0x14]
push 0xff
push 0x1a
push 0x1a
push 0x14
vmovss dword [ebp - 4], xmm3
call dword [eax + 0x20]
mov esi, dword [ebp + 0xc]
mov ecx, dword [0x101c7724]
lea edx, [esi + 0xc]
mov eax, dword [ecx]
push edx
mov dword [ebp + 8], edx
lea edx, [ebx + 0xe6]
push edx
push esi
push ebx
call dword [eax + 0x24]
mov ecx, dword [0x101c7724]
push 0xff
push 0x3c
push 0x3c
mov eax, dword [ecx]
push 0x3c
call dword [eax + 0x20]
mov ecx, dword [0x101c7724]
lea eax, [esi + 0xd]
push eax
lea eax, [ebx + 0xe7]
push eax
mov edx, dword [ecx]
lea eax, [esi - 1]
push eax
lea eax, [ebx - 1]
push eax
call dword [edx + 0x28]
mov ecx, dword [0x101c7724]
push 0xff
push 0
push 0
mov eax, dword [ecx]
push 0
call dword [eax + 0x20]
mov ecx, dword [0x101c7724]
lea eax, [esi + 0xe]
push eax
lea eax, [ebx + 0xe8]
push eax
mov edx, dword [ecx]
lea eax, [esi - 2]
push eax
lea eax, [ebx - 2]
push eax
call dword [edx + 0x28]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100153d7
push eax
push 0
push 0xff
push 0xb4
push 0xb4
push 0xb4
lea eax, [esi - 0xa]
push eax
lea eax, [ebx + 1]
push eax
push dword [0x101c6df8]
push 0x101c6dfc
call fcn.1000cc80
add esp, 0x28
cmp byte [ebp + 0x1c], 0
vmovss xmm1, dword [edi]
vmovss dword [ebp + 0x14], xmm1
je 0x100153fb
vcvttss2si eax, xmm1
vxorps xmm1, xmm1, xmm1
vcvtsi2ss xmm1, xmm1, eax
vmovss dword [ebp + 0x14], xmm1
vmovss dword [edi], xmm1
vmovss xmm0, dword [ebp - 4]
vcomiss xmm0, xmm1
ja 0x10015411
vmovss xmm0, dword [ebp + 0x10]
vcomiss xmm1, xmm0
jbe 0x1001541e
vmovaps xmm1, xmm0
vmovss dword [ebp + 0x14], xmm1
vmovss dword [edi], xmm0
vcvttss2si eax, dword [0x101c7ac8]
mov ecx, dword [0x101c7724]
vmovss xmm0, dword [0x101c0c00]
vdivss xmm0, xmm0, dword [ebp + 0x10]
push 0xff
mov edx, dword [ecx]
push eax
vcvttss2si eax, dword [0x101c7ac4]
push eax
vcvttss2si eax, dword [0x101c7ac0]
vmovss dword [ebp + 0x18], xmm0
vmulss xmm0, xmm1, xmm0
push eax
vcvttss2si esi, xmm0
call dword [edx + 0x20]
push dword [ebp + 8]
mov ecx, dword [0x101c7724]
mov eax, esi
neg eax
vxorps xmm0, xmm0, xmm0
vcomiss xmm0, dword [ebp + 0x14]
mov edx, dword [ecx]
cmovbe eax, esi
mov esi, dword [ebp + 0xc]
add eax, ebx
push eax
push esi
push ebx
call dword [edx + 0x24]
mov eax, dword [ebp + 0x20]
lea edx, [ebx + 0x73]
vmovss xmm0, dword [edi]
test eax, eax
mov ecx, 0x1003817b
vcvtss2sd xmm0, xmm0, xmm0
cmovne ecx, eax
lea eax, [esi + 6]
push ecx
sub esp, 8
cmp byte [ebp + 0x1c], 0
vmovsd qword [esp], xmm0
jne 0x100154e8
cmp byte [ebp + 0x24], 0
push str._.2f_s
push 2
push 0xff
push 0xff
push 0xff
push 0xff
push eax
push edx
push dword [0x101c6df8]
push 0x101c6dfc
je 0x10015510
call fcn.1000cda0
jmp 0x10015515
push str._.f_s
push 2
push 0xff
push 0xff
push 0xff
push 0xff
push eax
push edx
push dword [0x101c6df8]
push 0x101c6dfc
call fcn.1000cc80
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x34
call esi
sub eax, dword [0x101c6f38]
cmp eax, 0xc8
jbe 0x1001560e
call esi
sub eax, dword [0x101c6f34]
cmp eax, 0xc8
jbe 0x1001560e
cmp byte [0x101c6f3d], 0
jne 0x1001560e
cmp byte [0x101c6f3c], 0
jne 0x1001560e
cmp byte [0x101c6e19], 0
jne 0x1001560e
mov eax, dword [0x101c6e28]
cmp eax, ebx
jl 0x1001560e
lea edx, [ebx + 0xe6]
cmp eax, edx
ja 0x1001560e
mov ecx, dword [0x101c6e2c]
cmp ecx, dword [ebp + 0xc]
jl 0x1001560e
cmp ecx, dword [ebp + 8]
ja 0x1001560e
cmp byte [0x101c6f4a], 0
je 0x100155b5
vmovss xmm3, dword [ebp - 4]
sub eax, ebx
vxorps xmm0, xmm0, xmm0
vcvtsi2ss xmm0, xmm0, eax
vdivss xmm1, xmm0, dword [ebp + 0x18]
jmp 0x100155e8
cmp byte [0x101c6f4b], 0
je 0x1001560e
vmovss xmm3, dword [ebp - 4]
vxorps xmm0, xmm0, xmm0
vcomiss xmm0, xmm3
jbe 0x1001560e
vmovss xmm0, dword [0x101c0c78]
vdivss xmm0, xmm0, dword [ebp + 0x18]
vxorps xmm1, xmm1, xmm1
sub eax, ebx
vcvtsi2ss xmm1, xmm1, eax
vmulss xmm1, xmm1, xmm0
vcomiss xmm3, xmm1
vmovss dword [edi], xmm1
jbe 0x100155ff
vmovss dword [edi], xmm3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
vmovss xmm0, dword [ebp + 0x10]
vcomiss xmm1, xmm0
jbe 0x1001560e
vmovss dword [edi], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20