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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100815dd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10016e90
test eax, eax
jne 0x10021bb4
mov eax, 0x100a3db0
lea ecx, [ebp - 0x34]
sub eax, 0x4c9ed77d
push eax
call fcn.1007a8a0
mov edx, eax
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021af0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10079e70
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
cmp dword [0x100b7bd8], 0x12a1187b
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
movq qword [ebp - 0x34], xmm0
mov word [ebp - 0x2c], 0
jne 0x10021c48
cmp dword [0x100b7bdc], 0
jne 0x10021c48
cmp dword [0x100b5454], 0x10
lea ecx, [ebp - 0x28]
push dword [0x100b5450]
mov edx, dword [ebp - 0x18]
mov eax, 0x100b5440
cmovae eax, dword [0x100b5440]
cmp edi, 0x10
push eax
cmovae ecx, esi
push 0
call fcn.1007c060
add esp, 0xc
cmp eax, 0xffffffff
je 0x10021c48
cmp edi, 0x10
jb 0x10021ba2
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x10021b98
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10021c68
push edi
push esi
call fcn.1007d8c4
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp dword [0x100bc55c], 0
je 0x10021d28
mov ecx, dword [0x100bbfc0]
mov eax, dword [0x100b7b4c]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10021d28
push 0xa0
mov dword [0x100bc6bc], 0x10017500
call fcn.10017500
cwde
shr eax, 0x10
test eax, eax
je 0x10021d18
cmp byte [0x100c1a30], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x10021c2b
cmp dword [0x100c1a34], 0
je 0x10021d1f
call esi
mov ecx, dword [0x100c1a34]
inc ecx
cmp ecx, eax
ja 0x10021d1f
mov byte [0x100c1a30], 1
call esi
mov dword [0x100c1a34], eax
mov eax, 1
mov dword [0x100b778c], eax
jmp 0x10021d32
cmp edi, 0x10
jb 0x10021c78
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x10021c6e
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021c6e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.1007d8c4
add esp, 8
cmp dword [0x100bc55c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
je 0x10021d28
mov ecx, dword [0x100bbfc0]
mov eax, dword [0x100b7b4c]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x10021d28
push 0x56
mov dword [0x100bc6bc], 0x10017500
call fcn.10017500
cwde
shr eax, 0x10
test eax, eax
je 0x10021d08
cmp byte [0x100c17e0], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x10021cee
cmp dword [0x100c17e4], 0
je 0x10021d0f
call esi
mov ecx, dword [0x100c17e4]
inc ecx
cmp ecx, eax
ja 0x10021d0f
mov byte [0x100c17e0], 1
call esi
mov dword [0x100c17e4], eax
mov eax, 1
mov dword [0x100b778c], eax
jmp 0x10021d32
mov byte [0x100c17e0], 0
xor eax, eax
mov dword [0x100b778c], eax
jmp 0x10021d32
mov byte [0x100c1a30], 0
xor eax, eax
mov dword [0x100b778c], eax
jmp 0x10021d32
mov dword [0x100b778c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007d079
mov esp, ebp
pop ebp
ret