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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x16
push 0
push 0
dec ecx
jne 0x4ae9cc
push ebx
push esi
push edi
mov esi, eax
mov ecx, 5
lea eax, [ebp - 0x78]
mov edx, dword [0x401164]
call fcn.00405654
xor eax, eax
push ebp
push 0x4aee3e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [esi + 0x318]
call fcn.00404e74
test eax, eax
je 0x4aed9b
mov eax, dword [esi + 0x314]
call fcn.00404e74
test eax, eax
je 0x4aed9b
mov eax, dword [esi + 0x314]
call fcn.0045eb60
xor eax, eax
push ebp
push 0x4aed91
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x7c]
mov eax, 0x4aee58
call fcn.00470d8c
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x28]
call fcn.00415f60
lea eax, [ebp - 4]
lea edx, [ebp - 0x28]
call fcn.00415b80
cmp dword [ebp - 4], 0
je 0x4aed87
lea eax, [ebp - 8]
call fcn.004069b4
push eax
push 0x4aee78
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax]
call fcn.0041ab64
test al, al
je 0x4aed87
push 0x12c
push 0x4aee88
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0x10
push 0x12c
push 0x4aee94
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0x10
mov eax, dword [0x4bd1d0]
mov eax, dword [eax]
call fcn.0044145c
sub eax, 0x12c
sar eax, 1
jns 0x4aead2
adc eax, 0
push eax
push 0x4aeea0
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0x10
mov eax, dword [0x4bd1d0]
mov eax, dword [eax]
call fcn.00441468
sub eax, 0x12c
sar eax, 1
jns 0x4aeafe
adc eax, 0
push eax
push 0x4aeea8
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0x10
push 0
push 0x4aeeb4
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0x10
push 0
push 0x4aeec4
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0x10
push 0
push 0x4aeed4
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0x10
push 0
push 0x4aeee0
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0x10
push 0xffffffffffffffff
push 0x4aeeec
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0x10
push 0
push 0x4aeef8
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0x10
lea eax, [ebp - 0x78]
mov edx, dword [esi + 0x314]
call fcn.00415f8c
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xd0]
call fcn.00406ac4
call sub.kernel32.dll_GetTickCount_1
mov edi, eax
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xe0]
call fcn.00406ac4
cmp dword [ebp - 0x80], 4
jne 0x4aec21
lea eax, [ebp - 0xc]
call fcn.004069b4
push eax
push 0x4aef04
lea eax, [ebp - 0x84]
call fcn.004069b4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x48]
call fcn.00406ac4
mov eax, dword [ebp - 0x84]
push eax
mov eax, dword [eax]
call dword [eax]
call fcn.0041ab64
test al, al
jne 0x4aec38
push 0x64
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
sub eax, edi
cmp eax, 0x2710
jbe 0x4aebca
mov bl, 1
test bl, bl
jne 0x4aed74
lea eax, [ebp - 0x10]
call fcn.004069b4
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
call fcn.00406ac4
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
call fcn.00406ac4
mov ebx, dword [ebp - 0x80]
dec ebx
test ebx, ebx
jl 0x4aed74
inc ebx
xor edi, edi
lea eax, [ebp - 0x14]
call fcn.004069b4
push eax
push 0x4aef14
lea eax, [ebp - 0x88]
call fcn.004069b4
push eax
lea eax, [ebp - 0x98]
xor edx, edx
mov cl, 1
call fcn.00415c88
push dword [ebp - 0x8c]
push dword [ebp - 0x90]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
lea eax, [ebp - 0xa8]
mov edx, edi
mov cl, 0xfc
call fcn.00415c88
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
call fcn.00406ac4
mov eax, dword [ebp - 0x88]
push eax
mov eax, dword [eax]
call dword [eax]
call fcn.0041ab64
test al, al
je 0x4aed6c
lea eax, [ebp - 0xb0]
call fcn.004052fc
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
call fcn.00406ac4
mov edx, dword [ebp - 0xb0]
lea eax, [ebp - 0xac]
call fcn.00404e3c
mov eax, dword [ebp - 0xac]
mov edx, dword [esi + 0x318]
call fcn.00409410
test al, al
je 0x4aed65
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, 0x4aef24
call fcn.004069f8
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [eax]
call dword [eax + 0x114]
call fcn.00406ac4
jmp 0x4aed74
push 1
call sub.kernel32.dll_Sleep_1
inc edi
dec ebx
jne 0x4aec78
push 0x4aef34
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.00411734
add esp, 0xc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4aed9b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aee48
lea eax, [ebp - 0xb0]
call fcn.004052fc
lea eax, [ebp - 0xac]
call fcn.00404bb4
lea eax, [ebp - 0xa8]
mov edx, dword [0x401164]
mov ecx, 2
call fcn.00405740
lea eax, [ebp - 0x88]
mov edx, dword [0x401230]
mov ecx, 2
call fcn.00405740
lea eax, [ebp - 0x7c]
call fcn.004069b4
lea eax, [ebp - 0x78]
mov ecx, 5
mov edx, dword [0x401164]
call fcn.00405740
lea eax, [ebp - 0x28]
call fcn.0041172c
lea eax, [ebp - 0x18]
call fcn.004069b4
lea eax, [ebp - 0x14]
call fcn.004069b4
lea eax, [ebp - 0x10]
call fcn.004069b4
lea eax, [ebp - 0xc]
call fcn.004069b4
lea eax, [ebp - 8]
call fcn.004069b4
lea eax, [ebp - 4]
call fcn.004069b4
ret