Function at 0x470998
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 0x470adc
mov eax, dword [ebp - 0x40]
jmp 0x470be6
inc dword [ebp - 0x30]
mov dword [ebp - 0x24], esi
mov esi, ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
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 0x470a2b
push 0xf
mov eax, dword [ebp - 0x34]
push eax
call sub.kernel32.dll_SetThreadPriority
jmp 0x470a2b
lea eax, [ebp - 0x18]
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 - 0x18]
sub eax, dword [ebp - 0x10]
cmp eax, 0x32
jb 0x470a19
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x470a56
lea eax, [ebp - 0x18]
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 - 0x18]
sub eax, dword [ebp - 0x10]
cmp eax, 0x3e8
jb 0x470a44
cmp ebx, 0x7fffffff
je 0x470a75
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 [0x470bf0]
fdivp st(1)
call fcn.00402bac
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.00402bac
mov ebx, eax
lea edi, [esi + ebx]
add edi, dword [ebp - 0x24]
cmp dword [ebp - 0x30], 3
jl 0x4709dc
cmp dword [ebp - 0x30], 0x14
jge 0x470b28
lea eax, [ebx + ebx*2]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4709dc
lea eax, [esi + esi*2]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4709dc
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*2]
sub eax, edi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x4709dc
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.00402bac
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.00402bac
mov esi, eax
mov eax, dword [ebp - 0x24]
add eax, eax
lea eax, [eax + eax*4]
sub esi, eax
cmp esi, 6
jl 0x470b8b
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.00402bac
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 0x470bcb
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.0047091c
mov ebx, eax
mov dword [ebp - 0x40], ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret