Function at 0x1c5d400
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, 0x50
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1d1b0f8]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x1c5d451
jnp 0x1c5d53f
mov esi, dword [ebp + 8]
ucomisd xmm0, xmm1
jne 0x1c5d45c
jnp 0x1c5d4b9
movsd xmm1, qword [esp + 0x38]
unpcklps xmm1, xmmword [0x1ceb8c0]
subpd xmm1, xmmword [0x1ceb8d0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1ceb8a8]
movsd qword [esp + 8], xmm2
fld qword [esp + 8]
fisttp qword [esp + 8]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.01c87bd3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
xor ecx, ecx
jmp 0x1c5d49f
push 0x1d1b118
call fcn.01c86cf1
add esp, 4
cmp dword [0x1d1b118], 0xffffffff
jne 0x1c5d59b
xor eax, eax
lea esi, [esp + 0x40]
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 [0x1d1b114], ecx
mov dword [0x1d1b110], eax
push 0x1d1b118
call fcn.01c86d6b
add esp, 4
jmp 0x1c5d59b
push 0x1d1b108
call fcn.01c86cf1
add esp, 4
cmp dword [0x1d1b108], 0xffffffff
jne 0x1c5d57a
rdtsc
mov dword [0x1d1b100], eax
mov dword [0x1d1b104], edx
push 0x1d1b108
call fcn.01c86d6b
add esp, 4
jmp 0x1c5d57a
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0x14], eax
call esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1d1b108]
mov ecx, dword [0x1d1a468]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c5d50d
mov eax, dword [0x1d1b118]
mov ecx, dword [0x1d1a468]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c5d4bf
rdtsc
mov dword [esp + 4], eax
mov dword [esp], edx
xor eax, eax
lea esi, [esp + 0x40]
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 + 0x14]
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 [0x1d1b114]
mov ecx, dword [0x1d1b110]
cmp ebx, ecx
mov edx, edi
sbb edx, eax
jl 0x1c5d6d5
sub ebx, ecx
movd xmm0, ebx
sbb edi, eax
movd xmm1, edi
punpckldq xmm0, xmm1
movq qword [esp + 0x28], xmm0
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movsd xmm1, qword [esp + 0x20]
fild qword [esp + 0x40]
fstp qword [esp + 0x30]
divsd xmm1, qword [esp + 0x30]
pxor xmm0, xmm0
movsd xmm2, qword [0x1ceb8b8]
ucomisd xmm2, xmm1
jbe 0x1c5d63e
xorpd xmm1, xmm1
jmp 0x1c5d451
mov eax, dword [0x1d1b104]
mov ecx, dword [0x1d1b100]
cmp dword [esp + 4], ecx
mov edx, dword [esp]
sbb edx, eax
jb 0x1c5d6a0
mov edx, dword [esp + 4]
sub edx, ecx
mov ecx, dword [esp]
sbb ecx, eax
movd xmm0, edx
movd xmm2, ecx
punpckldq xmm0, xmm2
punpckldq xmm0, xmmword [0x1ceb8c0]
subpd xmm0, xmmword [0x1ceb8d0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esp + 0x18]
movlps qword [0x1d1b0f8], xmm0
movq xmm0, qword [0x1d1b0f8]
jmp 0x1c5d635
call fcn.01c9807e
push dword [eax]
call fcn.01ca0211
add esp, 4
mov esi, eax
call fcn.01c9807e
mov edi, dword [eax]
push 0x1ceb8e0
call fcn.01cb4260
add esp, 4
push esi
push edi
push str.PERFETTO_CHECK_tsc_now___tsc_initial_
push str._s__errno:__d___s_
push 0x66
jmp 0x1c5d708
call fcn.01c9807e
push dword [eax]
call fcn.01ca0211
add esp, 4
mov esi, eax
call fcn.01c9807e
mov edi, dword [eax]
push 0x1ceb8e0
call fcn.01cb4260
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.01cb4470
add esp, 0x1c
int3