Function at 0x47309c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x4c], eax
xor esi, esi
call sub.KERNEL32.DLL_GetCurrentThread
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_QueryPerformanceFrequency
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x47337e
jmp 0x473253
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 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 - 0x58]
push eax
call sub.KERNEL32.DLL_GetThreadPriority
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x7fffffff
je 0x47314e
push 0xf
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_SetThreadPriority
xor eax, eax
push ebp
push 0x4731d0
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x473172
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_QueryPerformanceCounter
call fcn.00472fc4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
cmp eax, 0x32
jb 0x47315e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x47319f
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_QueryPerformanceCounter
call fcn.00472fc4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
cmp eax, 0x3e8
jb 0x47318b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4731d7
cmp dword [ebp - 0x54], 0x7fffffff
je 0x4731cf
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_SetThreadPriority
ret
cmp dword [ebp - 0x50], 3
jl 0x47310d
cmp dword [ebp - 0x50], 0x14
jge 0x4732a2
lea eax, [ebx + ebx*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x47310d
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x47310d
mov eax, dword [ebp - 0x28]
lea eax, [eax + eax*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x47310d
push 0
push 0xa
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.00405b94
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
fild qword [ebp - 0x60]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x64], eax
fild qword [ebp - 0x68]
fdivp st(1)
call fcn.00402c48
mov dword [ebp - 0x28], eax
push 0
push 0x64
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.00405b94
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
fild qword [ebp - 0x60]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x64], eax
fild qword [ebp - 0x68]
fdivp st(1)
call fcn.00402c48
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x24]
sub edx, eax
cmp edx, 6
jl 0x473317
inc dword [ebp - 0x28]
fild qword [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
fild qword [ebp - 0x60]
fdivp st(1)
call fcn.00402c48
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
add ebx, ebx
lea ebx, [ebx + ebx*4]
mov eax, dword [ebp - 0x28]
sub eax, ebx
cmp eax, 6
jl 0x473359
mov eax, dword [ebp - 4]
inc dword [eax + 4]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x4c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00473024
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret