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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10685794], 0
push esi
push edi
jl 0x1003da5c
movss xmm0, dword [0x100bc6ac]
xor eax, eax
movss xmm3, dword [0x11b3794]
comiss xmm0, xmm3
xorps xmm0, xmm0
setae al
movd xmm1, eax
cvtdq2ps xmm1, xmm1
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1003d775
movaps xmm2, xmm3
jmp 0x1003d77d
movss xmm2, dword [0x11b3798]
mulss xmm2, dword [0x100bcb90]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x1003d793
movaps xmm4, xmm3
jmp 0x1003d79b
movss xmm4, dword [0x11b3798]
movss xmm1, dword [0x11b3798]
mov eax, 0x631289
movaps xmm0, xmm1
mulss xmm4, dword [0x100bcb9c]
push ecx
mulss xmm0, dword [0x100bc9fc]
mov dword [esp], 0
push 1
push 1
divss xmm0, xmm1
sub esp, 0x20
mov dword [esp + 0x1c], 0x3f800000
mov dword [esp + 0x18], 0x3f5eb852
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
divss xmm2, xmm3
movss dword [esp + 0xc], xmm0
movaps xmm0, xmm3
mulss xmm0, dword [0x100bccd4]
movss dword [esp + 8], xmm2
mov dword [esp + 4], 0
subss xmm0, xmm4
divss xmm0, xmm3
movss dword [esp], xmm0
push 0x787e
call eax
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0x30
call esi
mov ecx, dword [0x106857a0]
sub eax, dword [0x106857a4]
inc ecx
mov dword [0x106857a0], ecx
cmp eax, 0x3e8
jbe 0x1003d861
mov dword [0x1068579c], ecx
mov dword [0x106857a0], 0
call esi
mov dword [0x106857a4], eax
movss xmm0, dword [0x11b3794]
xor eax, eax
movss xmm1, dword [0x100bc6ac]
xorps xmm2, xmm2
comiss xmm1, xmm0
movss dword [ebp - 0xc], xmm0
setae al
movd xmm4, eax
cvtdq2ps xmm4, xmm4
ucomiss xmm4, xmm2
lahf
test ah, 0x44
jnp 0x1003d896
movaps xmm1, xmm0
jmp 0x1003d89e
movss xmm1, dword [0x11b3798]
mulss xmm1, dword [0x100bcb00]
movaps xmm3, xmm0
mulss xmm3, dword [0x100bccd4]
ucomiss xmm4, xmm2
divss xmm1, xmm0
lahf
movss dword [ebp - 8], xmm3
test ah, 0x44
jp 0x1003d8cb
movss xmm0, dword [0x11b3798]
push dword [0x10685794]
mov ecx, 0x10173658
movss dword [ebp - 4], xmm0
push 0xae
cvttss2si esi, xmm1
call fcn.10036b80
push eax
push 0
push 1
push esi
push 4
movss xmm1, dword [ebp - 4]
mulss xmm1, dword [0x100bcb78]
movss xmm0, dword [ebp - 8]
subss xmm0, xmm1
divss xmm0, dword [ebp - 0xc]
cvttss2si eax, xmm0
push eax
push 0xff19bdff
push 0x1023cd58
call fcn.100607a0
movss xmm2, dword [0x11b3794]
xor eax, eax
movaps xmm0, xmm2
movss dword [ebp - 8], xmm2
mulss xmm0, dword [0x100bccd4]
add esp, 0x24
xorps xmm1, xmm1
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [0x100bc6ac]
comiss xmm0, xmm2
setae al
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1003d96a
movss dword [ebp - 4], xmm2
jmp 0x1003d977
movss xmm0, dword [0x11b3798]
movss dword [ebp - 4], xmm0
push dword [0x1068578c]
mov ecx, 0x10173658
push 0xaf
call fcn.10036b80
movss xmm0, dword [ebp - 4]
mulss xmm0, dword [0x100bcb00]
push eax
movss xmm1, dword [ebp - 0xc]
push 0
subss xmm1, xmm0
push 1
push esi
push 4
divss xmm1, dword [ebp - 8]
cvttss2si eax, xmm1
push eax
push 0xff19bdff
push 0x1023cd58
call fcn.100607a0
movss xmm2, dword [0x11b3794]
xor eax, eax
movaps xmm0, xmm2
movss dword [ebp - 8], xmm2
mulss xmm0, dword [0x100bccd4]
add esp, 0x24
xorps xmm1, xmm1
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [0x100bc6ac]
comiss xmm0, xmm2
setae al
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jnp 0x1003da0d
movss dword [ebp - 4], xmm2
jmp 0x1003da1a
movss xmm0, dword [0x11b3798]
movss dword [ebp - 4], xmm0
push dword [0x1068579c]
mov ecx, 0x10173658
push 0xb0
call fcn.10036b80
movss xmm1, dword [ebp - 4]
mulss xmm1, dword [0x100bca70]
push eax
movss xmm0, dword [ebp - 0xc]
push 0
subss xmm0, xmm1
push 1
push esi
push 4
divss xmm0, dword [ebp - 8]
cvttss2si eax, xmm0
push eax
jmp 0x1003db61
cmp dword [0x1028acd4], 2
jne 0x1003db73
push 1
mov edi, 0x62f75b
call edi
mov esi, dword [sym.imp.OPENGL32.dll_glColor4f]
mov dword [esp], 0x3f4ccccd
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call esi
push 0
sub esp, 0x14
mov eax, 0x630f0a
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x41700000
mov dword [esp + 8], 0x42480000
mov dword [esp + 4], 0
mov dword [esp], 0x44138000
call eax
mov eax, 0x62f7f0
call eax
lea eax, [edi - 0x7a]
call eax
add esp, 8
mov dword [esp + 0xc], 0x3f800000
mov dword [esp + 8], 0x3f800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call esi
push 1
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
call esi
mov ecx, dword [0x106857a0]
sub eax, dword [0x106857a4]
inc ecx
mov dword [0x106857a0], ecx
cmp eax, 0x3e8
jbe 0x1003db3e
mov dword [0x1068579c], ecx
mov dword [0x106857a0], 0
call esi
mov dword [0x106857a4], eax
push dword [0x1068579c]
mov ecx, 0x10173658
push 0xb0
call fcn.10036b80
push eax
push 0
push 1
push 0x64
push 4
push 0x258
push 0xff19bdff
push 0x1023cd58
call fcn.100607a0
add esp, 0x24
pop edi
pop esi
mov esp, ebp
pop ebp
ret