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

Disassembly:
mov eax, 0x108161c
call fcn.0105c800
sub esp, 0x454
push ebx
xor ebx, ebx
cmp byte [0x10a4310], bl
push esi
mov esi, ecx
je 0x101b83d
xor eax, eax
jmp 0x101ba1b
cmp dword [esi + 0x60], ebx
jne 0x101b85d
cmp dword [esi + 0x64], ebx
jne 0x101b85d
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x60], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x64], eax
mov dword [esi + 0x58], ebx
mov dword [esi + 0x68], ebx
lea ecx, [ebp - 0x5c]
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x6c], ebx
call fcn.01018cca
push 1
push 0xfa0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], ebx
call fcn.01019110
test eax, eax
jge 0x101b88e
xor esi, esi
jmp 0x101ba0d
push edi
mov byte [ebp - 0x18], bl
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [ebp + 8]
push 0x1e
lea edx, [ebp - 0x460]
push 0x400
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp eax, ebx
je 0x101b8cf
mov byte [ebp - 0x18], bl
xor edi, edi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
sub eax, dword [ebp - 0x3c]
mov byte [ebp + edi - 0x460], bl
sbb ecx, dword [ebp - 0x38]
add dword [esi + 0x58], eax
mov eax, edi
cdq
adc dword [esi + 0x5c], ecx
add dword [esi + 0x68], eax
adc dword [esi + 0x6c], edx
cmp edi, ebx
je 0x101b9ee
cmp dword [ebp - 0x24], ebx
mov byte [ebp - 0x18], 1
mov dword [ebp - 0x14], edi
jne 0x101b9b3
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x460]
push eax
call fcn.01019065
test eax, eax
jl 0x101b9dd
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x5c]
push eax
call fcn.010190f5
test eax, eax
jl 0x101b9dd
lea eax, [ebp - 0x20]
mov edi, dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x28]
call fcn.0100965e
push eax
mov ecx, esi
call dword [edi + 0x44]
movzx eax, al
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x101b9dd
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
je 0x101b97a
mov eax, dword [ecx]
push esi
push dword [ebp - 0x1c]
call dword [eax + 0x14]
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 1
jne 0x101b9dd
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x5c]
push eax
call fcn.010190f5
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x101b9ca
mov edi, dword [eax]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0100965e
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
push eax
call dword [edi + 0x28]
jmp 0x101b9ca
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x101b9ca
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x460]
push edx
call dword [eax + 0x28]
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
je 0x101b9dd
mov eax, dword [ecx]
push esi
push dword [ebp - 0x14]
call dword [eax + 0xc]
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], bl
je 0x101b9f3
cmp byte [0x10a4310], bl
je 0x101b89c
cmp byte [ebp - 0x18], bl
je 0x101b9fb
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
cmp byte [0x10a4310], 1
pop edi
sete al
dec eax
and eax, dword [ebp - 0x18]
movzx esi, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.01018cf8
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc