Function at 0x10165900
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 0x10165959
jb 0x10165920
cmp ebx, dword [esi + 0x28]
jae 0x10165959
mov ecx, dword [esi + 0x14]
mov word [esi + 0x10], 0
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x10165941
lea ecx, [esi + 0x14]
call fcn.1017bdc0
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.10165830
mov ecx, esi
call fcn.101657b0
cmp dword [esi + 0x34], 2
jbe 0x101659dd
mov ebx, dword [esi + 0x30]
xorps xmm0, xmm0
movlpd qword [esp + 0x10], xmm0
mov eax, dword [ebx]
cmp eax, ebx
je 0x101659da
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 0x101659da
test edi, edi
ja 0x101659a1
jb 0x10165999
cmp edx, dword [esi + 4]
ja 0x101659a1
mov eax, dword [eax]
cmp eax, ebx
jne 0x10165980
jmp 0x101659da
mov ecx, dword [esi + 0x14]
mov word [esi + 0x10], 0
mov eax, dword [ecx]
or eax, dword [ecx + 4]
je 0x101659c2
lea ecx, [esi + 0x14]
call fcn.1017bdc0
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.10165830
mov ecx, esi
call fcn.101657b0
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
cmp edx, ecx
jb 0x101659f6
ja 0x101659f0
mov eax, dword [ebp + 8]
cmp ebx, eax
jbe 0x101659f9
mov eax, ebx
mov ecx, edx
jmp 0x101659f9
mov eax, dword [ebp + 8]
mov edi, dword [esi + 0x28]
cmp edx, dword [esi + 0x2c]
ja 0x10165a0c
jb 0x10165a07
cmp ebx, edi
jae 0x10165a0c
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 0x10165a48
lea ecx, [esi + 0x14]
call fcn.1017bdc0
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x10165a59
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.10166600
mov edx, eax
mov ecx, 0xaaaaaa9
mov eax, dword [esi + 0x34]
sub ecx, eax
cmp ecx, 1
jae 0x10165abe
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 0x10165af5
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.1025b427
mov eax, dword [esi + 0x34]
add esp, 8
cmp eax, 2
jbe 0x10165b6a
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 0x10165b6a
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
nop
test dl, dl
jne 0x10165b3e
add ebx, dword [eax + 0x10]
adc ecx, dword [eax + 0x14]
mov dword [esp + 0x10], ecx
test ecx, ecx
jb 0x10165b73
ja 0x10165b39
cmp ebx, dword [esi + 8]
jbe 0x10165b73
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.1025b427
mov ecx, dword [esp + 0x18]
add esp, 8
mov dl, byte [esp + 0xf]
mov eax, edi
cmp eax, dword [esi + 0x30]
jne 0x10165b20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [eax]
jmp 0x10165b65