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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 8], eax
push 0x10
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.004282e0
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x406b2f
jmp 0x406cc6
mov esi, dword [ebp - 0xc]
inc dword [ebp - 4]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x1c], esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push eax
mov dword [ebp - 0xc], ebx
call esi
mov eax, dword [ebp - 0x34]
push dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebx, 0x7fffffff
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x406b70
push 0xf
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
cmp eax, 0x32
jae 0x406b88
lea eax, [ebp - 0x2c]
push eax
call esi
rdtsc
mov dword [ebp - 0x24], eax
jmp 0x406b70
mov eax, dword [ebp - 0x2c]
mov edi, 0x3e8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
xor eax, eax
cmp eax, edi
jae 0x406bb2
lea eax, [ebp - 0x2c]
push eax
call esi
rdtsc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
jmp 0x406b9b
cmp dword [ebp - 0x18], ebx
je 0x406bc3
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
imul ecx, ecx, 0x186a0
imul eax, eax, 0x186a0
sub ecx, eax
push 0xa
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x3c]
mov eax, ecx
xor edx, edx
pop edi
mov esi, dword [ebp - 0x20]
div edi
xor edx, edx
sub esi, dword [ebp - 0x24]
add dword [ebp - 0x10], esi
mov edi, eax
mov eax, dword [ebp - 0x18]
div edi
xor edx, edx
mov edi, eax
div ecx
add dword [ebp - 0x14], edi
shr ecx, 1
cmp edx, ecx
jbe 0x406c08
inc edi
mov eax, esi
xor edx, edx
div edi
xor edx, edx
mov ebx, eax
mov eax, esi
div edi
shr edi, 1
cmp edx, edi
jbe 0x406c1d
inc ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
lea esi, [eax + ecx]
add esi, ebx
cmp dword [ebp - 4], 3
jl 0x406b2c
cmp dword [ebp - 4], 0x14
jge 0x406c7d
lea eax, [ebx + ebx*2]
sub eax, esi
push eax
call fcn.00428d98
cmp eax, 3
pop ecx
jg 0x406b2c
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
sub eax, esi
push eax
call fcn.00428d98
cmp eax, 3
pop ecx
jg 0x406b2c
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*2]
sub eax, esi
push eax
call fcn.00428d98
cmp eax, 3
pop ecx
jg 0x406b2c
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
xor edx, edx
lea eax, [esi + esi*4]
shl eax, 1
div edi
xor edx, edx
mov ecx, eax
mov eax, esi
imul eax, eax, 0x64
div edi
lea edx, [ecx + ecx*4]
shl edx, 1
sub eax, edx
cmp eax, 6
jb 0x406ca4
inc ecx
mov eax, esi
xor edx, edx
div edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea edx, [eax + eax*4]
shl edx, 1
sub ecx, edx
cmp ecx, 6
jb 0x406cc0
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x4c]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret