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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.005025fc
mov ebx, dword [0xc30518]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xc305dc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x514fb3
mov ebx, dword [0xc30518]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xc305dc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x20
mov dword [ebp - 4], ebx
mov ebx, dword [0xc30518]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xc305dc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 8], ebx
mov ebx, dword [0xc30518]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xc305dc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x18
mov dword [ebp - 0xc], ebx
push 0
mov ebx, dword [ebp - 0xc]
push dword [ebx]
mov ebx, dword [ebp - 8]
push dword [ebx]
push 0x10
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.004a33bb
mov dword [0xc305ec], eax
cmp dword [0xc305ec], 0
jne 0x514ec7
mov dword [0xc305ec], 0
mov dword [0xc305e0], 1
push 0
mov ebx, 0x2dc
call fcn.006a8c30
add esp, 4
mov dword [ebp - 4], eax
push 0
mov ebx, 0x2e0
call fcn.006a8c50
add esp, 4
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0xbfa7d7]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004a0718
push eax
push dword [ebp - 4]
push dword [0xc305dc]
call fcn.00515087
mov dword [0xc305e8], 0
mov ebx, dword [0xc30518]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xc305dc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x514eae
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xc305e4], eax
jmp 0x514ec2
mov dword [0xc305e8], 0
mov dword [0xc305e4], 0xffffffff
jmp 0x514fae
cmp dword [0xc305ec], 1
jne 0x514f01
mov dword [0xc305ec], 0xffffffff
mov dword [0xc305e8], 0
mov dword [0xc305e4], 0xffffffff
mov eax, 1
jmp 0x515083
cmp dword [0xc305ec], 2
jne 0x514f90
mov dword [0xc305ec], 0xfffffffe
mov dword [0xc305e0], 1
mov dword [0xc305e8], 0
mov ebx, dword [0xc30518]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xc305dc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x514f77
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xc305e4], eax
jmp 0x514f81
mov dword [0xc305e4], 0xffffffff
mov eax, 2
jmp 0x515083
mov dword [0xc305ec], 0xffffffff
mov dword [0xc305e8], 0
mov dword [0xc305e4], 0xffffffff
jmp 0x515079
mov dword [0xc305ec], 0
mov dword [0xc305e0], 1
push 0
mov ebx, 0x2dc
call fcn.006a8c30
add esp, 4
mov dword [ebp - 4], eax
push 0
mov ebx, 0x2e0
call fcn.006a8c50
add esp, 4
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0xbfa7d7]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.004a0718
push eax
push dword [ebp - 4]
push dword [0xc305dc]
call fcn.00515087
mov dword [0xc305e8], 0
mov ebx, dword [0xc30518]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xc305dc]
dec eax
pop ebx
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x14
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x51506f
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xc305e4], eax
jmp 0x515079
mov dword [0xc305e4], 0xffffffff
mov eax, 0
jmp 0x515083
mov esp, ebp
pop ebp
ret