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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
xor ebx, ebx
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor edi, edi
call sub.kernel32.dll_GetCurrentThread
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x38]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
test eax, eax
jne 0x46bf96
mov eax, dword [ebp - 0xc]
mov edi, eax
lea esi, [ebp - 0x50]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
jmp 0x46c0a0
inc dword [ebp - 0x3c]
mov dword [ebp - 0x24], esi
mov esi, ebx
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_GetThreadPriority
mov ebx, eax
cmp ebx, 0x7fffffff
je 0x46bed2
push 0xf
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_SetThreadPriority
jmp 0x46bed2
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
push eax
push edx
rdtsc
mov dword [ebp - 4], eax
pop edx
pop eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
cmp edx, 0
jne 0x46beea
cmp eax, 0x32
jb 0x46bec0
jmp 0x46beec
jl 0x46bec0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x46bf0c
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
push eax
push edx
rdtsc
mov dword [ebp - 8], eax
pop edx
pop eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x18]
sbb edx, dword [ebp - 0x14]
cmp edx, 0
jne 0x46bf26
cmp eax, 0x3e8
jb 0x46befa
jmp 0x46bf28
jl 0x46befa
cmp ebx, 0x7fffffff
je 0x46bf3a
push ebx
mov eax, dword [ebp - 0x40]
push eax
call sub.kernel32.dll_SetThreadPriority
mov edi, dword [ebp - 8]
sub edi, dword [ebp - 4]
mov ebx, dword [ebp - 0x20]
sub ebx, dword [ebp - 0x18]
imul eax, ebx, 0x186a0
mov ebx, eax
mov dword [ebp - 0x58], ebx
xor eax, eax
mov dword [ebp - 0x54], eax
fild qword [ebp - 0x58]
fild qword [ebp - 0x38]
fdiv dword [0x46c0a8]
fdivp st(1)
call fcn.004029d4
mov ebx, eax
add dword [ebp - 0x2c], ebx
add dword [ebp - 0x28], edi
mov dword [ebp - 0x58], edi
xor eax, eax
mov dword [ebp - 0x54], eax
fild qword [ebp - 0x58]
mov dword [ebp - 0x60], ebx
xor eax, eax
mov dword [ebp - 0x5c], eax
fild qword [ebp - 0x60]
fdivp st(1)
call fcn.004029d4
mov ebx, eax
lea edi, [esi + ebx]
add edi, dword [ebp - 0x24]
cmp dword [ebp - 0x3c], 3
jl 0x46be83
cmp dword [ebp - 0x3c], 0x14
jge 0x46bfe2
lea eax, [ebx + ebx*2]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x46be83
lea eax, [esi + esi*2]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x46be83
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*2]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x46be83
mov eax, dword [ebp - 0x28]
add eax, eax
lea eax, [eax + eax*4]
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x54], eax
fild qword [ebp - 0x58]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
fild qword [ebp - 0x60]
fdivp st(1)
call fcn.004029d4
mov dword [ebp - 0x24], eax
imul eax, dword [ebp - 0x28], 0x64
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x54], eax
fild qword [ebp - 0x58]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
fild qword [ebp - 0x60]
fdivp st(1)
call fcn.004029d4
mov esi, eax
mov eax, dword [ebp - 0x24]
add eax, eax
lea eax, [eax + eax*4]
sub esi, eax
cmp esi, 6
jb 0x46c045
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x54], eax
fild qword [ebp - 0x58]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
fild qword [ebp - 0x60]
fdivp st(1)
call fcn.004029d4
mov ebx, eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x50]
add ebx, ebx
lea ebx, [ebx + ebx*4]
mov eax, dword [ebp - 0x24]
sub eax, ebx
cmp eax, 6
jb 0x46c085
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc]
mov edi, eax
lea esi, [ebp - 0x50]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret