Function at 0x100208b0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ca051
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100fd230]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x10020bb7
mov edx, dword [0x10105564]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101064d0]
mov ebx, dword [eax + edx*4]
cmp ecx, dword [ebx + 4]
jle 0x1002094a
push 0x101064d0
call fcn.1008f927
mov ecx, dword [0x101064d0]
add esp, 4
cmp ecx, 0xffffffff
jne 0x1002094a
mov dword [ebp - 4], 0
call fcn.1002f140
push 0x100d3e20
call fcn.1008f788
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x101064d0
call fcn.1008f8dd
mov ecx, dword [0x101064d0]
add esp, 4
mov eax, dword [0x101067e0]
test eax, eax
mov edx, dword [ebx + 4]
setne byte [ebp - 0xd]
test eax, eax
je 0x100209ae
cmp ecx, edx
jle 0x100209a6
push 0x101064d0
call fcn.1008f927
add esp, 4
cmp dword [0x101064d0], 0xffffffff
jne 0x100209a6
mov dword [ebp - 4], 1
call fcn.1002f140
push 0x100d3e20
call fcn.1008f788
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x101064d0
call fcn.1008f8dd
add esp, 4
mov edi, dword [0x10106750]
jmp 0x100209fb
cmp ecx, edx
jle 0x100209f5
push 0x101064d0
call fcn.1008f927
add esp, 4
cmp dword [0x101064d0], 0xffffffff
jne 0x100209f5
mov dword [ebp - 4], 2
call fcn.1002f140
push 0x100d3e20
call fcn.1008f788
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x101064d0
call fcn.1008f8dd
add esp, 4
mov edi, dword [0x10106754]
test edi, edi
je 0x10020bb7
cmp byte [ebp - 0xd], 0
je 0x10020af3
mov eax, 0x101062dc
lock xadd dword [eax], esi
movq xmm0, qword [0x101062e8]
movq qword [ebp - 0x20], xmm0
mov eax, dword [0x101064d0]
cmp eax, dword [ebx + 4]
jle 0x10020a73
push 0x101064d0
call fcn.1008f927
add esp, 4
cmp dword [0x101064d0], 0xffffffff
jne 0x10020a73
mov dword [ebp - 4], 3
call fcn.1002f140
push 0x100d3e20
call fcn.1008f788
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x101064d0
call fcn.1008f8dd
add esp, 4
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0x3e8
push dword [0x1010633c]
push dword [0x10106338]
call fcn.100bf160
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
sbb ecx, dword [ebp - 0x1c]
push edx
push eax
push ecx
push esi
call fcn.1008ff00
mov esi, eax
test edx, edx
jne 0x10020ae9
cmp esi, 0x3e8
jae 0x10020ae9
mov ecx, dword [0x101062dc]
shl edi, 0xa
cmp ecx, edi
jle 0x10020bb7
mov eax, 0x3e8
sub eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x101062dc
jmp 0x10020bae
mov eax, 0x101062e0
lock xadd dword [eax], esi
movq xmm0, qword [0x101062f0]
movq qword [ebp - 0x18], xmm0
mov eax, dword [0x101064d0]
cmp eax, dword [ebx + 4]
jle 0x10020b59
push 0x101064d0
call fcn.1008f927
add esp, 4
cmp dword [0x101064d0], 0xffffffff
jne 0x10020b59
mov dword [ebp - 4], 4
call fcn.1002f140
push 0x100d3e20
call fcn.1008f788
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x101064d0
call fcn.1008f8dd
add esp, 4
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0x3e8
push dword [0x1010633c]
push dword [0x10106338]
call fcn.100bf160
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sbb ecx, dword [ebp - 0x14]
push edx
push eax
push ecx
push esi
call fcn.1008ff00
mov esi, eax
test edx, edx
jne 0x10020ba9
cmp esi, 0x3e8
jae 0x10020ba9
mov ecx, dword [0x101062e0]
jmp 0x10020abe
mov ecx, 0x101062e0
xor eax, eax
xchg dword [ecx], eax
call fcn.10020780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret