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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi], esi
je 0x101c8ad4
mov ebx, dword [edi + 0x5c8]
test ebx, ebx
je 0x101c8919
mov ecx, dword [0x11d0c5b8]
mov eax, dword fs:[0x2c]
mov edx, dword [eax + ecx*4]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0xf93c]
shl eax, 6
xor eax, dword [ecx + 0xa70]
and eax, 0x3c0
xor dword [ecx + 0xa70], eax
cmp byte [edx + 8], 0
jne 0x101c88e5
call fcn.10450c0b
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0xbe2c]
mov eax, dword [eax + 0x11d8]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x101c8908
mov ecx, dword [ebx + 8]
push eax
call fcn.1004bab0
mov ecx, dword [edi + 0x5c8]
call fcn.10055d60
mov dword [edi + 0x5c8], esi
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [edi + 0x254], ecx
jbe 0x101c8a9f
lea edx, [edi + 0x498]
lea eax, [edi + 0x4b8]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
nop dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x101c89e0
mov ebx, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
cmp dword [eax + 0xd45c], 1
jne 0x101c89ba
lea eax, [ebx + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebx + 0x1178]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x20]
movlpd qword [ebp - 0x20], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebx + 0x1428]
mov eax, dword [ebp - 0x1c]
sbb eax, dword [ebx + 0x142c]
add dword [ebx + 0x1420], ecx
adc dword [ebx + 0x1424], eax
mov eax, dword [ebp - 0x14]
jmp 0x101c89d5
mov eax, dword [ebx + 0x1178]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
mov ecx, dword [ebp - 4]
test eax, eax
mov edx, dword [ebp - 8]
cmovs esi, eax
mov eax, dword [edx]
test eax, eax
je 0x101c8a80
mov ebx, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
cmp dword [eax + 0xd45c], 1
jne 0x101c8a5a
lea eax, [ebx + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebx + 0x10cc]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x28], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebx + 0x1428]
mov eax, dword [ebp - 0x24]
sbb eax, dword [ebx + 0x142c]
add dword [ebx + 0x1420], ecx
adc dword [ebx + 0x1424], eax
mov eax, dword [ebp - 0x14]
jmp 0x101c8a75
mov eax, dword [ebx + 0x10cc]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebx + 0x11cc]
call eax
push eax
push ecx
mov ecx, ebx
call fcn.101c9e10
mov ecx, dword [ebp - 4]
test eax, eax
mov edx, dword [ebp - 8]
cmovs esi, eax
mov eax, dword [ebp - 0x10]
inc ecx
add edx, 4
mov dword [ebp - 4], ecx
add eax, 0x20
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], eax
cmp ecx, dword [edi + 0x254]
jb 0x101c8940
cmp dword [edi + 0x5d8], 0
je 0x101c8ad4
push dword [edi + 0x5dc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [edi + 0x5d8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x5d8], 0
mov dword [edi + 0x5dc], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret