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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call dword [0x10120eb4]
call dword [0x10120db4]
xor ecx, ecx
call fcn.1006b220
mov eax, dword [0x1013cb10]
mov ebx, dword [eax]
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x1006fb43
call dword [0x10121424]
mov eax, str.artintrfacedeath.pal
call dword [0x101214b0]
mov ecx, 0x51df34
call fcn.1007b0b0
push 4
push eax
push dword [0x1013cf00]
xor edx, edx
xor ecx, ecx
push dword [0x1013cf04]
call fcn.10075950
mov dword [ebp - 0xc], eax
mov esi, 1
cmp eax, 0xffffffff
je 0x1006fe44
mov eax, dword [ebp - 0xc]
call dword [0x101210ec]
mov esi, eax
test esi, esi
je 0x1006fe37
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x6000135
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call dword [0x10120ea0]
mov edi, eax
test edi, edi
je 0x1006fe37
cmp dword [0x6ac7b0], 0
je 0x1006fbcf
mov ebx, 0x6ac7b0
call fcn.1003b980
cmp dword [ebx], 0
jne 0x1006fbc5
call dword [0x10121004]
call dword [0x101216b4]
mov edx, esi
mov ecx, edi
call fcn.1007a080
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call dword [0x10120e98]
call fcn.1006f920
push str.subtitles
mov edx, str.preferences
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.10016ef0
cmp dword [ebp - 4], 0
je 0x1006fd30
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x2a0]
call fcn.1006f980
test eax, eax
jne 0x1006fd30
cmp byte [0x10175031], al
je 0x1006fc79
cmp dword [0x51e3b0], 0x65
je 0x1006fc79
mov eax, 0x65
sub eax, dword [0x1015589c]
cmp eax, 9
ja 0x1006fc79
mov eax, dword [eax*4 + 0x101558a0]
test eax, eax
je 0x1006fc79
mov dword [0x10174fb8], eax
mov dword [0x51e3b0], 0x65
mov eax, dword [0x10174fb8]
mov dword [0x10174fb4], eax
lea eax, [ebp - 0x2a0]
push eax
push str._nShowDeath:__s_n
call fcn.10016d20
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
lea ecx, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.1006fa70
test eax, eax
jne 0x1006fd30
mov ecx, dword [0x10174fb8]
mov eax, dword [ecx]
call dword [eax + 8]
movsx edx, word [ebp - 4]
mov ecx, esi
push eax
mov dword [ebp - 0x14], eax
call fcn.1007a1e0
mov ecx, 0x51df34
mov ebx, eax
call fcn.1007b020
xor ecx, ecx
mov dword [ebp - 0x18], eax
xor edi, edi
cmp cx, word [ebp - 4]
jge 0x1006fd30
mov edx, dword [0x1013cf04]
nop dword [eax + eax]
mov ecx, dword [0x10174fb8]
push eax
push edx
movsx eax, di
lea edx, [ebp - 0x2a0]
mov esi, dword [ecx]
push 0x230
movsx eax, word [ebp + eax*2 - 0xa0]
add eax, edx
mov edx, ebx
push eax
call dword [esi + 0x20]
mov edx, dword [0x1013cf04]
inc edi
mov eax, edx
imul eax, dword [ebp - 0x14]
add ebx, eax
mov eax, dword [ebp - 0x18]
cmp di, word [ebp - 4]
jl 0x1006fcf0
mov ecx, dword [ebp - 0xc]
call fcn.10016cd0
mov ecx, 0x51df34
call fcn.100408c0
mov eax, dword [0x1013cb54]
mov dword [eax], 0
mov eax, 0x4814a8
call dword [0x101215b0]
movzx eax, byte [0x10181642]
mov ecx, 1
cmp byte [0x10181643], 0
push 0xf
cmovne eax, ecx
lea edx, [ecx + 9]
mov byte [0x10181642], al
mov ecx, dword [ebp - 8]
push 0xe
call fcn.10017340
cmp byte [0x10181643], 0
je 0x1006fd96
xor ecx, ecx
cmp byte [0x10181642], cl
cmove eax, ecx
or ecx, 0xffffffff
mov ebx, 0xbb8
cmp eax, 0xffffffff
cmovne ebx, ecx
call dword [0x101215a4]
mov eax, 0x64
call dword [0x10120e68]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
nop dword [eax]
call fcn.1003b980
mov edi, eax
cmp edi, 0xffffffff
jne 0x1006fdee
mov ecx, dword [0x1013cb54]
cmp dword [ecx], 0
jne 0x1006fdee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov ecx, eax
sub edx, esi
sub ecx, esi
cmp eax, esi
cmovae ecx, edx
cmp ecx, ebx
jb 0x1006fdc0
mov eax, 0
call dword [0x101215b0]
call dword [0x101215a0]
cmp dword [0x6ac7b0], 0
je 0x1006fe1a
mov esi, 0x6ac7b0
nop dword [eax]
call fcn.1003b980
cmp dword [esi], 0
jne 0x1006fe10
cmp edi, 0xffffffff
jne 0x1006fe2a
mov eax, 0x1f4
call dword [0x10121318]
mov ecx, 0x663fd0
call fcn.100408c0
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
call fcn.10075b80
mov esi, 1
mov eax, str.color.pal
call dword [0x101214b0]
test ebx, ebx
je 0x1006fe59
call dword [0x10121438]
mov ecx, esi
call fcn.1006b220
call dword [0x10120db0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret