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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov bl, byte [ebp + 8]
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x16]
mov bh, byte [esi + 0x17]
mov byte [ebp - 6], al
mov al, byte [esi + 0x14]
mov byte [ebp - 5], al
mov eax, dword [esi + 8]
shr eax, 0x17
mov word [esi + 0x17], 0
mov byte [esi + 0x16], 0
mov byte [esi + 0x19], 0
mov byte [esi + 0x14], bl
test al, 1
je 0x101372e2
mov eax, dword [esi + 0x140]
xor edx, edx
mov ecx, 0x64
div ecx
test edx, edx
jne 0x101370fa
call fcn.10138db0
mov dword [esi + 0x13c], eax
inc dword [esi + 0x140]
test bl, bl
jne 0x10137295
cmp byte [ebp + 0xc], bl
je 0x10137116
cmp byte [esi + 0x1b], bl
je 0x10137295
mov eax, dword [esi + 0x148]
or eax, dword [esi + 0x14c]
je 0x10137295
cmp dword [esi + 0x13c], 0
je 0x10137295
mov eax, dword [esi + 0x150]
lea edi, [esi + 0x150]
or eax, dword [edi + 4]
jne 0x10137160
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi + 0x160], eax
mov dword [esi + 0x164], ecx
jmp 0x1013716c
inc dword [esi + 0x158]
inc dword [esi + 0x168]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [esi + 0x14c]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [edi]
push dword [esi + 0x148]
mov eax, dword [ebp - 0x10]
sbb eax, dword [edi + 4]
push eax
push ecx
call fcn.10451340
mov ecx, dword [esi + 0x13c]
add ecx, 5
cmp dword [esi + 0x158], ecx
jbe 0x101371ce
cmp eax, 1
jae 0x101371d7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [esi + 0x160], eax
mov dword [esi + 0x164], ecx
jmp 0x101372bd
cmp eax, 1
jb 0x101372e2
mov eax, dword [esi + 0x16c]
mov ecx, dword [ebp - 0x14]
inc eax
mov edx, dword [ebp - 0x10]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esi + 0x158], 0
mov dword [esi + 0x16c], eax
cmp eax, dword [esi + 0x170]
jb 0x101372e2
sub ecx, dword [esi + 0x160]
sbb edx, dword [esi + 0x164]
call fcn.104511a0
mov edx, dword [esi + 0x14c]
mov ecx, dword [esi + 0x148]
cvtsd2ss xmm0, xmm0
movss dword [ebp + 8], xmm0
call fcn.104511a0
movss xmm2, dword [ebp + 8]
mov eax, dword [esi + 0x13c]
cvtsd2ss xmm0, xmm0
inc eax
movd xmm1, eax
divss xmm2, xmm0
shr eax, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm1, qword [eax*8 + 0x1122e340]
cvtpd2ps xmm0, xmm1
mulss xmm0, xmm2
call fcn.10451080
add eax, 4
mov dword [esi + 0x170], 5
cmp dword [esi + 0x168], eax
setbe al
mov byte [esi + 0x8a], al
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x160], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x164], eax
jmp 0x101372ce
mov dword [esi + 0x150], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x160], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x158], 0
mov byte [esi + 0x8a], 0
mov dword [esi + 0x168], 0
mov dword [esi + 0x16c], 0
cmp byte [esi + 0x124], 0
jne 0x10137330
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax]
call eax
test al, al
je 0x10137330
mov al, byte [ebp - 5]
cmp byte [esi + 0x14], al
jne 0x1013730c
mov al, byte [ebp - 6]
cmp byte [esi + 0x16], al
jne 0x1013730c
cmp byte [esi + 0x17], bh
je 0x10137313
mov ecx, esi
call fcn.10137c70
test bl, bl
je 0x10137328
add dword [esi + 0x50], 1
adc dword [esi + 0x54], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
add dword [esi + 0x58], 1
adc dword [esi + 0x5c], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14