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

Disassembly:
mov ecx, dword [0x1009b7a0]
mov eax, dword [0x10097b24]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10022ca3
cmp dword [0x1009bc00], 0
je 0x10022ca3
mov eax, dword [0x10097b24]
push esi
mov ecx, dword [eax + 0x2bc]
mov eax, dword [0x10096434]
mov ecx, dword [eax + ecx]
call fcn.10016760
mov esi, eax
test esi, esi
je 0x10022c97
mov ecx, dword [0x1009b7a0]
push 0x10096838
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
je 0x10022c97
mov edx, dword [0x1009bd7c]
add edx, eax
cmp edx, eax
jbe 0x10022c97
mov ecx, esi
call edx
test eax, eax
jle 0x10022c97
mov eax, dword [0x10097b24]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [0x10096434]
mov ecx, dword [eax + ecx]
call fcn.10016760
test eax, eax
je 0x10022a37
mov edx, dword [0x10097b24]
movss xmm0, dword [0x100864e4]
mov ecx, dword [edx + 0x27c]
comiss xmm0, dword [eax + ecx]
ja 0x10022a60
push 0
push 0
push 0
push 0
push 4
mov dword [0x100972b0], 0x10013610
call fcn.10013610
mov edx, dword [0x10097b24]
mov dword [0x1009af14], 0
mov ecx, dword [edx + 0x2bc]
mov eax, dword [0x10096434]
mov esi, dword [eax + ecx]
call fcn.10015c60
mov edx, dword [0x10097b24]
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 0x10022c29
mov ecx, dword [0x1009bc00]
cmp ecx, 1
jne 0x10022ac5
mov dword [0x1009dc28], 0x1f4
jmp 0x10022b1e
cmp ecx, 2
jne 0x10022ad6
mov dword [0x1009dc28], 0xc8
jmp 0x10022b1e
cmp ecx, 3
jne 0x10022ae7
mov dword [0x1009dc28], 0x96
jmp 0x10022b1e
cmp ecx, 4
jne 0x10022af8
mov dword [0x1009dc28], 0x64
jmp 0x10022b1e
cmp ecx, 5
jne 0x10022b09
mov dword [0x1009dc28], 0x32
jmp 0x10022b1e
mov eax, dword [0x1009dc28]
cmp ecx, 6
mov edx, 0x1e
cmove eax, edx
mov dword [0x1009dc28], eax
push 2
mov dword [0x1009be98], 0x10013670
call fcn.10013670
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cwde
shr eax, 0x10
test eax, eax
je 0x10022b79
cmp byte [0x1009c5b8], 0
je 0x10022b59
cmp dword [0x1009c5bc], 0
je 0x10022b80
call esi
cmp dword [0x1009c5bc], eax
ja 0x10022b80
mov byte [0x1009c5b8], 1
call esi
add eax, dword [0x1009dc28]
mov dword [0x1009bdd4], eax
mov dword [0x1009af14], 1
jmp 0x10022b80
mov byte [0x1009c5b8], 0
call esi
cmp dword [0x1009bdd4], eax
ja 0x10022bc0
cmp dword [0x1009af14], 1
jne 0x10022bc0
push 0
push 0
push 0
push 0
push 2
mov dword [0x100972b0], 0x10013610
call fcn.10013610
call esi
add eax, 0x32
mov dword [0x1009af14], 2
mov dword [0x1009bdd4], eax
call esi
cmp dword [0x1009bdd4], eax
mov eax, dword [0x1009af14]
ja 0x10022c03
cmp eax, 2
jne 0x10022c03
push 0
push 0
push 0
push 0
push 4
mov dword [0x100972b0], 0x10013610
call fcn.10013610
call esi
add eax, 0x64
mov dword [0x1009af14], 3
mov dword [0x1009bdd4], eax
jmp 0x10022c08
cmp eax, 3
jne 0x10022c2b
push 0
push 1
push 0x45
push 0x33
mov dword [0x10097ab8], 0x10013640
call fcn.10013640
mov dword [0x1009af14], 4
pop esi
ret
cmp eax, 4
jne 0x10022c53
push 0
push 3
push 0x45
push 0x33
mov dword [0x10097ab8], 0x10013640
call fcn.10013640
mov dword [0x1009af14], 5
jmp 0x10022c58
cmp eax, 5
jne 0x10022c7b
push 0
push 1
push 0x45
push 0x31
mov dword [0x10097ab8], 0x10013640
call fcn.10013640
mov dword [0x1009af14], 6
pop esi
ret
cmp eax, 6
jne 0x10022c29
push 0
push 3
push 0x45
push 0x31
mov dword [0x10097ab8], 0x10013640
call fcn.10013640
mov dword [0x1009af14], 0
pop esi
ret
mov dword [0x1009af14], 0
ret