Function at 0x518af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5a4c46
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x60aecc]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60aecc]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
xor eax, eax
cmp byte [esp + 0x170], al
push 0x10d
setne al
mov ebp, ecx
xor edi, edi
lea ecx, [esp + 0x4d]
push edi
push ecx
mov byte [esp + 0x23], 0
mov dword [esp + 0x3c], eax
mov byte [esp + 0x54], 0
call fcn.0055da20
push 0x104
lea edx, [esp + 0x58]
push 0x5cd94c
push edx
call fcn.0055e0b0
mov eax, dword [ebp]
push 0x104
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.00561aa0
lea edx, [esp + 0x6c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00500070
add esp, 0x2c
lea ecx, [esp + 0x20]
mov dword [esp + 0x164], edi
call fcn.00496ed0
lea edx, [esp + 0x48]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x518ba6
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesA]
lea ecx, [esp + 0x48]
push ecx
call esi
cmp eax, 0xffffffff
jne 0x518c25
mov edx, dword [ebp]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00500070
add esp, 8
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x168], 1
call fcn.00497360
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 0
call fcn.00497320
lea ecx, [esp + 0x20]
call fcn.00496ed0
lea edx, [esp + 0x48]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x518c07
lea ecx, [esp + 0x48]
push ecx
call esi
cmp eax, 0xffffffff
je 0x518f93
mov ecx, dword [ebp + 4]
push edi
push edi
lea edx, [esp + 0x50]
push edx
push 1
push str.Movie
call fcn.00518560
test al, al
je 0x518f93
mov ecx, dword [ebp + 4]
push edi
lea eax, [esp + 0x34]
push eax
push edi
push 1
push str.Loop
call fcn.00518560
test al, al
je 0x518f93
cmp byte [esp + 0x174], 0
je 0x518f8e
mov ecx, dword [ebp + 4]
push edi
push edi
push edi
push str.Stop
call fcn.00518360
test al, al
je 0x518f93
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 4]
push edi
push str.textvarnames
push str.GetVariable
mov dword [esp + 0x28], edi
call fcn.00518360
test al, al
je 0x518db0
mov esi, dword [esp + 0x18]
cmp esi, edi
je 0x518dc3
mov bl, 8
cmp byte [esi], 0
je 0x518db0
push 0x3b
push esi
call fcn.0055dc00
add esp, 8
test eax, eax
mov edi, esi
je 0x518db0
push ecx
mov ecx, esp
mov byte [eax], 0
lea esi, [eax + 1]
mov dword [esp + 0x34], esp
call fcn.00496d90
push ecx
mov ecx, esp
mov byte [esp + 0x16c], 2
mov dword [esp + 0x3c], esp
call fcn.00496d90
push ecx
mov ecx, esp
mov byte [esp + 0x170], 3
mov dword [esp + 0x4c], esp
call fcn.00496d90
push ecx
mov ecx, esp
mov byte [esp + 0x174], 4
mov dword [esp + 0x4c], esp
call fcn.00496d90
push ecx
mov ecx, esp
mov byte [esp + 0x178], 5
mov dword [esp + 0x58], esp
call fcn.00496d90
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push edi
mov byte [esp + 0x180], 6
call fcn.00496da0
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x180], 7
call fcn.004988c0
mov ecx, eax
call fcn.004987f0
mov ecx, eax
mov byte [esp + 0x180], 0
call fcn.004aa000
push 0
lea ecx, [esp + 0x20]
mov byte [esp + 0x168], bl
call fcn.00496ed0
mov ecx, dword [ebp + 4]
push eax
push edi
push str.SetVariable
call fcn.00518360
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], 0
call fcn.00497320
test esi, esi
jne 0x518cb9
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
je 0x518dc3
push eax
call fcn.0055f5cf
add esp, 4
lea ecx, [esp + 0x24]
call fcn.00518a50
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x168], 9
call fcn.004988c0
mov ecx, eax
call fcn.004987f0
mov ecx, eax
call fcn.004aa230
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx]
mov bl, 0xa
lea esp, [esp]
cmp edi, dword [esp + 0x28]
je 0x518f3e
lea esi, [edi + 8]
push esi
lea ecx, [esp + 0x1c]
call fcn.004971d0
push ecx
mov ecx, esp
mov byte [esp + 0x168], bl
mov dword [esp + 0x3c], esp
call fcn.00496d90
push ecx
mov ecx, esp
mov byte [esp + 0x16c], 0xb
mov dword [esp + 0x4c], esp
call fcn.00496d90
push ecx
mov ecx, esp
mov byte [esp + 0x170], 0xc
mov dword [esp + 0x48], esp
call fcn.00496d90
push ecx
mov ecx, esp
mov byte [esp + 0x174], 0xd
mov dword [esp + 0x50], esp
call fcn.00496d90
push ecx
mov ecx, esp
mov byte [esp + 0x178], 0xe
mov dword [esp + 0x48], esp
call fcn.00496d90
cmp edi, dword [esp + 0x3c]
mov byte [esp + 0x178], 0xf
jne 0x518e8d
call fcn.0055d776
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push esi
call fcn.004971d0
lea edx, [esp + 0x34]
push edx
mov byte [esp + 0x180], 0x10
call fcn.004988c0
mov ecx, eax
call fcn.004987f0
mov ecx, eax
mov byte [esp + 0x180], bl
call fcn.004aa000
push 6
push str.FLASH_
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 0x11
call fcn.00496ed0
push eax
call fcn.0055f5d4
add esp, 0xc
test eax, eax
jne 0x518f0b
push eax
lea ecx, [esp + 0x20]
call fcn.00496ed0
push eax
lea ecx, [esp + 0x20]
call fcn.00496ed0
mov ecx, dword [ebp + 4]
add eax, 6
push eax
push str.SetVariable
call fcn.00518360
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], bl
call fcn.00497320
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], 9
call fcn.00497320
cmp edi, dword [esp + 0x28]
jne 0x518f37
call fcn.0055d776
mov edi, dword [edi]
jmp 0x518e00
mov ecx, dword [ebp + 4]
xor esi, esi
push esi
push esi
push esi
push str.Play
call fcn.00518360
test al, al
mov byte [esp + 0x164], 0
lea ecx, [esp + 0x24]
jne 0x518f78
call fcn.00518a90
mov eax, dword [esp + 0x28]
push eax
call fcn.0055d39b
add esp, 4
mov dword [esp + 0x28], esi
jmp 0x518f93
call fcn.00518a90
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0055d39b
add esp, 4
mov dword [esp + 0x28], esi
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x164], 0xffffffff
call fcn.00497320
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0055d2d5
add esp, 0x154
ret 0xc