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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
push 0x10
push 0x160
mov esi, ecx
call fcn.10434a32
mov edi, eax
add esp, 8
test edi, edi
jne 0x101f2e5c
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x160
push 0
push edi
call fcn.10425c00
mov eax, dword [esi]
add esp, 0xc
mov dword [esi + 0x13c4], edi
mov ebx, dword [eax + 0xe8c8]
test bl, 3
jne 0x101f2e8b
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x12dc], 0
jne 0x101f2e9b
mov ecx, esi
call fcn.101fc5c0
not ebx
and ebx, 1
push 0x54
push 0
mov eax, dword [esi + ebx*4 + 0x130c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x108c]
mov dword [ebp - 0xc], eax
inc eax
mov dword [esi + 0x108c], eax
lea eax, [ebp - 0x74]
push eax
call fcn.10425c00
mov eax, dword [esi + 0x11d8]
add esp, 0xc
mov ecx, dword [0x11d0c5b8]
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x78], 5
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [eax + ecx*4]
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov ebx, dword [esi]
xor eax, eax
mov edi, dword [ebx + 0xfd48]
test edi, edi
je 0x101f2f27
lea ecx, [ebx + 0xf968]
mov edx, ecx
cmp dword [edx], 1
je 0x101f3000
inc eax
add edx, 0x20
cmp eax, edi
jb 0x101f2f16
mov eax, 1
cmp dword [ebp - 4], eax
jae 0x101f310d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ebx, dword [eax + 0x10]
xor eax, eax
mov edi, dword [ebx + 0xfd48]
test edi, edi
je 0x101f2f65
lea ecx, [ebx + 0xf968]
mov edx, ecx
cmp dword [edx], 1
je 0x101f304c
inc eax
add edx, 0x20
cmp eax, edi
jb 0x101f2f54
mov ebx, dword [ebp - 4]
mov ecx, dword [esi + 0x13c4]
lea edi, [ebx*4]
push 0
push dword [ebp - 0xc]
lea eax, [ecx + edi]
mov ecx, dword [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x10]
call fcn.101c4030
test eax, eax
js 0x101f31a2
mov eax, dword [esi]
cmp dword [eax + 0xd45c], 1
jne 0x101f30c7
lea eax, [esi + 0x1428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi + 0x10f0]
lea ecx, [ebp - 0x78]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov ebx, 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 [esi + 0x1428]
mov eax, dword [ebp - 0x1c]
sbb eax, dword [esi + 0x142c]
add dword [esi + 0x1420], ecx
adc dword [esi + 0x1424], eax
jmp 0x101f30e4
cmp eax, 0x1f
jne 0x101f3019
xor eax, eax
cmp dword [ecx], 1
je 0x101f302b
inc eax
add ecx, 0x20
cmp eax, edi
jb 0x101f3007
jmp 0x101f2f27
cmp eax, 0xffffffff
je 0x101f2f27
cmp eax, 0x1f
jae 0x101f2f27
shl eax, 5
cmp dword [eax + ebx + 0xf96c], 0
setne al
test al, al
je 0x101f2f27
mov eax, dword [ebx + 0xf944]
jmp 0x101f2f2c
cmp eax, 0x1f
jne 0x101f3065
xor eax, eax
cmp dword [ecx], 1
je 0x101f3077
inc eax
add ecx, 0x20
cmp eax, edi
jb 0x101f3053
jmp 0x101f2f65
cmp eax, 0xffffffff
je 0x101f2f65
cmp eax, 0x1f
jae 0x101f2f65
mov ecx, dword [esi + 0x13c4]
shl eax, 5
cmp dword [eax + ebx + 0xf970], 0
mov ebx, dword [ebp - 4]
setne al
lea edi, [ebx*4]
test al, al
je 0x101f2f75
push 0
push dword [ebp - 0xc]
lea eax, [ecx + 0x120]
push eax
mov eax, dword [ebp - 8]
add eax, 0x20
add eax, ecx
push eax
lea eax, [ecx + edi]
mov ecx, dword [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x10]
call fcn.101c4190
jmp 0x101f2f8a
mov eax, dword [esi + 0x10f0]
lea ecx, [ebp - 0x78]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov ebx, eax
test ebx, ebx
js 0x101f3104
mov ecx, dword [esi + 0x13c4]
mov eax, dword [ebp - 0x28]
inc dword [ebp - 4]
add dword [ebp - 8], 0x20
mov dword [edi + ecx + 0x130], eax
jmp 0x101f2f00
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xd45c], 1
jne 0x101f3170
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esi + 0x1428]
push eax
call ebx
mov eax, dword [esi + 0x10f0]
lea ecx, [ebp - 0x78]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x20]
movlpd qword [ebp - 0x20], xmm0
push eax
call ebx
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 0x101f318d
mov eax, dword [esi + 0x10f0]
lea ecx, [ebp - 0x78]
push ecx
push dword [esi + 0x11cc]
call eax
push eax
push ecx
mov ecx, esi
call fcn.101c9e10
mov edi, eax
test edi, edi
js 0x101f31a0
mov ecx, dword [esi + 0x13c4]
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x150], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret