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

Disassembly:
push 0x84
mov eax, 0x5837d8
call fcn.0055ddbc
mov esi, ecx
xor edi, edi
cmp dword [esi + 0xe], edi
je 0x4aad52
call fcn.004a512c
mov eax, dword [esi + 0x8fc]
lea ebx, [esi + 0x904]
imul eax, dword [esi + 0x900]
xor edx, edx
push 0x64
pop ecx
mov dword [ebp - 0x8c], ecx
div ecx
shl eax, 0x18
or eax, dword [esi + 0x8f8]
push eax
push ebx
push ecx
and dword [esp], edi
lea ecx, [esi + 0x986]
push edi
push edi
call fcn.004a88bd
movss xmm0, dword [ebx]
movss dword [0x6a66f4], xmm0
movzx eax, word [esi + 0x9a6]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esi + 0x908]
movss dword [0x6a66f8], xmm0
cmp byte [esi + 0x9ec], 0
jbe 0x4aa908
lea ecx, [esi + 0x9a8]
mov eax, dword [esi + 0x8fc]
xor edx, edx
imul eax, dword [esi + 0x900]
div dword [ebp - 0x8c]
shl eax, 0x18
or eax, dword [esi + 0x8f8]
push eax
push 0x6a66f4
push ecx
and dword [esp], 0
push 0
push 0
call fcn.004a88bd
movzx eax, word [esi + 0x9c8]
lea ecx, [esi + 0x9a8]
inc edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x6a66f8]
movss dword [0x6a66f8], xmm0
movzx eax, byte [esi + 0x9ec]
cmp edi, eax
jl 0x4aa8a6
mov eax, dword [esi + 0x8fc]
xor edx, edx
imul eax, dword [esi + 0x900]
xor edi, edi
push 0x64
pop ecx
div ecx
shl eax, 0x18
or eax, dword [esi + 0x8f8]
push eax
push 0x6a66f4
push ecx
and dword [esp], 0
lea ecx, [esi + 0x9ca]
push edi
push edi
call fcn.004a88bd
cmp dword [esi + 0xa13], 0xffffffff
je 0x4aa9db
movss xmm0, dword [ebx]
xor edx, edx
addss xmm0, dword [0x58a7f8]
push 0x64
pop ecx
movss dword [0x6a66f4], xmm0
movd xmm1, dword [esi + 0x97a]
movd xmm0, dword [esi + 0xa13]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm0
movd xmm0, dword [esi + 0x9f3]
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esi + 0x908]
addss xmm1, xmm0
subss xmm1, dword [esi + 0xa43]
movss dword [0x6a66f8], xmm1
mov eax, dword [esi + 0x8fc]
imul eax, dword [esi + 0x900]
div ecx
shl eax, 0x18
or eax, dword [esi + 0x8f8]
push eax
push 0x6a66f4
push ecx
and dword [esp], edi
lea eax, [esi + 0xa3b]
push edi
push eax
lea ecx, [esi + 0xa1b]
call fcn.004a88bd
push dword [esi + 0x982]
lea ecx, [esi + 0x95e]
call fcn.00559740
or dword [ebp - 0x84], 0xffffffff
mov ebx, edi
xor ecx, ecx
mov dword [ebp - 0x88], eax
or edi, 0xffffffff
mov dword [ebp - 0x7c], ecx
test eax, eax
je 0x4aad4b
lea eax, [ebp - 0x88]
push eax
lea ecx, [esi + 0x95e]
call fcn.005598e0
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x97e]
dec eax
cmp edi, eax
jge 0x4aad4b
movzx eax, word [esi + 0x1a]
mov ecx, 0x6a6118
push eax
call fcn.0046369c
test eax, eax
je 0x4aad3e
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x84]
mov eax, dword [ecx + 0x104]
cmp eax, 0xffffffff
je 0x4aaaac
cmp eax, edx
jne 0x4aaa77
mov edx, dword [ebp - 0x7c]
add edx, ebx
add ecx, 4
mov dword [ebp - 0x7c], edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aaa6e
jmp 0x4aaa99
cmp eax, 0xffffffff
je 0x4aaaac
cmp eax, edx
je 0x4aaaac
xor edx, edx
mov dword [ebp - 0x84], eax
inc edi
mov dword [ebp - 0x7c], edx
add ecx, 4
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aaa92
movzx eax, word [esi + 0x1a]
sub ecx, ebx
movzx ebx, word [eax*4 + 0x6a616c]
imul ebx, ecx
jmp 0x4aaab2
xor edx, edx
inc edi
mov dword [ebp - 0x7c], edx
cvttss2si ecx, dword [esi + 0x904]
cvttss2si eax, dword [esi + 0x908]
add edx, ecx
mov ecx, dword [esi + 0x97a]
add edx, dword [esi + 0x9ef]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x38], edx
imul ecx, edi
add ecx, eax
mov eax, dword [esi + 0x9f3]
add eax, ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x80]
add eax, 4
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x90], eax
call fcn.00406217
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004aa5b5
mov eax, dword [esi + 0xa17]
sub eax, dword [esi + 0x982]
cmp eax, edi
jne 0x4aab76
cmp dword [esi + 0xa4b], 1
jne 0x4aab76
push 0xffffff00
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
jmp 0x4aacdd
mov eax, dword [ebp - 0x80]
cmp dword [eax + 0x108], 0
je 0x4aacac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xa57]
cmp eax, 0x1f4
jbe 0x4aabc0
mov eax, dword [esi + 0xa53]
cmp eax, 1
jb 0x4aabad
and dword [esi + 0xa53], 0
jmp 0x4aabb4
inc eax
mov dword [esi + 0xa53], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xa57], eax
mov eax, dword [esi + 0xa53]
lea ecx, [ebp - 0x28]
inc dword [ebp - 0x2c]
inc dword [ebp - 0x30]
inc dword [ebp - 0x38]
push dword [eax*4 + 0x5ce1a0]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
movzx eax, word [esi + 0x1a]
push ecx
push eax
mov ecx, 0x6a6118
call fcn.004a61a5
mov eax, dword [esi + 0xa53]
lea ecx, [ebp - 0x28]
inc dword [ebp - 0x34]
dec dword [ebp - 0x3c]
dec dword [ebp - 0x40]
push dword [eax*4 + 0x5ce1a0]
dec dword [ebp - 0x48]
lea eax, [ebp - 0x48]
cmp dword [ebp - 0x14], 0x10
push eax
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
movzx eax, word [esi + 0x1a]
push ecx
push eax
mov ecx, 0x6a6118
call fcn.004a61a5
mov eax, dword [esi + 0xa53]
lea ecx, [ebp - 0x28]
inc dword [ebp - 0x44]
dec dword [ebp - 0x54]
cmp dword [ebp - 0x14], 0x10
push dword [eax*4 + 0x5ce1a0]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x18]
movzx eax, word [esi + 0x1a]
push ecx
push eax
mov ecx, 0x6a6118
call fcn.004a61a5
mov eax, dword [esi + 0xa53]
lea ecx, [ebp - 0x28]
add dword [ebp - 0x4c], 2
add dword [ebp - 0x54], 2
cmp dword [ebp - 0x14], 0x10
push dword [eax*4 + 0x5ce1a0]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x18]
movzx eax, word [esi + 0x1a]
push ecx
push eax
mov ecx, 0x6a6118
call fcn.004a61a5
push 0xffffff
lea ecx, [ebp - 0x78]
jmp 0x4aab61
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [esi + 0x8fc]
cmovae ecx, dword [ebp - 0x28]
xor edx, edx
imul eax, dword [esi + 0x900]
div dword [ebp - 0x8c]
mov edx, dword [ebp - 0x80]
shl eax, 0x18
or eax, dword [edx]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x18]
push ecx
movzx eax, word [esi + 0x1a]
mov ecx, 0x6a6118
push eax
call fcn.004a61a5
cmp dword [esi + 0xa4f], 0
je 0x4aad2e
cvttss2si eax, dword [esi + 0x908]
mov ecx, dword [esi + 0x97a]
push dword [ebp - 0x90]
imul ecx, edi
add ecx, eax
cvttss2si eax, dword [esi + 0x904]
add ecx, dword [esi + 0x9f3]
push ecx
mov ecx, esi
add eax, dword [ebp - 0x7c]
add eax, dword [esi + 0x9ef]
push eax
call fcn.004aad58
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.004066dd
cmp dword [ebp - 0x88], 0
jne 0x4aaa0b
mov ecx, esi
call fcn.004a50e6
call fcn.0055dd7a
ret