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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [0x11d0c5b8]
mov eax, dword fs:[0x2c]
push ebx
push esi
push edi
mov eax, dword [eax + edx*4]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [eax + 0x10]
cmp dword [eax + 0xf944], 0
jbe 0x100fa7c4
lea edi, [ecx + 0x28]
nop dword [eax + eax]
mov ebx, 2
mov esi, dword [edi - 4]
test esi, esi
je 0x100fa799
mov eax, dword [edi]
test eax, eax
je 0x100fa799
mov dword [ebp - 0xc], eax
mov dword [edi], 0
mov esi, dword [esi + 0xbe2c]
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x100fa77e
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x14]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x100fa799
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
add edi, 0xc
sub ebx, 1
jne 0x100fa6f5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [eax + 0x10]
cmp ecx, dword [eax + 0xf944]
jb 0x100fa6f0
mov ecx, dword [ebp - 8]
mov esi, dword [ecx + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
je 0x100fa8bb
lea edi, [eax + 0x7a80]
push edi
call ebx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100fa804
nop word [eax + eax]
push dword [eax + 0xae0]
mov ecx, esi
call fcn.100559e0
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x100fa7f0
push ecx
push 0
mov ecx, esi
call fcn.1004e780
push 0x252
lea eax, [esi + 0x38]
push 0
push eax
call fcn.10425c00
and byte [esi + 0x28], 0xfc
add esp, 0xc
mov dword [esi + 0xc], 0
mov byte [esi + 0x2b8], 0
mov dword [esi + 8], 0
push edi
mov dword [esi + 0x20], 0
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x18]
test esi, esi
je 0x100fa8bb
mov ecx, esi
call fcn.1004ee00
mov edi, dword [ebp - 4]
mov ecx, dword [edi + 0x10]
cmp dword [ecx + 0x7b30], esi
jne 0x100fa879
mov eax, dword [esi]
mov dword [ecx + 0x7b30], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
test edx, edx
je 0x100fa887
mov dword [edx + 4], eax
jmp 0x100fa89a
mov dword [ecx + 0x7b2c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x100fa89a
mov dword [eax], 0
mov edx, dword [esi + 4]
test edx, edx
je 0x100fa8a5
mov eax, dword [esi]
mov dword [edx], eax
dec dword [ecx + 0x7b34]
push 0x2c0
push esi
call fcn.1045088a
add esp, 8
jmp 0x100fa8be
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x100fa9ad
mov edi, dword [edi + 0x10]
add edi, 0x7a80
push edi
call ebx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100fa8f6
push dword [eax + 0xae0]
mov ecx, esi
call fcn.100559e0
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x100fa8e2
push ecx
push 0
mov ecx, esi
call fcn.1004e780
push 0x252
lea eax, [esi + 0x38]
push 0
push eax
call fcn.10425c00
and byte [esi + 0x28], 0xfc
add esp, 0xc
mov dword [esi + 0xc], 0
mov byte [esi + 0x2b8], 0
mov dword [esi + 8], 0
push edi
mov dword [esi + 0x20], 0
mov dword [esi + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp - 8]
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x100fa9b0
mov ecx, esi
call fcn.1004ee00
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x7b30], esi
jne 0x100fa96b
mov eax, dword [esi]
mov dword [ecx + 0x7b30], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
test edx, edx
je 0x100fa979
mov dword [edx + 4], eax
jmp 0x100fa98c
mov dword [ecx + 0x7b2c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x100fa98c
mov dword [eax], 0
mov edx, dword [esi + 4]
test edx, edx
je 0x100fa997
mov eax, dword [esi]
mov dword [edx], eax
dec dword [ecx + 0x7b34]
push 0x2c0
push esi
call fcn.1045088a
add esp, 8
jmp 0x100fa9b0
mov ebx, dword [ebp - 8]
mov eax, dword [ebx]
test eax, eax
je 0x100fa9c9
mov esi, dword [eax]
push 0x18
push eax
call fcn.1045088a
add esp, 8
mov eax, esi
test esi, esi
jne 0x100fa9b6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret