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

Disassembly:
mov ecx, dword [0x1009d3c8]
mov eax, dword [0x10099738]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10022ff3
cmp dword [0x1009d82c], 0
je 0x10022ff3
mov eax, dword [0x10099738]
push esi
mov ecx, dword [eax + 0x2bc]
mov eax, dword [0x10098038]
mov ecx, dword [eax + ecx]
call fcn.10016900
mov esi, eax
test esi, esi
je 0x10022fe7
mov ecx, dword [0x1009d3c8]
push 0x1009843c
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
je 0x10022fe7
mov edx, dword [0x1009d9ac]
add edx, eax
cmp edx, eax
jbe 0x10022fe7
mov ecx, esi
call edx
test eax, eax
jle 0x10022fe7
mov eax, dword [0x10099738]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [0x10098038]
mov ecx, dword [eax + ecx]
call fcn.10016900
test eax, eax
je 0x10022d87
mov edx, dword [0x10099738]
movss xmm0, dword [0x1008750c]
mov ecx, dword [edx + 0x27c]
comiss xmm0, dword [eax + ecx]
ja 0x10022db0
push 0
push 0
push 0
push 0
push 4
mov dword [0x10098ebc], 0x100137b0
call fcn.100137b0
mov edx, dword [0x10099738]
mov dword [0x1009cb2c], 0
mov ecx, dword [edx + 0x2bc]
mov eax, dword [0x10098038]
mov esi, dword [eax + ecx]
call fcn.10015e00
mov edx, dword [0x10099738]
mov ecx, dword [edx + 0x2b4]
imul ecx, esi
add ecx, eax
mov eax, dword [edx + 0x2d0]
add eax, dword [edx + 0x2b8]
xor edx, edx
mov eax, dword [eax + ecx]
mov ecx, 0x186a0
div ecx
sub edx, 0x1388
cmp edx, 0x3e8
jae 0x10022f79
mov ecx, dword [0x1009d82c]
cmp ecx, 1
jne 0x10022e15
mov dword [0x1009f8b0], 0x1f4
jmp 0x10022e6e
cmp ecx, 2
jne 0x10022e26
mov dword [0x1009f8b0], 0xc8
jmp 0x10022e6e
cmp ecx, 3
jne 0x10022e37
mov dword [0x1009f8b0], 0x96
jmp 0x10022e6e
cmp ecx, 4
jne 0x10022e48
mov dword [0x1009f8b0], 0x64
jmp 0x10022e6e
cmp ecx, 5
jne 0x10022e59
mov dword [0x1009f8b0], 0x32
jmp 0x10022e6e
mov eax, dword [0x1009f8b0]
cmp ecx, 6
mov edx, 0x1e
cmove eax, edx
mov dword [0x1009f8b0], eax
push 2
mov dword [0x1009dac8], 0x10013810
call fcn.10013810
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cwde
shr eax, 0x10
test eax, eax
je 0x10022ec9
cmp byte [0x1009e210], 0
je 0x10022ea9
cmp dword [0x1009e214], 0
je 0x10022ed0
call esi
cmp dword [0x1009e214], eax
ja 0x10022ed0
mov byte [0x1009e210], 1
call esi
add eax, dword [0x1009f8b0]
mov dword [0x1009da04], eax
mov dword [0x1009cb2c], 1
jmp 0x10022ed0
mov byte [0x1009e210], 0
call esi
cmp dword [0x1009da04], eax
ja 0x10022f10
cmp dword [0x1009cb2c], 1
jne 0x10022f10
push 0
push 0
push 0
push 0
push 2
mov dword [0x10098ebc], 0x100137b0
call fcn.100137b0
call esi
add eax, 0x32
mov dword [0x1009cb2c], 2
mov dword [0x1009da04], eax
call esi
cmp dword [0x1009da04], eax
mov eax, dword [0x1009cb2c]
ja 0x10022f53
cmp eax, 2
jne 0x10022f53
push 0
push 0
push 0
push 0
push 4
mov dword [0x10098ebc], 0x100137b0
call fcn.100137b0
call esi
add eax, 0x64
mov dword [0x1009cb2c], 3
mov dword [0x1009da04], eax
jmp 0x10022f58
cmp eax, 3
jne 0x10022f7b
push 0
push 1
push 0x45
push 0x33
mov dword [0x100996c8], 0x100137e0
call fcn.100137e0
mov dword [0x1009cb2c], 4
pop esi
ret
cmp eax, 4
jne 0x10022fa3
push 0
push 3
push 0x45
push 0x33
mov dword [0x100996c8], 0x100137e0
call fcn.100137e0
mov dword [0x1009cb2c], 5
jmp 0x10022fa8
cmp eax, 5
jne 0x10022fcb
push 0
push 1
push 0x45
push 0x31
mov dword [0x100996c8], 0x100137e0
call fcn.100137e0
mov dword [0x1009cb2c], 6
pop esi
ret
cmp eax, 6
jne 0x10022f79
push 0
push 3
push 0x45
push 0x31
mov dword [0x100996c8], 0x100137e0
call fcn.100137e0
mov dword [0x1009cb2c], 0
pop esi
ret
mov dword [0x1009cb2c], 0
ret