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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101574ad
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10195820]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 4]
cmp ecx, 0xff
je 0x1009d2ca
mov edx, dword [ebp - 0x3c]
cvtss2sd xmm0, dword [edx + 0x2c]
comisd xmm0, xmmword [0x10183c28]
jbe 0x1009d292
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 4]
push ecx
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.1009c4d0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 4]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.1009cc00
mov byte [ebp - 0x3d], al
lea ecx, [ebp - 0x38]
call fcn.100061b0
cmp eax, 1
jae 0x1009cf1b
mov edx, dword [ebp - 0x3c]
mov byte [edx + 4], 0xff
mov eax, dword [ebp - 0x3c]
movss xmm0, dword [0x10183f28]
movss dword [eax + 0x2c], xmm0
mov ecx, dword [ebp - 0x3c]
movss xmm0, dword [0x10183fe0]
movss dword [ecx + 0x30], xmm0
mov edx, dword [ebp - 0x3c]
mov byte [edx + 0x38], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100097c0
jmp 0x1009d2ca
movss xmm0, dword [0x10183c20]
movss dword [ebp - 0x20], xmm0
movss xmm0, dword [0x10183c20]
movss dword [ebp - 0x1c], xmm0
movss xmm0, dword [0x10183c20]
movss dword [ebp - 0x18], xmm0
mov ecx, dword [ebp - 0x3c]
movss xmm0, dword [ecx + 0x2c]
movss dword [ebp - 0x14], xmm0
push ecx
movss xmm0, dword [0x10184628]
movss dword [esp], xmm0
mov edx, dword [0x10196b98]
mov dword [ebp - 0x48], edx
cvtsi2sd xmm0, dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10184c00]
movsd qword [ebp - 0x64], xmm0
cvtsd2ss xmm0, qword [ebp - 0x64]
push ecx
movss dword [esp], xmm0
lea ecx, [ebp - 0x20]
push ecx
push ecx
movss xmm0, dword [0x101848ac]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183c20]
movss dword [esp], xmm0
mov ecx, dword [0x104c1d80]
call fcn.100a4ee0
push ecx
movss xmm0, dword [0x10183fe0]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183fe0]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183fe0]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183fe0]
movss dword [esp], xmm0
call dword [sym.imp.OPENGL32.dll_glColor4f]
mov ecx, dword [0x104c1d80]
call fcn.100a4fb0
push ecx
movss xmm0, dword [0x10183c20]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183c20]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183c20]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183c20]
movss dword [esp], xmm0
mov ecx, dword [0x104c1d80]
call fcn.100a5150
mov dl, byte [ebp - 0x3d]
mov byte [ebp - 0x44], dl
cmp byte [ebp - 0x44], 2
je 0x1009d0a9
cmp byte [ebp - 0x44], 3
je 0x1009d0f1
cmp byte [ebp - 0x44], 4
je 0x1009d136
mov eax, dword [ebp - 0x3c]
push ecx
movss xmm0, dword [eax + 0x30]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183c9c]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183ee8]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183fe0]
movss dword [esp], xmm0
mov ecx, dword [0x104c1d80]
call fcn.100a5030
jmp 0x1009d179
mov ecx, dword [ebp - 0x3c]
push ecx
movss xmm0, dword [ecx + 0x30]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183c20]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183c20]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183fac]
movss dword [esp], xmm0
mov ecx, dword [0x104c1d80]
call fcn.100a5030
jmp 0x1009d179
mov edx, dword [ebp - 0x3c]
push ecx
movss xmm0, dword [edx + 0x30]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183d14]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183f28]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183c20]
movss dword [esp], xmm0
mov ecx, dword [0x104c1d80]
call fcn.100a5030
jmp 0x1009d179
mov eax, dword [ebp - 0x3c]
push ecx
movss xmm0, dword [eax + 0x30]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183fac]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183e60]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183c20]
movss dword [esp], xmm0
mov ecx, dword [0x104c1d80]
call fcn.100a5030
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x50], esp
lea edx, [ebp - 0x38]
push edx
call fcn.100010b0
mov dword [ebp - 0x54], eax
push ecx
movss xmm0, dword [0x10184280]
movss dword [esp], xmm0
mov eax, dword [0x10196b98]
mov dword [ebp - 0x4c], eax
cvtsi2sd xmm0, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x10184c00]
movsd qword [ebp - 0x5c], xmm0
cvtsd2ss xmm0, qword [ebp - 0x5c]
push ecx
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x101848c8]
movss dword [esp], xmm0
push ecx
movss xmm0, dword [0x10183c20]
movss dword [esp], xmm0
mov ecx, dword [0x104c1d80]
call fcn.100a51d0
mov edx, dword [ebp - 0x3c]
movzx eax, byte [edx + 0x38]
test eax, eax
jne 0x1009d22c
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + 0x34], 0
jne 0x1009d210
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x34], eax
jmp 0x1009d22a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ecx + 0x34]
cmp eax, 0x5dc
jbe 0x1009d22a
mov edx, dword [ebp - 0x3c]
mov byte [edx + 0x38], 1
jmp 0x1009d281
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x3c]
sub eax, dword [ecx + 0x34]
cmp eax, 0x32
jbe 0x1009d281
mov edx, dword [ebp - 0x3c]
cvtss2sd xmm0, dword [edx + 0x2c]
subsd xmm0, qword [0x10184020]
cvtsd2ss xmm0, xmm0
mov eax, dword [ebp - 0x3c]
movss dword [eax + 0x2c], xmm0
mov ecx, dword [ebp - 0x3c]
cvtss2sd xmm0, dword [ecx + 0x30]
subsd xmm0, qword [0x10184030]
cvtsd2ss xmm0, xmm0
mov edx, dword [ebp - 0x3c]
movss dword [edx + 0x30], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x34], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.100097c0
jmp 0x1009d2ca
mov edx, dword [ebp - 0x3c]
mov byte [edx + 4], 0xff
mov eax, dword [ebp - 0x3c]
movss xmm0, dword [0x10183ebc]
movss dword [eax + 0x2c], xmm0
mov ecx, dword [ebp - 0x3c]
movss xmm0, dword [0x10183fe0]
movss dword [ecx + 0x30], xmm0
mov edx, dword [ebp - 0x3c]
mov byte [edx + 0x38], 0
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10056240
mov esp, ebp
pop ebp
ret