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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.00500b97
mov ebx, dword [0xef9120]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xef912c]
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 0x501148
mov ebx, dword [0xef9120]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xef912c]
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 [0xef9120]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xef912c]
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 [0xef9120]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xef912c]
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.0049f6f8
mov dword [0xef9144], eax
cmp dword [0xef9144], 0
jne 0x50105c
mov dword [0xef9144], 0
mov dword [0xef913c], 1
push 0
mov ebx, 0x2dc
call fcn.006b5b70
add esp, 4
mov dword [ebp - 4], eax
push 0
mov ebx, 0x2e0
call fcn.006b5b90
add esp, 4
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0xebdaab]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.0049a2fe
push eax
push dword [ebp - 4]
push dword [0xef912c]
call fcn.0050121c
mov dword [0xef9134], 0
mov ebx, dword [0xef9120]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xef912c]
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 0x501043
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xef9140], eax
jmp 0x501057
mov dword [0xef9134], 0
mov dword [0xef9140], 0xffffffff
jmp 0x501143
cmp dword [0xef9144], 1
jne 0x501096
mov dword [0xef9144], 0xffffffff
mov dword [0xef9134], 0
mov dword [0xef9140], 0xffffffff
mov eax, 1
jmp 0x501218
cmp dword [0xef9144], 2
jne 0x501125
mov dword [0xef9144], 0xfffffffe
mov dword [0xef913c], 1
mov dword [0xef9134], 0
mov ebx, dword [0xef9120]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xef912c]
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 0x50110c
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xef9140], eax
jmp 0x501116
mov dword [0xef9140], 0xffffffff
mov eax, 2
jmp 0x501218
mov dword [0xef9144], 0xffffffff
mov dword [0xef9134], 0
mov dword [0xef9140], 0xffffffff
jmp 0x50120e
mov dword [0xef9144], 0
mov dword [0xef913c], 1
push 0
mov ebx, 0x2dc
call fcn.006b5b70
add esp, 4
mov dword [ebp - 4], eax
push 0
mov ebx, 0x2e0
call fcn.006b5b90
add esp, 4
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fadd qword [0xebdaab]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.0049a2fe
push eax
push dword [ebp - 4]
push dword [0xef912c]
call fcn.0050121c
mov dword [0xef9134], 0
mov ebx, dword [0xef9120]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [0xef912c]
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 0x501204
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0xef9140], eax
jmp 0x50120e
mov dword [0xef9140], 0xffffffff
mov eax, 0
jmp 0x501218
mov esp, ebp
pop ebp
ret