Function at 0x1c8f790
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x1cf3040]
xor eax, ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.progwrp.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1cf7210]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x1c8f7e1
jnp 0x1c8f8ea
mov esi, dword [ebp + 8]
ucomisd xmm0, xmm1
jne 0x1c8f7ec
jnp 0x1c8f864
movsd xmm1, qword [esp + 0x40]
unpcklps xmm1, xmmword [0x1cdf140]
subpd xmm1, xmmword [0x1cdf150]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1cdf120]
movsd qword [esp + 0x10], xmm2
fld qword [esp + 0x10]
fnstcw word [esp + 4]
movzx eax, word [esp + 4]
or eax, 0xc00
mov word [esp + 6], ax
fldcw word [esp + 6]
fistp qword [esp + 0x10]
fldcw word [esp + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.01c98173
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
xor ecx, ecx
jmp 0x1c8f84a
push 0x1cf7230
call fcn.01c9518a
add esp, 4
cmp dword [0x1cf7230], 0xffffffff
jne 0x1c8f946
xor eax, eax
lea esi, [esp + 0x48]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [0x1cf722c], ecx
mov dword [0x1cf7228], eax
push 0x1cf7230
call fcn.01c951d9
add esp, 4
jmp 0x1c8f946
push 0x1cf7220
call fcn.01c9518a
add esp, 4
cmp dword [0x1cf7220], 0xffffffff
jne 0x1c8f925
rdtsc
mov dword [0x1cf7218], eax
mov dword [0x1cf721c], edx
push 0x1cf7220
call fcn.01c951d9
add esp, 4
jmp 0x1c8f925
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0x1c], eax
call esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1cf7220]
mov ecx, dword [0x1cf656c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c8f8b8
mov eax, dword [0x1cf7230]
mov ecx, dword [0x1cf656c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c8f86a
rdtsc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
xor eax, eax
lea esi, [esp + 0x48]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [0x1cf722c]
mov ecx, dword [0x1cf7228]
cmp ebx, ecx
mov edx, edi
sbb edx, eax
jl 0x1c8fa8b
sub ebx, ecx
movd xmm0, ebx
sbb edi, eax
movd xmm1, edi
punpckldq xmm0, xmm1
movq qword [esp + 0x30], xmm0
fild qword [esp + 0x30]
fstp qword [esp + 0x28]
movsd xmm1, qword [esp + 0x28]
fild qword [esp + 0x48]
fstp qword [esp + 0x38]
divsd xmm1, qword [esp + 0x38]
pxor xmm0, xmm0
movsd xmm2, qword [0x1cdf130]
ucomisd xmm2, xmm1
jbe 0x1c8f9ea
xorpd xmm1, xmm1
jmp 0x1c8f7e1
mov eax, dword [0x1cf721c]
mov ecx, dword [0x1cf7218]
cmp dword [esp + 0xc], ecx
mov edx, dword [esp + 8]
sbb edx, eax
jb 0x1c8fa56
mov edx, dword [esp + 0xc]
sub edx, ecx
mov ecx, dword [esp + 8]
sbb ecx, eax
movd xmm0, edx
movd xmm2, ecx
punpckldq xmm0, xmm2
punpckldq xmm0, xmmword [0x1cdf140]
subpd xmm0, xmmword [0x1cdf150]
movapd xmm2, xmm0
unpckhpd xmm2, xmm0
addsd xmm2, xmm0
divsd xmm2, xmm1
movsd qword [esp + 0x20], xmm2
movsd xmm0, qword [esp + 0x20]
movlps qword [0x1cf7210], xmm0
movq xmm0, qword [0x1cf7210]
jmp 0x1c8f9e1
call fcn.01c968ab
push dword [eax]
call fcn.01cad681
add esp, 4
mov esi, eax
call fcn.01c968ab
mov edi, dword [eax]
push str....._third_partyperfetto_src_base_time.cc
call fcn.01cc0a20
add esp, 4
push esi
push edi
push str.PERFETTO_CHECK_tsc_now___tsc_initial_
push str._s__errno:__d___s_
push 0x66
jmp 0x1c8fabe
call fcn.01c968ab
push dword [eax]
call fcn.01cad681
add esp, 4
mov esi, eax
call fcn.01c968ab
mov edi, dword [eax]
push str....._third_partyperfetto_src_base_time.cc
call fcn.01cc0a20
add esp, 4
push esi
push edi
push str.PERFETTO_CHECK_perf_counter_now___perf_counter_initial_
push str._s__errno:__d___s_
push 0x5b
push eax
push 3
call fcn.01cc0aa0
add esp, 0x1c
int3