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

Disassembly:
mov ecx, dword [0x100769d4]
mov eax, dword [0x10073144]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10021d81
cmp dword [0x10076e1c], 0
je 0x10021d81
mov eax, dword [0x10073144]
push esi
mov ecx, dword [eax + 0x298]
mov eax, dword [0x10077884]
mov ecx, dword [eax + ecx]
call fcn.100157e0
mov esi, eax
test esi, esi
je 0x10021d75
mov ecx, dword [0x100769d4]
push 0x10077c88
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
je 0x10021d75
mov edx, dword [0x10076f8c]
add edx, eax
cmp edx, eax
jbe 0x10021d75
mov ecx, esi
call edx
test eax, eax
jle 0x10021d75
mov eax, dword [0x10073144]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x10077884]
mov ecx, dword [eax + ecx]
call fcn.100157e0
test eax, eax
je 0x10021b17
mov edx, dword [0x10073144]
movss xmm0, dword [0x10065e8c]
mov ecx, dword [edx + 0x258]
comiss xmm0, dword [eax + ecx]
ja 0x10021b40
push 0
push 0
push 0
push 0
push 4
mov dword [0x100786e4], 0x10012730
call fcn.10012730
mov edx, dword [0x10073144]
mov dword [0x10076530], 0
mov ecx, dword [edx + 0x298]
mov eax, dword [0x10077884]
mov esi, dword [eax + ecx]
call fcn.10014e40
mov edx, dword [0x10073144]
mov ecx, dword [edx + 0x290]
imul ecx, esi
add ecx, eax
mov eax, dword [edx + 0x294]
xor edx, edx
mov eax, dword [eax + ecx + 0x9c]
mov ecx, 0x186a0
div ecx
sub edx, 0x1388
cmp edx, 0x3e8
jae 0x10021d07
mov ecx, dword [0x10076e1c]
cmp ecx, 1
jne 0x10021ba3
mov dword [0x1007a3bc], 0x1f4
jmp 0x10021bfc
cmp ecx, 2
jne 0x10021bb4
mov dword [0x1007a3bc], 0xc8
jmp 0x10021bfc
cmp ecx, 3
jne 0x10021bc5
mov dword [0x1007a3bc], 0x96
jmp 0x10021bfc
cmp ecx, 4
jne 0x10021bd6
mov dword [0x1007a3bc], 0x64
jmp 0x10021bfc
cmp ecx, 5
jne 0x10021be7
mov dword [0x1007a3bc], 0x32
jmp 0x10021bfc
mov eax, dword [0x1007a3bc]
cmp ecx, 6
mov edx, 0x1e
cmove eax, edx
mov dword [0x1007a3bc], eax
push 2
mov dword [0x100770a4], 0x10012790
call fcn.10012790
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cwde
shr eax, 0x10
test eax, eax
je 0x10021c57
cmp byte [0x10078db0], 0
je 0x10021c37
cmp dword [0x10078db4], 0
je 0x10021c5e
call esi
cmp dword [0x10078db4], eax
ja 0x10021c5e
mov byte [0x10078db0], 1
call esi
add eax, dword [0x1007a3bc]
mov dword [0x10076fe0], eax
mov dword [0x10076530], 1
jmp 0x10021c5e
mov byte [0x10078db0], 0
call esi
cmp dword [0x10076fe0], eax
ja 0x10021c9e
cmp dword [0x10076530], 1
jne 0x10021c9e
push 0
push 0
push 0
push 0
push 2
mov dword [0x100786e4], 0x10012730
call fcn.10012730
call esi
add eax, 0x32
mov dword [0x10076530], 2
mov dword [0x10076fe0], eax
call esi
cmp dword [0x10076fe0], eax
mov eax, dword [0x10076530]
ja 0x10021ce1
cmp eax, 2
jne 0x10021ce1
push 0
push 0
push 0
push 0
push 4
mov dword [0x100786e4], 0x10012730
call fcn.10012730
call esi
add eax, 0x64
mov dword [0x10076530], 3
mov dword [0x10076fe0], eax
jmp 0x10021ce6
cmp eax, 3
jne 0x10021d09
push 0
push 1
push 0x45
push 0x33
mov dword [0x100730e0], 0x10012760
call fcn.10012760
mov dword [0x10076530], 4
pop esi
ret
cmp eax, 4
jne 0x10021d31
push 0
push 3
push 0x45
push 0x33
mov dword [0x100730e0], 0x10012760
call fcn.10012760
mov dword [0x10076530], 5
jmp 0x10021d36
cmp eax, 5
jne 0x10021d59
push 0
push 1
push 0x45
push 0x31
mov dword [0x100730e0], 0x10012760
call fcn.10012760
mov dword [0x10076530], 6
pop esi
ret
cmp eax, 6
jne 0x10021d07
push 0
push 3
push 0x45
push 0x31
mov dword [0x100730e0], 0x10012760
call fcn.10012760
mov dword [0x10076530], 0
pop esi
ret
mov dword [0x10076530], 0
ret