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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x906980]
push esi
mov esi, ecx
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x94], 2
mov dword [esp + 4], 0
jne 0x84e20b
mov eax, dword [esi + 0x80]
push 0
push 0
push 0x73746174
push eax
call fcn.0084b350
add esp, 0x10
test eax, eax
jle 0x84e20b
mov dword [esi + 0x94], 4
call fcn.0084e090
cmp dword [esi + 0x94], 3
push ebx
push edi
jne 0x84e274
mov eax, dword [esi + 0x80]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x1c], 0x10
call fcn.0084b0b0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x84e274
mov ecx, dword [esi + 0x80]
push ecx
call fcn.0084af40
push fcn.0084e570
push esi
push 0x64
push 2
push edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x48], edi
call fcn.0084b560
add esp, 0x18
mov dword [esi + 0x94], 4
call fcn.0084e090
cmp dword [esi + 0x94], 4
jne 0x84e3ab
mov ecx, dword [esi + 0xa8]
mov eax, dword [esi + 0xa0]
add eax, ecx
cdq
idiv dword [esi + 0xa4]
cmp edx, dword [esi + 0xac]
je 0x84e3ab
mov edi, dword [esi + 0xb0]
add edi, ecx
mov ecx, dword [esi + 0x9c]
mov eax, 2
cmp ecx, eax
lea edx, [ecx + edi + 4]
jl 0x84e2c4
movsx eax, word [edi + 4]
add eax, 2
push 0
push 0
push 0
sub eax, ecx
push eax
push edx
mov edx, dword [esi + 0x80]
push edx
call fcn.0084b1e0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x84e3ab
jl 0x84e3a1
call fcn.0084bcb0
mov ecx, dword [esi + 0x9c]
test ecx, ecx
mov dword [esi + 0xd8], eax
jne 0x84e304
mov dword [edi], eax
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 0x9c]
add eax, ebx
add edx, ebx
mov dword [esp + 0xc], eax
mov eax, edx
cmp eax, 2
mov dword [esi + 0x9c], edx
jl 0x84e392
movsx ecx, word [edi + 4]
add ecx, 2
cmp eax, ecx
jl 0x84e392
mov dword [esi + 0x9c], 0
cmp word [edi + 4], 0
je 0x84e392
mov edx, dword [esi + 0x210]
mov eax, dword [esi + 0xa0]
inc edx
mov dword [esi + 0x210], edx
add eax, dword [esi + 0xa8]
cdq
idiv dword [esi + 0xa4]
mov eax, dword [esi + 0x3c]
test eax, eax
mov dword [esi + 0xa8], edx
je 0x84e37e
mov ecx, dword [edi]
movsx edx, word [edi + 4]
push ecx
push edx
add edi, 6
push edi
push esi
call eax
add esp, 0x10
mov eax, dword [esi + 0x210]
dec eax
mov dword [esi + 0x210], eax
or dword [esi + 0x214], 1
cmp dword [esi + 0x94], 4
je 0x84e281
jmp 0x84e3ab
mov dword [esi + 0x94], 5
mov eax, dword [esi + 0x94]
mov ebx, 4
cmp eax, ebx
jne 0x84e50a
mov eax, dword [esi + 0xb8]
test eax, eax
jge 0x84e41c
mov ecx, dword [esi + 0xc4]
cmp ecx, dword [esi + 0xc8]
jne 0x84e41c
call fcn.0084bcb0
mov edx, dword [esi + 0xd4]
add edx, 0x32
cmp eax, edx
jbe 0x84e41c
mov edi, dword [esi + 0xcc]
add edi, dword [esi + 0xc4]
call fcn.0084bcb0
mov dword [edi], eax
mov word [edi + 4], 0
mov ecx, dword [esi + 0xc4]
mov eax, dword [esi + 0xbc]
add eax, ecx
cdq
idiv dword [esi + 0xc0]
mov dword [esi + 0xc4], edx
cmp dword [esi + 0x94], ebx
jne 0x84e50a
jmp 0x84e430
mov eax, dword [esi + 0xb8]
test eax, eax
jge 0x84e476
mov edx, dword [esi + 0xc8]
cmp dword [esi + 0xc4], edx
je 0x84e50a
mov ecx, dword [esi + 0x38]
test ecx, ecx
mov dword [esi + 0xb8], 0
je 0x84e476
mov eax, dword [esi + 0xcc]
add eax, edx
movsx edx, word [eax + 4]
push 0
push edx
add eax, 6
push eax
push esi
call ecx
add esp, 0x10
mov eax, dword [esi + 0xc8]
mov edi, dword [esi + 0xcc]
mov ecx, dword [esi + 0xb8]
add edi, eax
movsx eax, word [edi + 4]
push 0
push 0
sub eax, ecx
add eax, 2
push 0
push eax
mov eax, dword [esi + 0x80]
lea edx, [ecx + edi + 4]
push edx
push eax
call fcn.0084b110
mov ebx, eax
add esp, 0x18
test ebx, ebx
jle 0x84e50a
call fcn.0084bcb0
mov dword [esi + 0xd4], eax
mov eax, dword [esi + 0xb8]
add eax, ebx
mov dword [esi + 0xb8], eax
movsx ecx, word [edi + 4]
add ecx, 2
cmp eax, ecx
jne 0x84e4fd
mov ecx, dword [esi + 0xc8]
mov eax, dword [esi + 0xbc]
add eax, ecx
cdq
idiv dword [esi + 0xc0]
mov dword [esi + 0xb8], 0xffffffff
mov dword [esi + 0xc8], edx
cmp dword [esi + 0x94], 4
je 0x84e430
mov eax, dword [esi + 0x210]
test eax, eax
pop edi
pop ebx
jne 0x84e555
mov ecx, dword [esi + 0x214]
test ecx, ecx
je 0x84e555
mov edx, dword [esi + 0x210]
mov eax, dword [esi + 0x218]
inc edx
test eax, eax
mov dword [esi + 0x210], edx
je 0x84e53e
push ecx
push esi
call eax
add esp, 8
mov eax, dword [esi + 0x210]
dec eax
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], 0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 4]
pop esi
call fcn.007d6cb0
add esp, 0x1c
ret