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

Disassembly:
sub esp, 0x30
push ebx
push ebp
lea eax, [esp + 0x30]
xor ebp, ebp
push eax
xor ebx, ebx
mov dword [esp + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x403748
fld dword [0x40b150]
pop ebp
pop ebx
add esp, 0x30
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [esp + 0x20], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0x100
mov dword [esp + 0x28], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
inc ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x30]
push ecx
mov ebp, ebx
call esi
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x28]
push ecx
call esi
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
sub edx, ecx
cmp edx, 0x32
jb 0x4037b5
rdtsc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x28]
push edx
call esi
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
sub eax, edx
cmp eax, 0x3e8
jb 0x4037e1
rdtsc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea eax, [eax + eax*4]
sub esi, ecx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x30]
shl ecx, 5
lea eax, [eax + eax*4]
mov edi, ecx
mov ecx, dword [esp + 0x38]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, 0xcccccccd
shl edx, 5
sub edi, edx
mul ecx
mov ebx, edx
mov eax, edi
shr ebx, 3
xor edx, edx
div ebx
xor edx, edx
mov edi, eax
div ecx
shr ecx, 1
cmp edx, ecx
jbe 0x40385c
inc edi
mov eax, esi
xor edx, edx
div edi
shr edi, 1
cmp edx, edi
mov ebx, eax
jbe 0x40386b
inc ebx
mov eax, dword [esp + 0x14]
lea esi, [eax + ebp]
mov eax, dword [esp + 0x10]
add esi, ebx
cmp eax, 3
jl 0x403789
cmp eax, 0x14
jge 0x4038c4
lea eax, [ebx + ebx*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x403789
lea eax, [ebp + ebp*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x403789
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x403789
lea ecx, [esi + 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, 0xaaaaaaab
mov edi, edx
mul esi
shr edi, 1
shr edx, 1
cmp edx, edi
je 0x4038e1
mov esi, ecx
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0
fild qword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
fmul dword [0x40b14c]
add esp, 0x30
ret