Function at 0x406a81
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.00426f90
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x406ac5
jmp 0x406c5c
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 0x406b06
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 0x406b1e
lea eax, [ebp - 0x2c]
push eax
call esi
rdtsc
mov dword [ebp - 0x24], eax
jmp 0x406b06
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 0x406b48
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 0x406b31
cmp dword [ebp - 0x18], ebx
je 0x406b59
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 0x406b9e
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 0x406bb3
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 0x406ac2
cmp dword [ebp - 4], 0x14
jge 0x406c13
lea eax, [ebx + ebx*2]
sub eax, esi
push eax
call fcn.00427a48
cmp eax, 3
pop ecx
jg 0x406ac2
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax*2]
sub eax, esi
push eax
call fcn.00427a48
cmp eax, 3
pop ecx
jg 0x406ac2
mov eax, dword [ebp - 0x1c]
lea eax, [eax + eax*2]
sub eax, esi
push eax
call fcn.00427a48
cmp eax, 3
pop ecx
jg 0x406ac2
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 0x406c3a
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 0x406c56
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