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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x30], 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 - 0x34], eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
test eax, eax
jne 0x516344
mov eax, dword [ebp - 0x40]
jmp 0x51644e
inc dword [ebp - 0x30]
mov dword [ebp - 0x24], esi
mov esi, ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_GetThreadPriority
mov ebx, eax
cmp ebx, 0x7fffffff
je 0x516293
push 0xf
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_SetThreadPriority
jmp 0x516293
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
push eax
push edx
rdtsc
mov dword [ebp - 4], eax
pop edx
pop eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
cmp eax, 0x32
jb 0x516281
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x5162be
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
push eax
push edx
rdtsc
mov dword [ebp - 8], eax
pop edx
pop eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
cmp eax, 0x3e8
jb 0x5162ac
cmp ebx, 0x7fffffff
je 0x5162dd
push ebx
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_SetThreadPriority
mov edi, dword [ebp - 8]
sub edi, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x10]
imul eax, ebx, 0x186a0
mov ebx, eax
mov dword [ebp - 0x4c], ebx
xor eax, eax
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fdiv dword [0x516458]
fdivp st(1)
call fcn.00402c5c
mov ebx, eax
add dword [ebp - 0x2c], ebx
add dword [ebp - 0x28], edi
mov dword [ebp - 0x4c], edi
xor eax, eax
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
mov dword [ebp - 0x54], ebx
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fdivp st(1)
call fcn.00402c5c
mov ebx, eax
lea edi, [esi + ebx]
add edi, dword [ebp - 0x24]
cmp dword [ebp - 0x30], 3
jl 0x516244
cmp dword [ebp - 0x30], 0x14
jge 0x516390
lea eax, [ebx + ebx*2]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x516244
lea eax, [esi + esi*2]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x516244
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*2]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x516244
mov eax, dword [ebp - 0x28]
add eax, eax
lea eax, [eax + eax*4]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fdivp st(1)
call fcn.00402c5c
mov dword [ebp - 0x24], eax
imul eax, dword [ebp - 0x28], 0x64
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fdivp st(1)
call fcn.00402c5c
mov esi, eax
mov eax, dword [ebp - 0x24]
add eax, eax
lea eax, [eax + eax*4]
sub esi, eax
cmp esi, 6
jl 0x5163f3
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fdivp st(1)
call fcn.00402c5c
mov ebx, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0x44]
add ebx, ebx
lea ebx, [ebx + ebx*4]
mov eax, dword [ebp - 0x24]
sub eax, ebx
cmp eax, 6
jl 0x516433
inc dword [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
call fcn.00516184
mov ebx, eax
mov dword [ebp - 0x40], ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret