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

Disassembly:
mov ecx, dword [0x10069ea0]
mov eax, dword [0x1006c3c4]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10020ab1
cmp dword [0x1006a2e8], 0
je 0x10020ab1
mov eax, dword [0x1006c3c4]
push esi
mov ecx, dword [eax + 0x298]
mov eax, dword [0x1006ad44]
mov ecx, dword [eax + ecx]
call fcn.10014630
mov esi, eax
test esi, esi
je 0x10020aa5
mov ecx, dword [0x10069ea0]
push 0x1006b148
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
je 0x10020aa5
mov edx, dword [0x1006a454]
add edx, eax
cmp edx, eax
jbe 0x10020aa5
mov ecx, esi
call edx
test eax, eax
jle 0x10020aa5
mov eax, dword [0x1006c3c4]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x1006ad44]
mov ecx, dword [eax + ecx]
call fcn.10014630
test eax, eax
je 0x10020847
mov edx, dword [0x1006c3c4]
movss xmm0, dword [0x1005de04]
mov ecx, dword [edx + 0x258]
comiss xmm0, dword [eax + ecx]
ja 0x10020870
push 0
push 0
push 0
push 0
push 4
mov dword [0x1006bba0], 0x10011a80
call fcn.10011a80
mov edx, dword [0x1006c3c4]
mov dword [0x1006f7a4], 0
mov ecx, dword [edx + 0x298]
mov eax, dword [0x1006ad44]
mov esi, dword [eax + ecx]
call fcn.10013dd0
mov edx, dword [0x1006c3c4]
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 0x10020a37
mov ecx, dword [0x1006a2e8]
cmp ecx, 1
jne 0x100208d3
mov dword [0x1007134c], 0x1f4
jmp 0x1002092c
cmp ecx, 2
jne 0x100208e4
mov dword [0x1007134c], 0xc8
jmp 0x1002092c
cmp ecx, 3
jne 0x100208f5
mov dword [0x1007134c], 0x96
jmp 0x1002092c
cmp ecx, 4
jne 0x10020906
mov dword [0x1007134c], 0x64
jmp 0x1002092c
cmp ecx, 5
jne 0x10020917
mov dword [0x1007134c], 0x32
jmp 0x1002092c
mov eax, dword [0x1007134c]
cmp ecx, 6
mov edx, 0x1e
cmove eax, edx
mov dword [0x1007134c], eax
push 2
mov dword [0x1006a56c], 0x10011ae0
call fcn.10011ae0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cwde
shr eax, 0x10
test eax, eax
je 0x10020987
cmp byte [0x1006fd30], 0
je 0x10020967
cmp dword [0x1006fd34], 0
je 0x1002098e
call esi
cmp dword [0x1006fd34], eax
ja 0x1002098e
mov byte [0x1006fd30], 1
call esi
add eax, dword [0x1007134c]
mov dword [0x1006a4a8], eax
mov dword [0x1006f7a4], 1
jmp 0x1002098e
mov byte [0x1006fd30], 0
call esi
cmp dword [0x1006a4a8], eax
ja 0x100209ce
cmp dword [0x1006f7a4], 1
jne 0x100209ce
push 0
push 0
push 0
push 0
push 2
mov dword [0x1006bba0], 0x10011a80
call fcn.10011a80
call esi
add eax, 0x32
mov dword [0x1006f7a4], 2
mov dword [0x1006a4a8], eax
call esi
cmp dword [0x1006a4a8], eax
mov eax, dword [0x1006f7a4]
ja 0x10020a11
cmp eax, 2
jne 0x10020a11
push 0
push 0
push 0
push 0
push 4
mov dword [0x1006bba0], 0x10011a80
call fcn.10011a80
call esi
add eax, 0x64
mov dword [0x1006f7a4], 3
mov dword [0x1006a4a8], eax
jmp 0x10020a16
cmp eax, 3
jne 0x10020a39
push 0
push 1
push 0x45
push 0x33
mov dword [0x1006c368], 0x10011ab0
call fcn.10011ab0
mov dword [0x1006f7a4], 4
pop esi
ret
cmp eax, 4
jne 0x10020a61
push 0
push 3
push 0x45
push 0x33
mov dword [0x1006c368], 0x10011ab0
call fcn.10011ab0
mov dword [0x1006f7a4], 5
jmp 0x10020a66
cmp eax, 5
jne 0x10020a89
push 0
push 1
push 0x45
push 0x31
mov dword [0x1006c368], 0x10011ab0
call fcn.10011ab0
mov dword [0x1006f7a4], 6
pop esi
ret
cmp eax, 6
jne 0x10020a37
push 0
push 3
push 0x45
push 0x31
mov dword [0x1006c368], 0x10011ab0
call fcn.10011ab0
mov dword [0x1006f7a4], 0
pop esi
ret
mov dword [0x1006f7a4], 0
ret