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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
mov dword [ebp - 4], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
xor eax, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call sub.KERNEL32.DLL_GetCurrentThread
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x20]
push eax
call sub.KERNEL32.DLL_QueryPerformanceFrequency
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4a091a
jmp 0x4a0721
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
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 - 0x7c]
push eax
call sub.KERNEL32.DLL_GetThreadPriority
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0x7fffffff
je 0x4a05af
push 0xf
mov eax, dword [ebp - 0x7c]
push eax
call sub.KERNEL32.DLL_SetThreadPriority
xor eax, eax
push ebp
push 0x4a064f
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4a05d3
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_QueryPerformanceCounter
call fcn.004a0400
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x4a05eb
cmp eax, 0x32
jb 0x4a05bf
jmp 0x4a05ed
jl 0x4a05bf
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4a060f
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_QueryPerformanceCounter
call fcn.004a0400
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
cmp edx, 0
jne 0x4a0629
cmp eax, 0x3e8
jb 0x4a05fb
jmp 0x4a062b
jl 0x4a05fb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0656
cmp dword [ebp - 0x78], 0x7fffffff
je 0x4a064e
mov eax, dword [ebp - 0x78]
push eax
mov eax, dword [ebp - 0x7c]
push eax
call sub.KERNEL32.DLL_SetThreadPriority
ret
cmp dword [ebp - 0x74], 3
jl 0x4a055f
cmp dword [ebp - 0x74], 0x14
jge 0x4a07e0
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, 3
xor edx, edx
call fcn.00405a60
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x3c]
test edx, edx
jge 0x4a0758
neg eax
adc edx, 0
neg edx
cmp edx, 0
jne 0x4a0768
cmp eax, 3
ja 0x4a055f
jmp 0x4a076e
jg 0x4a055f
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov eax, 3
xor edx, edx
call fcn.00405a60
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x3c]
test edx, edx
jge 0x4a0791
neg eax
adc edx, 0
neg edx
cmp edx, 0
jne 0x4a07a1
cmp eax, 3
ja 0x4a055f
jmp 0x4a07a7
jg 0x4a055f
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov eax, 3
xor edx, edx
call fcn.00405a60
sub eax, dword [ebp - 0x40]
sbb edx, dword [ebp - 0x3c]
test edx, edx
jge 0x4a07ca
neg eax
adc edx, 0
neg edx
cmp edx, 0
jne 0x4a07da
cmp eax, 3
ja 0x4a055f
jmp 0x4a07e0
jg 0x4a055f
fld qword [ebp - 0x68]
fcomp dword [0x4a0928]
fnstsw ax
sahf
jne 0x4a0815
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], 0x7fffffff
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x2c], 0x7fffffff
mov eax, dword [ebp - 4]
mov dword [eax], 0xffffffff
jmp 0x4a087d
push 0
push 0xa
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.00405a60
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
fild qword [ebp - 0x84]
fdiv qword [ebp - 0x68]
call fcn.00403374
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
push 0
push 0x64
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
call fcn.00405a60
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], edx
fild qword [ebp - 0x84]
fdiv qword [ebp - 0x68]
call fcn.00403374
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
fild qword [ebp - 0x48]
fdiv qword [ebp - 0x68]
call fcn.00403374
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
push edx
push eax
push 0
push 0xa
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
call fcn.00405a60
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4a08b4
cmp eax, 6
jb 0x4a08be
jmp 0x4a08b6
jl 0x4a08be
add dword [ebp - 0x38], 1
adc dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add eax, eax
lea eax, [eax + eax*4]
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
sub eax, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
cmp edx, 0
jne 0x4a08e8
cmp eax, 6
jb 0x4a08f0
jmp 0x4a08ea
jl 0x4a08f0
mov eax, dword [ebp - 4]
inc dword [eax + 4]
fld qword [ebp - 0x68]
call fcn.00403374
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x48]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004a044c
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov al, 1
mov esp, ebp
pop ebp
ret