Function at 0x46d3d0
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 esi, dword [ebp + 8]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
push eax
call fcn.0046e2e0
add esp, 4
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x55a110]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x46d42a
jnp 0x46d48f
ucomisd xmm0, xmm1
jne 0x46d436
jnp 0x46d590
movsd xmm1, qword [esp + 0x38]
unpcklps xmm1, xmmword [0x536980]
subpd xmm1, xmmword [0x536990]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x5369a0]
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 + 0x48]
xor ecx, ebp
call fcn.004a0403
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0x14], eax
call edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x55a120]
mov ecx, dword [0x54ddb0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46d599
mov eax, dword [0x55a130]
mov ecx, dword [0x54ddb0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x46d5d2
rdtsc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
xor eax, eax
lea edi, [esp + 0x40]
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 [0x55a128]
sbb ebx, dword [0x55a12c]
movd xmm0, ebx
movd xmm1, eax
punpckldq xmm1, xmm0
movq qword [esp + 0x20], xmm1
fild qword [esp + 0x20]
fstp qword [esp + 0x18]
movsd xmm1, qword [esp + 0x18]
fild qword [esp + 0x40]
fstp qword [esp + 0x28]
divsd xmm1, qword [esp + 0x28]
pxor xmm0, xmm0
movsd xmm2, qword [0x536970]
ucomisd xmm2, xmm1
jbe 0x46d620
xorpd xmm1, xmm1
jmp 0x46d42a
xor eax, eax
xor ecx, ecx
jmp 0x46d475
push 0x55a120
call fcn.0049f9b7
add esp, 4
cmp dword [0x55a120], 0xffffffff
jne 0x46d4ce
rdtsc
mov dword [0x55a118], eax
mov dword [0x55a11c], edx
push 0x55a120
call fcn.0049fa2d
add esp, 4
jmp 0x46d4ce
push 0x55a130
call fcn.0049f9b7
add esp, 4
cmp dword [0x55a130], 0xffffffff
jne 0x46d4ef
xor eax, eax
lea edi, [esp + 0x40]
mov dword [edi + 4], eax
mov dword [edi], eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [0x55a12c], ecx
mov dword [0x55a128], eax
push 0x55a130
call fcn.0049fa2d
add esp, 4
jmp 0x46d4ef
mov eax, dword [esp + 0xc]
sub eax, dword [0x55a118]
mov ecx, dword [esp + 8]
sbb ecx, dword [0x55a11c]
movd xmm2, ecx
movd xmm0, eax
punpckldq xmm0, xmm2
punpckldq xmm0, xmmword [0x536980]
subpd xmm0, xmmword [0x536990]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x55a110], xmm0
jmp 0x46d587