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

Disassembly:
fld dword [0x43e120]
fcomp dword [0x42e7f4]
sub esp, 0x30
push ebx
push ebp
fnstsw ax
and eax, 0x4100
jne 0x4140b6
fld dword [0x43e120]
pop ebp
pop ebx
add esp, 0x30
ret
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 0x4140d9
fld dword [0x42e7f4]
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 pe_nt_image_headers32
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 0x414146
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, 0x2710
jb 0x414172
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 0x4141ed
inc edi
mov eax, esi
xor edx, edx
div edi
shr edi, 1
cmp edx, edi
mov ebx, eax
jbe 0x4141fc
inc ebx
mov eax, dword [esp + 0x14]
lea esi, [eax + ebp]
mov eax, dword [esp + 0x10]
add esi, ebx
cmp eax, 3
jl 0x41411a
cmp eax, 0x14
jge 0x414255
lea eax, [ebx + ebx*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x41411a
lea eax, [ebp + ebp*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x41411a
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x41411a
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 0x414272
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 [0x42e7f0]
fst dword [0x43e120]
add esp, 0x30
ret