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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077b85
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x100a700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 0x10097da8
lea ecx, [ebp - 0x4c]
sub ebx, 0x4c9ed77d
push ebx
call fcn.100716e0
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]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021cd2
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10070da0
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
cmp dword [0x100b0a30], 0x7177c
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
movq qword [ebp - 0x4c], xmm0
mov word [ebp - 0x44], 0
jne 0x10021d8b
cmp dword [0x100b0a34], 0
jne 0x10021d8b
cmp dword [0x100a842c], 0x10
lea ecx, [ebp - 0x28]
push dword [0x100a8428]
mov edx, dword [ebp - 0x18]
mov eax, 0x100a8418
cmovae eax, dword [0x100a8418]
cmp edi, 0x10
push eax
cmovae ecx, esi
push 0
call fcn.100725c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10021d8b
cmp edi, 0x10
jb 0x10021d74
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x10021d6a
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10021dab
push edi
push esi
call fcn.1007429f
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
jmp 0x10021ec4
cmp edi, 0x10
jb 0x10021dbb
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x10021db1
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021db1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.1007429f
add esp, 8
push ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.100716e0
mov edx, eax
mov ecx, edx
mov dword [ebp - 4], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021e00
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10070da0
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
cmp dword [0x100b0a30], 0x12a1187b
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
movq qword [ebp - 0x58], xmm0
mov word [ebp - 0x50], 0
jne 0x10021f5f
cmp dword [0x100b0a34], 0
jne 0x10021f5f
cmp dword [0x100a842c], 0x10
lea ecx, [ebp - 0x40]
push dword [0x100a8428]
mov edx, dword [ebp - 0x30]
mov eax, 0x100a8418
cmovae eax, dword [0x100a8418]
cmp edi, 0x10
push eax
cmovae ecx, esi
push 0
call fcn.100725c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x10021f5f
cmp edi, 0x10
jb 0x10021eb2
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x10021ea8
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10021f7f
push edi
push esi
call fcn.1007429f
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp dword [0x100ab4ac], 0
je 0x1002202f
mov ecx, dword [0x100aaf10]
mov eax, dword [0x100b09a8]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x1002202f
push 0xa0
mov dword [0x100ab604], 0x10018bb0
call fcn.10018bb0
cwde
shr eax, 0x10
test eax, eax
je 0x10021f4c
cmp byte [0x100b47f0], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x10021f2f
cmp dword [0x100b47f4], 0
je 0x10021f53
call esi
mov ecx, dword [0x100b47f4]
inc ecx
cmp ecx, eax
ja 0x10021f53
mov byte [0x100b47f0], 1
call esi
mov dword [0x100b47f4], eax
mov eax, 1
mov dword [0x100b05fc], eax
jmp 0x10022039
mov byte [0x100b47f0], 0
xor eax, eax
mov dword [0x100b05fc], eax
jmp 0x10022039
cmp edi, 0x10
jb 0x10021f8f
inc edi
mov eax, esi
cmp edi, 0x1000
jb 0x10021f85
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021f85
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push esi
call fcn.1007429f
add esp, 8
cmp dword [0x100ab4ac], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
je 0x1002202f
mov ecx, dword [0x100aaf10]
mov eax, dword [0x100b09a8]
add eax, 0x1c
push eax
mov edx, dword [ecx]
call dword [edx + 4]
cmp dword [eax], 0
je 0x1002202f
push 0x56
mov dword [0x100ab604], 0x10018bb0
call fcn.10018bb0
cwde
shr eax, 0x10
test eax, eax
je 0x1002201f
cmp byte [0x100b45a0], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x10022005
cmp dword [0x100b45a4], 0
je 0x10022026
call esi
mov ecx, dword [0x100b45a4]
inc ecx
cmp ecx, eax
ja 0x10022026
mov byte [0x100b45a0], 1
call esi
mov dword [0x100b45a4], eax
mov eax, 1
mov dword [0x100b05fc], eax
jmp 0x10022039
mov byte [0x100b45a0], 0
xor eax, eax
mov dword [0x100b05fc], eax
jmp 0x10022039
mov dword [0x100b05fc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10073979
mov esp, ebp
pop ebp
ret