Function at 0x423500
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, 0xfffffff0
sub esp, 0x50
mov eax, dword [0x4ef418]
xor eax, ebp
mov dword [esp + 0x48], eax
movsd xmm1, qword [0x4f6cc0]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x4236b3
jp 0x4236b3
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0x10], eax
call esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x4f6cd0]
mov ecx, dword [0x4f269c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x42359e
push 0x4f6cd0
call fcn.00459bb7
add esp, 4
cmp dword [0x4f6cd0], 0xffffffff
jne 0x42359e
rdtsc
mov dword [0x4f6cc8], eax
mov dword [0x4f6ccc], edx
push 0x4f6cd0
call fcn.00459c2d
add esp, 4
mov eax, dword [0x4f6ce0]
mov ecx, dword [0x4f269c]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jle 0x423600
push 0x4f6ce0
call fcn.00459bb7
add esp, 4
cmp dword [0x4f6ce0], 0xffffffff
jne 0x423600
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 [0x4f6cdc], ecx
mov dword [0x4f6cd8], eax
push 0x4f6ce0
call fcn.00459c2d
add esp, 4
rdtsc
mov dword [esp + 0xc], eax
mov dword [esp + 8], 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 + 0x10]
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 [0x4f6cdc]
mov ecx, dword [0x4f6cd8]
cmp ebx, ecx
mov edx, edi
sbb edx, eax
jl 0x4236bb
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 xmm0, qword [esp + 0x28]
fild qword [esp + 0x40]
fstp qword [esp + 0x38]
divsd xmm0, qword [esp + 0x38]
xorps xmm2, xmm2
movsd xmm1, qword [0x4da620]
ucomisd xmm1, xmm0
jbe 0x4236fa
movaps xmmword [esp + 0x10], xmm2
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.0045bb2d
movaps xmm0, xmmword [esp + 0x10]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movapd xmmword [esp + 0x10], xmm1
jmp 0x42369b
call fcn.00474027
push dword [eax]
call fcn.0047d881
add esp, 4
mov esi, eax
call fcn.00474027
mov edi, dword [eax]
push 0x4da628
call fcn.004924b0
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.00492d30
add esp, 0x1c
int3
mov eax, dword [0x4f6ccc]
mov ecx, dword [0x4f6cc8]
cmp dword [esp + 0xc], ecx
mov edx, dword [esp + 8]
sbb edx, eax
jb 0x423762
mov edx, dword [esp + 0xc]
sub edx, ecx
mov ecx, dword [esp + 8]
sbb ecx, eax
movd xmm1, edx
movd xmm2, ecx
punpckldq xmm1, xmm2
punpckldq xmm1, xmmword [0x4da600]
subpd xmm1, xmmword [0x4da610]
haddpd xmm1, xmm1
divsd xmm1, xmm0
movsd qword [esp + 0x20], xmm1
movsd xmm0, qword [esp + 0x20]
movlpd qword [0x4f6cc0], xmm0
movsd xmm2, qword [0x4f6cc0]
jmp 0x423696
call fcn.00474027
push dword [eax]
call fcn.0047d881
add esp, 4
mov esi, eax
call fcn.00474027
mov edi, dword [eax]
push 0x4da628
call fcn.004924b0
add esp, 4
push esi
push edi
push str.PERFETTO_CHECK_tsc_now___tsc_initial_
push str._s__errno:__d___s_
push 0x66
jmp 0x4236ee