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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ecx + 0x3c], 0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
je 0x10108c01
lea edi, [ecx + 4]
mov ebx, 4
nop
mov esi, dword [edi - 4]
test esi, esi
je 0x101089e4
mov eax, dword [edi]
test eax, eax
je 0x101089e4
mov dword [ebp - 4], eax
mov dword [edi], 0
mov esi, dword [esi + 0xbe2c]
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x101089c9
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 4]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0xc]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x101089e4
mov eax, dword [esi + 0x10d4]
lea ecx, [ebp - 4]
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 0x10108940
mov ebx, dword [ebp - 8]
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebx + 0x34]
test esi, esi
je 0x10108aff
mov edi, dword [ebx + 0x3c]
add edi, 0x7a80
push edi
call eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10108a34
nop word [eax + eax]
push dword [eax + 0xae0]
mov ecx, esi
call fcn.100559e0
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x10108a20
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 [ebx + 0x34]
test esi, esi
je 0x10108af3
mov ecx, esi
call fcn.1004ee00
mov ecx, dword [0x11d0c5b8]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x7b30], esi
jne 0x10108ab3
mov eax, dword [esi]
mov dword [ecx + 0x7b30], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
test edx, edx
je 0x10108ac1
mov dword [edx + 4], eax
jmp 0x10108ad4
mov dword [ecx + 0x7b2c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x10108ad4
mov dword [eax], 0
mov edx, dword [esi + 4]
test edx, edx
je 0x10108adf
mov eax, dword [esi]
mov dword [edx], eax
dec dword [ecx + 0x7b34]
push 0x2c0
push esi
call fcn.1045088a
add esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebx + 0x34], 0
mov esi, dword [ebx + 0x30]
test esi, esi
je 0x10108bfa
mov edi, dword [ebx + 0x3c]
add edi, 0x7a80
push edi
call eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10108b34
nop dword [eax]
push dword [eax + 0xae0]
mov ecx, esi
call fcn.100559e0
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x10108b20
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 [ebx + 0x30]
test esi, esi
je 0x10108bf3
mov ecx, esi
call fcn.1004ee00
mov ecx, dword [0x11d0c5b8]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
mov ecx, dword [eax + 0x10]
cmp dword [ecx + 0x7b30], esi
jne 0x10108bb3
mov eax, dword [esi]
mov dword [ecx + 0x7b30], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
test edx, edx
je 0x10108bc1
mov dword [edx + 4], eax
jmp 0x10108bd4
mov dword [ecx + 0x7b2c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x10108bd4
mov dword [eax], 0
mov edx, dword [esi + 4]
test edx, edx
je 0x10108bdf
mov eax, dword [esi]
mov dword [edx], eax
dec dword [ecx + 0x7b34]
push 0x2c0
push esi
call fcn.1045088a
add esp, 8
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x3c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret