Function at 0x4711a0
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, 0x40
mov esi, dword [ebp + 8]
mov eax, dword [0x520014]
xor eax, ebp
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
call fcn.00470b10
add esp, 4
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x525a40]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x4711fa
jnp 0x47125f
ucomisd xmm0, xmm1
jne 0x471206
jnp 0x471360
movsd xmm1, qword [esp + 0x28]
unpcklps xmm1, xmmword [0x50a740]
subpd xmm1, xmmword [0x50a750]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x50a768]
movsd qword [esp], xmm2
fld qword [esp]
fisttp qword [esp]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.0048a678
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0x14], eax
call ebx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x525a50]
mov ecx, dword [0x5231ac]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x471369
mov eax, dword [0x525a60]
mov ecx, dword [0x5231ac]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4713a2
rdtsc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
xor eax, eax
lea edi, [esp + 0x30]
mov dword [edi + 4], eax
mov dword [edi], eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov ebx, dword [edi + 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 [edi + 4], eax
mov dword [edi], eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov eax, dword [esp + 0x10]
sub eax, dword [0x525a58]
sbb ebx, dword [0x525a5c]
movd xmm0, ebx
movd xmm1, eax
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x50a740]
subpd xmm1, xmmword [0x50a750]
haddpd xmm1, xmm1
fild qword [esp + 0x30]
fstp qword [esp + 0x18]
divsd xmm1, qword [esp + 0x18]
pxor xmm0, xmm0
movsd xmm2, qword [0x50a760]
ucomisd xmm2, xmm1
jbe 0x4713f0
xorpd xmm1, xmm1
jmp 0x4711fa
xor eax, eax
xor ecx, ecx
jmp 0x471245
push 0x525a50
call fcn.004899f7
add esp, 4
cmp dword [0x525a50], 0xffffffff
jne 0x47129e
rdtsc
mov dword [0x525a48], eax
mov dword [0x525a4c], edx
push 0x525a50
call fcn.00489a6d
add esp, 4
jmp 0x47129e
push 0x525a60
call fcn.004899f7
add esp, 4
cmp dword [0x525a60], 0xffffffff
jne 0x4712bf
xor eax, eax
lea ebx, [esp + 0x30]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [0x525a5c], ecx
mov dword [0x525a58], eax
push 0x525a60
call fcn.00489a6d
add esp, 4
jmp 0x4712bf
mov eax, dword [esp + 0xc]
sub eax, dword [0x525a48]
mov ecx, dword [esp + 8]
sbb ecx, dword [0x525a4c]
movd xmm2, ecx
movd xmm0, eax
punpckldq xmm0, xmm2
punpckldq xmm0, xmmword [0x50a740]
subpd xmm0, xmmword [0x50a750]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x525a40], xmm0
jmp 0x471357