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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x38]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
jne 0x404b7b
mov eax, dword [ebp + 8]
mov ecx, esi
mov edx, eax
pop edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x28]
inc esi
push eax
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], ebx
call esi
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
push edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebx, eax
cmp ebx, 0x7fffffff
je 0x404bbd
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x32
jae 0x404be6
lea edx, [ebp - 0x30]
push edx
call esi
rdtsc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x28]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x32
jb 0x404bcc
mov edx, dword [ebp - 0x2c]
mov ecx, eax
mov dword [ebp - 0x24], edx
xor edx, edx
cmp edx, 0x3e8
mov dword [ebp - 0x28], ecx
jae 0x404c18
lea eax, [ebp - 0x30]
push eax
call esi
rdtsc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x28]
mov edx, eax
sub edx, ecx
cmp edx, 0x3e8
jb 0x404bfb
cmp ebx, 0x7fffffff
je 0x404c2e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
lea eax, [eax + eax*4]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
lea eax, [eax + eax*4]
sub esi, edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 5
mov edi, eax
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0xcccccccd
shl ecx, 5
sub edi, ecx
mov ecx, dword [ebp - 0x38]
mul ecx
mov ebx, edx
mov eax, edi
shr ebx, 3
xor edx, edx
div ebx
mov edx, dword [ebp - 0x10]
mov edi, eax
mov eax, dword [ebp - 0xc]
add edx, edi
add eax, esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov eax, edi
xor edx, edx
div ecx
shr ecx, 1
cmp edx, ecx
jbe 0x404c92
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 0x404ca7
inc ebx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax]
mov eax, dword [ebp - 4]
add ecx, ebx
cmp eax, 3
jl 0x404b78
cmp eax, 0x14
jge 0x404d02
lea eax, [ebx + ebx*2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x404b78
mov eax, dword [ebp - 8]
lea eax, [eax + eax*2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x404b78
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x404b78
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor edx, edx
lea eax, [esi + esi*4]
shl eax, 1
div edi
xor edx, edx
mov ecx, eax
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
shl eax, 2
div edi
lea edx, [ecx + ecx*4]
shl edx, 1
sub eax, edx
cmp eax, 6
jb 0x404d2d
inc ecx
mov eax, esi
xor edx, edx
div edi
mov edx, eax
lea ebx, [eax + eax*4]
shl ebx, 1
sub ecx, ebx
cmp ecx, 6
jb 0x404d44
lea edx, [eax + 1]
mov ecx, dword [ebp + 8]
mov ebx, ecx
mov dword [ebx], esi
mov dword [ebx + 4], edi
pop edi
pop esi
mov dword [ebx + 8], eax
mov eax, ecx
mov dword [ebx + 0xc], edx
pop ebx
mov esp, ebp
pop ebp
ret