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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x6af325
xchg dword [ebp - 4], ecx
push ebx
push esi
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b5b0
xor eax, eax
push ebp
push 0x6af5b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x10], 0
jne 0x6af372
mov byte [esi + 0xc], 0
lea eax, [esi + 8]
mov edx, 0x6af5d4
call fcn.0040b8ac
jmp 0x6af58f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
add eax, 0x28
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0xc]
call fcn.0040b8ac
mov eax, dword [ebp - 0xc]
cmp byte [eax + 4], 1
je 0x6af3a2
mov eax, dword [ebp - 0xc]
cmp byte [eax + 4], 0
jne 0x6af39e
cmp byte [ebp - 0xd], 2
je 0x6af3a2
xor ebx, ebx
jmp 0x6af3a4
mov bl, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040b8f4
movzx eax, byte [ebp - 0xd]
sub al, 1
jb 0x6af3bf
je 0x6af3d1
dec al
je 0x6af3e3
jmp 0x6af3f3
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x6af618
call fcn.0040c59c
jmp 0x6af3f3
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x6af634
call fcn.0040c59c
jmp 0x6af3f3
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x6af650
call fcn.0040c59c
mov byte [esi + 0xc], bl
lea eax, [esi + 0x10]
mov edx, dword [ebp - 8]
call fcn.004422b0
test bl, bl
je 0x6af58f
mov ebx, 0xea60
xor eax, eax
push ebp
push 0x6af588
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
add eax, 0x30c
push eax
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 8]
call fcn.0040c6d4
jne 0x6af47e
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0xc]
sub eax, dword [edx + 0x2c]
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
cmp edx, dword [esp + 4]
jne 0x6af45e
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x6af47e
jmp 0x6af462
pop edx
pop eax
jle 0x6af47e
mov eax, dword [ebp - 0xc]
inc dword [eax + 0x30]
mov byte [esi + 0xc], 1
lea eax, [esi + 8]
call fcn.0040b4bc
call fcn.0040ac2c
jmp 0x6af58f
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 1
jle 0x6af4ed
call fcn.0042b49c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x18]
push eax
mov cl, 1
mov dl, 1
xor eax, eax
call fcn.006ada84
push dword [ebp - 0x18]
push 0x6af66c
mov eax, dword [ebp - 0xc]
push dword [eax + 0x28]
push 0x6af67c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
dec eax
call fcn.00427f48
push dword [ebp - 0x1c]
push 0x6af690
lea eax, [ebp - 0x14]
mov edx, 6
call fcn.0040c624
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x308]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 8]
call fcn.0040c6d4
je 0x6af567
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 1
mov eax, dword [ebp - 0xc]
add eax, 0x28
mov edx, dword [ebp - 8]
call fcn.0040b8ac
call fcn.0042b49c
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x24]
push eax
mov cl, 1
mov dl, 1
xor eax, eax
call fcn.006ada84
push dword [ebp - 0x24]
push 0x6af66c
push dword [ebp - 8]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040c624
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x308]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6af58f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
add eax, 0x30c
push eax
call sub.kernel32.dll_LeaveCriticalSection
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6af5c0
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.0040b51c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b51c
pop eax
jmp eax