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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x13c4], 0
je 0x101f34ff
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [esi]
xor eax, eax
mov edi, dword [ebx + 0xfd48]
test edi, edi
je 0x101f3201
lea ecx, [ebx + 0xf968]
mov edx, ecx
nop dword [eax]
cmp dword [edx], 1
je 0x101f328c
inc eax
add edx, 0x20
cmp eax, edi
jb 0x101f31f0
mov eax, 1
mov ecx, dword [esi + 0x13c4]
cmp dword [ebp - 4], eax
jae 0x101f3445
mov eax, dword [ebp - 8]
mov eax, dword [eax + ecx + 0x20]
test eax, eax
je 0x101f32f3
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0xd45c], 1
jne 0x101f32d8
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esi + 0x1428]
push eax
call ebx
mov eax, dword [esi + 0x1178]
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 ebx
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 0x101f32f3
cmp eax, 0x1f
jne 0x101f32a5
xor eax, eax
cmp dword [ecx], 1
je 0x101f32b7
inc eax
add ecx, 0x20
cmp eax, edi
jb 0x101f3293
jmp 0x101f3201
cmp eax, 0xffffffff
je 0x101f3201
cmp eax, 0x1f
jae 0x101f3201
shl eax, 5
cmp dword [eax + ebx + 0xf96c], 0
setne al
test al, al
je 0x101f3201
mov eax, dword [ebx + 0xf944]
jmp 0x101f3206
mov eax, dword [esi + 0x1178]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov eax, dword [esi + 0x13c4]
lea edi, [esi + 0x1428]
mov ebx, dword [ebp - 4]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x101f3397
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x101f336f
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x10cc]
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 - 0x20]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x1c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x101f338a
mov eax, dword [esi + 0x10cc]
lea ecx, [ebp - 0xc]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov eax, dword [esi + 0x13c4]
mov dword [eax + ebx*4], 0
mov eax, dword [esi + 0x13c4]
mov eax, dword [eax + ebx*4 + 0x130]
test eax, eax
je 0x101f3438
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x101f340c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call edi
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 - 0x28]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x28], xmm0
call edi
mov ecx, dword [ebp - 0x28]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x24]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x101f3427
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
mov eax, dword [esi + 0x13c4]
mov dword [eax + ebx*4 + 0x130], 0
inc ebx
add dword [ebp - 8], 0x20
mov dword [ebp - 4], ebx
jmp 0x101f31d6
mov eax, dword [ecx + 0x150]
test eax, eax
je 0x101f34ff
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0xd45c], 1
jne 0x101f34b7
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esi + 0x1428]
push eax
call ebx
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 - 0x28]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x28], xmm0
call ebx
mov ecx, dword [ebp - 0x28]
sub ecx, dword [esi + 0x1428]
mov eax, dword [ebp - 0x24]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x101f34d2
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
mov eax, dword [esi + 0x13c4]
push 0x160
mov dword [eax + 0x150], 0
push dword [esi + 0x13c4]
call fcn.1045088a
add esp, 8
mov dword [esi + 0x13c4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret