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

Disassembly:
mov ecx, dword [0x1007d3d8]
mov eax, dword [0x10079760]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10022041
cmp dword [0x1007d820], 0
je 0x10022041
mov eax, dword [0x10079760]
push esi
mov ecx, dword [eax + 0x298]
mov eax, dword [0x1007e29c]
mov ecx, dword [eax + ecx]
call fcn.10015870
mov esi, eax
test esi, esi
je 0x10022035
mov ecx, dword [0x1007d3d8]
push 0x1007e6a0
mov edx, dword [ecx]
call dword [edx + 4]
test eax, eax
je 0x10022035
mov edx, dword [0x1007d994]
add edx, eax
cmp edx, eax
jbe 0x10022035
mov ecx, esi
call edx
test eax, eax
jle 0x10022035
mov eax, dword [0x10079760]
mov ecx, dword [eax + 0x298]
mov eax, dword [0x1007e29c]
mov ecx, dword [eax + ecx]
call fcn.10015870
test eax, eax
je 0x10021dd7
mov edx, dword [0x10079760]
movss xmm0, dword [0x1006bf30]
mov ecx, dword [edx + 0x258]
comiss xmm0, dword [eax + ecx]
ja 0x10021e00
push 0
push 0
push 0
push 0
push 4
mov dword [0x1007f104], 0x100127b0
call fcn.100127b0
mov edx, dword [0x10079760]
mov dword [0x1007cb4c], 0
mov ecx, dword [edx + 0x298]
mov eax, dword [0x1007e29c]
mov esi, dword [eax + ecx]
call fcn.10014ed0
mov edx, dword [0x10079760]
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 0x10021fc7
mov ecx, dword [0x1007d820]
cmp ecx, 1
jne 0x10021e63
mov dword [0x10080810], 0x1f4
jmp 0x10021ebc
cmp ecx, 2
jne 0x10021e74
mov dword [0x10080810], 0xc8
jmp 0x10021ebc
cmp ecx, 3
jne 0x10021e85
mov dword [0x10080810], 0x96
jmp 0x10021ebc
cmp ecx, 4
jne 0x10021e96
mov dword [0x10080810], 0x64
jmp 0x10021ebc
cmp ecx, 5
jne 0x10021ea7
mov dword [0x10080810], 0x32
jmp 0x10021ebc
mov eax, dword [0x10080810]
cmp ecx, 6
mov edx, 0x1e
cmove eax, edx
mov dword [0x10080810], eax
push 2
mov dword [0x1007dab0], 0x10012810
call fcn.10012810
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cwde
shr eax, 0x10
test eax, eax
je 0x10021f17
cmp byte [0x1007f1f8], 0
je 0x10021ef7
cmp dword [0x1007f1fc], 0
je 0x10021f1e
call esi
cmp dword [0x1007f1fc], eax
ja 0x10021f1e
mov byte [0x1007f1f8], 1
call esi
add eax, dword [0x10080810]
mov dword [0x1007d9ec], eax
mov dword [0x1007cb4c], 1
jmp 0x10021f1e
mov byte [0x1007f1f8], 0
call esi
cmp dword [0x1007d9ec], eax
ja 0x10021f5e
cmp dword [0x1007cb4c], 1
jne 0x10021f5e
push 0
push 0
push 0
push 0
push 2
mov dword [0x1007f104], 0x100127b0
call fcn.100127b0
call esi
add eax, 0x32
mov dword [0x1007cb4c], 2
mov dword [0x1007d9ec], eax
call esi
cmp dword [0x1007d9ec], eax
mov eax, dword [0x1007cb4c]
ja 0x10021fa1
cmp eax, 2
jne 0x10021fa1
push 0
push 0
push 0
push 0
push 4
mov dword [0x1007f104], 0x100127b0
call fcn.100127b0
call esi
add eax, 0x64
mov dword [0x1007cb4c], 3
mov dword [0x1007d9ec], eax
jmp 0x10021fa6
cmp eax, 3
jne 0x10021fc9
push 0
push 1
push 0x45
push 0x33
mov dword [0x100796f4], 0x100127e0
call fcn.100127e0
mov dword [0x1007cb4c], 4
pop esi
ret
cmp eax, 4
jne 0x10021ff1
push 0
push 3
push 0x45
push 0x33
mov dword [0x100796f4], 0x100127e0
call fcn.100127e0
mov dword [0x1007cb4c], 5
jmp 0x10021ff6
cmp eax, 5
jne 0x10022019
push 0
push 1
push 0x45
push 0x31
mov dword [0x100796f4], 0x100127e0
call fcn.100127e0
mov dword [0x1007cb4c], 6
pop esi
ret
cmp eax, 6
jne 0x10021fc7
push 0
push 3
push 0x45
push 0x31
mov dword [0x100796f4], 0x100127e0
call fcn.100127e0
mov dword [0x1007cb4c], 0
pop esi
ret
mov dword [0x1007cb4c], 0
ret