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

Disassembly:
mov ecx, dword [0x1008d3cc]
mov eax, dword [0x10089760]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10021183
cmp dword [0x1008d81c], 0
je 0x10021183
mov eax, dword [0x10089760]
push esi
mov ecx, dword [eax + 0x2a8]
mov eax, dword [0x1008e290]
mov ecx, dword [eax + ecx]
call fcn.10014b30
mov esi, eax
test esi, esi
je 0x10021177
mov ecx, dword [0x1008d3cc]
push 0x1008e694
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
je 0x10021177
mov edx, dword [0x1008d990]
add edx, eax
cmp edx, eax
jbe 0x10021177
mov ecx, esi
call edx
test eax, eax
jle 0x10021177
mov eax, dword [0x10089760]
mov ecx, dword [eax + 0x2a8]
mov eax, dword [0x1008e290]
mov ecx, dword [eax + ecx]
call fcn.10014b30
test eax, eax
je 0x10020f17
mov edx, dword [0x10089760]
movss xmm0, dword [0x1007ad54]
mov ecx, dword [edx + 0x268]
comiss xmm0, dword [eax + ecx]
ja 0x10020f40
push 0
push 0
push 0
push 0
push 4
mov dword [0x1008f0f4], 0x10011dc0
call fcn.10011dc0
mov edx, dword [0x10089760]
mov dword [0x1008cb48], 0
mov ecx, dword [edx + 0x2a8]
mov eax, dword [0x1008e290]
mov esi, dword [eax + ecx]
call fcn.100141f0
mov edx, dword [0x10089760]
mov ecx, dword [edx + 0x2a0]
imul ecx, esi
add ecx, eax
mov eax, dword [edx + 0x2bc]
add eax, dword [edx + 0x2a4]
xor edx, edx
mov eax, dword [eax + ecx]
mov ecx, 0x186a0
div ecx
sub edx, 0x1388
cmp edx, 0x3e8
jae 0x10021109
mov ecx, dword [0x1008d81c]
cmp ecx, 1
jne 0x10020fa5
mov dword [0x1009080c], 0x1f4
jmp 0x10020ffe
cmp ecx, 2
jne 0x10020fb6
mov dword [0x1009080c], 0xc8
jmp 0x10020ffe
cmp ecx, 3
jne 0x10020fc7
mov dword [0x1009080c], 0x96
jmp 0x10020ffe
cmp ecx, 4
jne 0x10020fd8
mov dword [0x1009080c], 0x64
jmp 0x10020ffe
cmp ecx, 5
jne 0x10020fe9
mov dword [0x1009080c], 0x32
jmp 0x10020ffe
mov eax, dword [0x1009080c]
cmp ecx, 6
mov edx, 0x1e
cmove eax, edx
mov dword [0x1009080c], eax
push 2
mov dword [0x1008daac], 0x10011e20
call fcn.10011e20
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cwde
shr eax, 0x10
test eax, eax
je 0x10021059
cmp byte [0x1008f1e8], 0
je 0x10021039
cmp dword [0x1008f1ec], 0
je 0x10021060
call esi
cmp dword [0x1008f1ec], eax
ja 0x10021060
mov byte [0x1008f1e8], 1
call esi
add eax, dword [0x1009080c]
mov dword [0x1008d9e8], eax
mov dword [0x1008cb48], 1
jmp 0x10021060
mov byte [0x1008f1e8], 0
call esi
cmp dword [0x1008d9e8], eax
ja 0x100210a0
cmp dword [0x1008cb48], 1
jne 0x100210a0
push 0
push 0
push 0
push 0
push 2
mov dword [0x1008f0f4], 0x10011dc0
call fcn.10011dc0
call esi
add eax, 0x32
mov dword [0x1008cb48], 2
mov dword [0x1008d9e8], eax
call esi
cmp dword [0x1008d9e8], eax
mov eax, dword [0x1008cb48]
ja 0x100210e3
cmp eax, 2
jne 0x100210e3
push 0
push 0
push 0
push 0
push 4
mov dword [0x1008f0f4], 0x10011dc0
call fcn.10011dc0
call esi
add eax, 0x64
mov dword [0x1008cb48], 3
mov dword [0x1008d9e8], eax
jmp 0x100210e8
cmp eax, 3
jne 0x1002110b
push 0
push 1
push 0x45
push 0x33
mov dword [0x100896f8], 0x10011df0
call fcn.10011df0
mov dword [0x1008cb48], 4
pop esi
ret
cmp eax, 4
jne 0x10021133
push 0
push 3
push 0x45
push 0x33
mov dword [0x100896f8], 0x10011df0
call fcn.10011df0
mov dword [0x1008cb48], 5
jmp 0x10021138
cmp eax, 5
jne 0x1002115b
push 0
push 1
push 0x45
push 0x31
mov dword [0x100896f8], 0x10011df0
call fcn.10011df0
mov dword [0x1008cb48], 6
pop esi
ret
cmp eax, 6
jne 0x10021109
push 0
push 3
push 0x45
push 0x31
mov dword [0x100896f8], 0x10011df0
call fcn.10011df0
mov dword [0x1008cb48], 0
pop esi
ret
mov dword [0x1008cb48], 0
ret