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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.004aa9be
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4aa9ae
cmp dword [ebp + 0xc], 3
jne 0x4aa739
call fcn.004aaa5e
mov dword [0x7e3f57], 0
jmp 0x4aa953
cmp dword [ebp + 0xc], 1
jne 0x4aa879
mov ebx, dword [0x7e3f4b]
call fcn.004806d1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x4aa763
push 4
call fcn.006c4869
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4aa776
push 1
call fcn.006c4869
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x4aa7e1
mov eax, dword [ebp + 0x10]
cmp dword [0x7e3f5b], eax
jne 0x4aa7a8
mov eax, 0
jmp 0x4aa9b8
mov eax, dword [ebp + 0x10]
mov dword [0x7e3f5b], eax
call fcn.004aaa5e
mov eax, dword [ebp - 4]
mov dword [0x7e3f57], eax
mov eax, dword [ebp + 8]
mov dword [0x7e3f5f], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x7e3f63], eax
jmp 0x4aa874
mov ebx, dword [0x7e3f4b]
call fcn.004806d1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x4aa801
push 4
call fcn.006c4869
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4aa814
push 1
call fcn.006c4869
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 2
jne 0x4aa874
mov eax, dword [ebp + 0x10]
cmp dword [0x7e3f5b], eax
jne 0x4aa846
mov eax, 0
jmp 0x4aa9b8
mov eax, dword [ebp + 0x10]
mov dword [0x7e3f5b], eax
cmp dword [0x7e3f67], 0
je 0x4aa874
call fcn.004aaa5e
mov dword [0x7e3f57], 0
mov dword [0x7e3f5f], 0
jmp 0x4aa953
cmp dword [ebp + 0xc], 2
jne 0x4aa953
mov ebx, dword [0x7e3f4b]
call fcn.004806d1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x4aa8a3
push 4
call fcn.006c4869
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4aa8b6
push 1
call fcn.006c4869
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 1
je 0x4aa91f
mov ebx, dword [0x7e3f4b]
call fcn.004806d1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x4aa8ef
push 4
call fcn.006c4869
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4aa902
push 1
call fcn.006c4869
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
je 0x4aa91f
xor eax, eax
jmp 0x4aa924
mov eax, 1
test eax, eax
je 0x4aa953
mov eax, dword [ebp - 4]
mov dword [0x7e3f57], eax
mov eax, dword [ebp + 8]
mov dword [0x7e3f5f], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x7e3f63], eax
mov ebx, dword [0x7e3f4b]
call fcn.004806d1
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x4aa973
push 4
call fcn.006c4869
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x4aa986
push 1
call fcn.006c4869
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ebx, dword [ebp - 8]
push dword [ebx]
call fcn.00487164
jmp 0x4aa9b8
mov eax, 0
jmp 0x4aa9b8
mov esp, ebp
pop ebp
ret 0x10