Function at 0x4c2838
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
mov dword [ebp - 0xc], edx
mov ebx, eax
xor esi, esi
xor edi, edi
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x40], eax
xor eax, eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x30], eax
call sub.kernel32.dll_GetCurrentThread
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
test eax, eax
jne 0x4c29ab
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov esi, edx
mov edi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x4c2af2
inc dword [ebp - 0x40]
mov dword [ebp - 0x2c], edi
mov edi, esi
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 - 0x44]
push eax
call sub.kernel32.dll_GetThreadPriority
mov esi, eax
cmp esi, 0x7fffffff
je 0x4c28df
push 0xf
mov eax, dword [ebp - 0x44]
push eax
call sub.kernel32.dll_SetThreadPriority
jmp 0x4c28df
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]
sub eax, dword [ebp - 0x18]
cmp ebx, eax
ja 0x4c28cd
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x4c2909
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]
sub eax, dword [ebp - 0x18]
cmp ebx, eax
ja 0x4c28f7
cmp esi, 0x7fffffff
je 0x4c2925
push esi
mov eax, dword [ebp - 0x44]
push eax
call sub.kernel32.dll_SetThreadPriority
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x20]
sub esi, dword [ebp - 0x18]
imul eax, esi, 0x186a0
mov esi, eax
cmp dword [ebp - 0x28], 0
jbe 0x4c296c
mov dword [ebp - 0x4c], esi
xor eax, eax
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fdiv dword [0x4c2afc]
fdivp st(1)
call fcn.00402e8c
mov esi, eax
jmp 0x4c296e
xor esi, esi
add dword [ebp - 0x3c], esi
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x34], eax
test esi, esi
jne 0x4c2980
mov esi, dword [ebp - 0x38]
jmp 0x4c29a2
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
mov dword [ebp - 0x54], esi
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fdivp st(1)
call fcn.00402e8c
mov esi, eax
lea eax, [edi + esi]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x40], 3
jl 0x4c2890
cmp dword [ebp - 0x40], 0x14
jge 0x4c29fa
lea eax, [esi + esi*2]
sub eax, dword [ebp - 0x30]
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4c2890
lea eax, [edi + edi*2]
sub eax, dword [ebp - 0x30]
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4c2890
mov eax, dword [ebp - 0x2c]
lea eax, [eax + eax*2]
sub eax, dword [ebp - 0x30]
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4c2890
cmp dword [ebp - 0x3c], 0
jbe 0x4c2a84
mov eax, dword [ebp - 0x34]
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 - 0x3c]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fdivp st(1)
call fcn.00402e8c
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fdivp st(1)
fmul dword [0x4c2b00]
call fcn.00402e8c
mov edi, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
fild qword [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
xor eax, eax
mov dword [ebp - 0x50], eax
fild qword [ebp - 0x54]
fdivp st(1)
call fcn.00402e8c
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
jmp 0x4c2a92
xor eax, eax
mov dword [ebp - 0x2c], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 0x2c]
add eax, eax
lea eax, [eax + eax*4]
sub edi, eax
cmp edi, 6
jl 0x4c2aa4
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
add esi, esi
lea esi, [esi + esi*4]
mov eax, dword [ebp - 0x2c]
sub eax, esi
cmp eax, 6
jl 0x4c2ac9
mov eax, dword [ebp - 0xc]
inc dword [eax + 4]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x34]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
call fcn.004c27c0
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret