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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4af00d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x534350], 0
je 0x4aeff2
mov eax, dword [0x534350]
movzx eax, word [eax + 0x62]
mov dword [ebp - 0x10], eax
mov eax, dword [0x534350]
movzx eax, word [eax + 0x64]
mov dword [ebp - 0xc], eax
cmp byte [0x54e03f], 1
jne 0x4aee66
mov eax, dword [0x534350]
cmp byte [eax + 0x12], 2
jne 0x4aee66
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
mov eax, dword [0x54dfc8]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4aeddb
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4aee66
jmp 0x4aede3
pop edx
pop eax
jl 0x4aee66
call fcn.00406bb0
sub eax, dword [0x535cf0]
imul edx, dword [0x54dfcc], 0x3e8
cmp eax, edx
jbe 0x4aee66
mov eax, dword [0x535cec]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4aee66
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov eax, dword [0x535cec]
call fcn.00418734
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp word [eax + 8], 2
jne 0x4aee5e
mov eax, dword [0x534350]
movzx eax, word [eax + 0xa]
push eax
push 2
push 0
mov eax, dword [0x534350]
movzx ecx, word [eax + 8]
mov edx, 0xbc9
mov eax, dword [ebp - 4]
call fcn.004b3aa0
call fcn.00406bb0
mov dword [0x535cf0], eax
jmp 0x4aee66
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x4aee14
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x54d859], 0
je 0x4aef08
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
imul eax, dword [ebp - 8], 0x2b
mov eax, dword [eax + 0x54d880]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4aee9c
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4aef08
jmp 0x4aeea0
pop edx
pop eax
jl 0x4aef08
imul eax, dword [ebp - 8], 0x2b
cmp dword [eax + 0x54d884], 2
jae 0x4aeebb
imul eax, dword [ebp - 8], 0x2b
mov dword [eax + 0x54d884], 2
call fcn.00406bb0
imul edx, dword [ebp - 8], 0x2b
sub eax, dword [edx + 0x54d888]
imul edx, dword [ebp - 8], 0x2b
imul edx, dword [edx + 0x54d884], 0x3e8
cmp eax, edx
jbe 0x4aef08
lea eax, [ebp - 0x1c]
imul edx, dword [ebp - 8], 0x2b
add edx, 0x54d861
call fcn.004048e8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004aebbc
call fcn.00406bb0
imul edx, dword [ebp - 8], 0x2b
mov dword [edx + 0x54d888], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 5
jne 0x4aee6b
mov dword [ebp - 8], 5
mov eax, dword [ebp - 8]
cmp byte [eax + 0x54d859], 0
je 0x4aef9a
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
imul eax, dword [ebp - 8], 0x2b
mov eax, dword [eax + 0x54d880]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4aef49
cmp eax, dword [esp]
pop edx
pop eax
jb 0x4aef9a
jmp 0x4aef4d
pop edx
pop eax
jl 0x4aef9a
call fcn.00406bb0
imul edx, dword [ebp - 8], 0x2b
sub eax, dword [edx + 0x54d888]
imul edx, dword [ebp - 8], 0x2b
imul edx, dword [edx + 0x54d884], 0x3e8
cmp eax, edx
jbe 0x4aef9a
lea eax, [ebp - 0x20]
imul edx, dword [ebp - 8], 0x2b
add edx, 0x54d861
call fcn.004048e8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004aebbc
call fcn.00406bb0
imul edx, dword [ebp - 8], 0x2b
mov dword [edx + 0x54d888], eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 7
jne 0x4aef1c
cmp byte [0x54d860], 0
je 0x4aeff2
cmp byte [0x54daf6], 1
jae 0x4aefc0
mov byte [0x54daf6], 2
movzx eax, word [0x5343d8]
xor edx, edx
mov dl, byte [0x54daf6]
inc edx
imul edx, edx, 0x3e8
cmp eax, edx
ja 0x4aeff2
lea eax, [ebp - 0x24]
mov edx, 0x54db9b
call fcn.004048e8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004aebbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af014
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004046a8
ret