Function at 0x4ae9ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4aec61
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4aebf0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004aed78
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 9]
dec eax
test eax, eax
jl 0x4aeafa
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov edx, dword [eax + edx*4 + 0x41]
test edx, edx
je 0x4aeaee
jmp 0x4aeac5
mov eax, dword [edx + 0xd]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [edx + 0xd], eax
xor eax, eax
mov dword [edx + 0x11], eax
cmp dword [ebp - 0xc], 0
je 0x4aea46
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov dword [eax + 0x11], ecx
xor eax, eax
push ebp
push 0x4aea6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edx
mov edx, 0x15
call fcn.00402888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aeaad
mov edx, dword [ebp - 0xc]
test edx, edx
jne 0x4aeac5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov dword [eax + ecx*4 + 0x40039], ebx
jmp 0x4aead3
fld qword [edx]
fcomp qword [ebp + 8]
fnstsw ax
sahf
jb 0x4aea28
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + ecx*4 + 0x41], edx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8003a]
cmp eax, dword [ebp - 0x14]
jl 0x4aeafa
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x4aea11
mov eax, dword [ebp - 4]
call fcn.004aed98
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x64
jge 0x4aeb55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8003a]
cmp eax, dword [ebp - 0x14]
jge 0x4aeb55
mov eax, dword [ebp - 4]
imul eax, dword [eax + 0x8003a], 0xb
mov ecx, 0xa
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x8003a], ecx
cmp ecx, 0x186a0
jle 0x4aeb92
mov eax, dword [ebp - 4]
mov dword [eax + 0x8003a], 0x186a0
jmp 0x4aeb92
cmp dword [ebp - 0x10], 0xc8
jle 0x4aeb92
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8003a]
lea eax, [eax + eax*8]
mov ecx, 0xa
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x8003a], ecx
cmp ecx, 0x1f4
jge 0x4aeb92
mov eax, dword [ebp - 4]
mov dword [eax + 0x8003a], 0x1f4
push 0x4aecb0
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8003a]
call fcn.0040c4b0
push dword [ebp - 0x20]
push 0x4aece8
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.0040c4b0
push dword [ebp - 0x24]
push 0x4aed00
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x14]
call fcn.0040c4b0
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404204
mov eax, dword [ebp - 0x1c]
call fcn.00459924
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aec46
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aec68
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.00403eec
ret