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

Disassembly:
push 0xffffffffffffffff
push 0x100979b3
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x100b8070]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b8070]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x138]
mov dword [esp + 0x130], 0
cmp dword [ebp + 0x5911c], 0
mov eax, dword [ebp + 0x59104]
mov esi, dword [eax]
lea edi, [ebp + 0x59100]
jne 0x1002131e
cmp edi, edi
mov ebx, dword [edi + 4]
je 0x10021294
call fcn.10080d40
cmp esi, ebx
je 0x100212b7
cmp esi, dword [edi + 4]
jne 0x100212a2
call fcn.10080d40
mov dword [esi + 0x20], 1
cmp esi, dword [edi + 4]
jne 0x100212b3
call fcn.10080d40
mov esi, dword [esi]
jmp 0x10021288
mov dword [ebp + 0x5911c], 1
mov dword [esp + 0x130], 0xffffffff
mov eax, dword [esp + 0x13c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100212ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10080c07
add esp, 0x120
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, edi
mov eax, dword [edi + 4]
mov dword [esp + 0x20], eax
je 0x10021334
call fcn.10080d40
cmp esi, dword [esp + 0x20]
je 0x100212c1
cmp esi, dword [edi + 4]
jne 0x10021344
call fcn.10080d40
cmp dword [esi + 0x20], 0
jne 0x10021476
cmp esi, dword [edi + 4]
jne 0x10021358
call fcn.10080d40
mov dword [esi + 0x20], 1
call ebx
sub eax, dword [ebp + 0x59120]
cmp eax, 0x2710
jb 0x10021476
push 0xfe
lea ecx, [esp + 0x2a]
push 0
push ecx
mov word [esp + 0x30], 0
call fcn.10082ee0
add esp, 0xc
cmp esi, dword [edi + 4]
jne 0x10021397
call fcn.10080d40
mov edx, dword [esi + 8]
mov eax, dword [edx - 0xc]
add eax, 1
cmp eax, 0x80
jle 0x100213ae
mov edi, 0x80
jmp 0x100213c1
cmp esi, dword [edi + 4]
jne 0x100213b8
call fcn.10080d40
mov eax, dword [esi + 8]
mov eax, dword [eax - 0xc]
lea edi, [eax + 1]
cmp esi, dword [ebp + 0x59104]
jne 0x100213ce
call fcn.10080d40
mov eax, dword [esi + 8]
push edi
lea ecx, [esp + 0x28]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x100baed0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x100b9758
mov dword [esp + 0x18], 0xf
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [esp + 0x14]
push edx
mov eax, 0x100b9770
call fcn.10046eb0
push 0x100b9758
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
lea ecx, [esp + 0x2c]
call fcn.10003700
mov byte [esp + 0x134], 1
mov eax, dword [esp + 0x140]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.10001820
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x138], 0
call fcn.1007eec0
add esp, 8
call ebx
mov dword [ebp + 0x59120], eax
cmp esi, dword [ebp + 0x59104]
lea edi, [ebp + 0x59100]
jne 0x10021489
call fcn.10080d40
mov esi, dword [esi]
jmp 0x10021324