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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x14]
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
cmp eax, dword [esi + 0x2c]
ja 0x10121759
jb 0x10121720
cmp ebx, dword [esi + 0x28]
jae 0x10121759
mov ecx, dword [esi + 0x14]
mov word [esi + 0x10], 0
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x10121741
lea ecx, [esi + 0x14]
call fcn.10121b70
add dword [esi + 0x18], eax
mov ecx, dword [esi + 0x14]
adc dword [esi + 0x1c], edx
lea eax, [ecx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, esi
call fcn.101216a0
mov ecx, esi
call fcn.10121620
cmp dword [esi + 0x34], 2
jbe 0x101217dd
mov ebx, dword [esi + 0x30]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [ebx]
cmp eax, ebx
je 0x101217da
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
nop dword [eax]
add edx, dword [eax + 0x10]
mov ecx, dword [eax + 8]
adc edi, dword [eax + 0x14]
or ecx, dword [eax + 0xc]
jne 0x101217da
test edi, edi
ja 0x101217a1
jb 0x10121799
cmp edx, dword [esi + 4]
ja 0x101217a1
mov eax, dword [eax]
cmp eax, ebx
jne 0x10121780
jmp 0x101217da
mov ecx, dword [esi + 0x14]
mov word [esi + 0x10], 0
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x101217c2
lea ecx, [esi + 0x14]
call fcn.10121b70
add dword [esi + 0x18], eax
mov ecx, dword [esi + 0x14]
adc dword [esi + 0x1c], edx
lea eax, [ecx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, esi
call fcn.101216a0
mov ecx, esi
call fcn.10121620
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
cmp edx, ecx
jb 0x101217f6
ja 0x101217f0
mov eax, dword [ebp + 8]
cmp ebx, eax
jbe 0x101217f9
mov eax, ebx
mov ecx, edx
jmp 0x101217f9
mov eax, dword [ebp + 8]
mov edi, dword [esi + 0x28]
cmp edx, dword [esi + 0x2c]
ja 0x1012180c
jb 0x10121807
cmp ebx, edi
jae 0x1012180c
mov edx, dword [esi + 0x2c]
mov ebx, edi
mov dword [esi + 0x24], ecx
mov ecx, ebx
sub ecx, edi
mov dword [esi + 0x20], eax
mov dword [esp + 0x18], ecx
mov eax, edx
sbb eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edx
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x10121848
lea ecx, [esi + 0x14]
call fcn.10121b70
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x10121859
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
add dword [esi + 0x18], eax
lea eax, [ecx + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
adc dword [esi + 0x1c], edx
push eax
call ebx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [esi + 0x14]
add eax, 8
push eax
call ebx
mov eax, dword [esi + 0x14]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, dword [esi + 0x30]
mov edi, dword [eax]
lea eax, [esp + 0x18]
push eax
mov ebx, dword [edi + 4]
push ebx
push edi
call fcn.10115ca0
mov edx, eax
mov ecx, 0xaaaaaa9
mov eax, dword [esi + 0x34]
sub ecx, eax
cmp ecx, 1
jae 0x101218be
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
inc eax
mov dword [esi + 0x34], eax
mov dword [edi + 4], edx
mov dword [ebx], edx
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0xc]
jbe 0x101218f5
mov eax, dword [esi + 0x30]
push 0x18
mov edx, dword [eax + 4]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [esi + 0x34]
call fcn.101d2cde
mov eax, dword [esi + 0x34]
add esp, 8
cmp eax, 2
jbe 0x1012196a
mov ecx, dword [esi + 0x30]
xor dl, dl
xorps xmm0, xmm0
mov byte [esp + 0xf], dl
movlpd qword [esp + 0x18], xmm0
mov eax, dword [ecx]
cmp eax, ecx
je 0x1012196a
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
nop
test dl, dl
jne 0x1012193e
add ebx, dword [eax + 0x10]
adc ecx, dword [eax + 0x14]
mov dword [esp + 0x10], ecx
test ecx, ecx
jb 0x10121973
ja 0x10121939
cmp ebx, dword [esi + 8]
jbe 0x10121973
mov byte [esp + 0xf], 1
mov ecx, dword [eax + 4]
mov edi, dword [eax]
push 0x18
push eax
mov dword [ecx], edi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [esi + 0x34]
call fcn.101d2cde
mov ecx, dword [esp + 0x18]
add esp, 8
mov dl, byte [esp + 0xf]
mov eax, edi
cmp eax, dword [esi + 0x30]
jne 0x10121920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [eax]
jmp 0x10121965