Function at 0x10012baf
Capabilities:
Check if file exists

Disassembly:
push 0x104
mov eax, 0x1001a4d0
call fcn.10018e4a
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x3c], ebp
push 1
push dword [ebp - 0x3c]
push str.void___cdecl_TransformPlaylist_struct_tagPlaylist_const__
call fcn.1000b484
mov ebx, eax
add esp, 0xc
mov eax, 0x100239a8
cmp ebx, edi
jne 0x10012beb
mov ebx, eax
push edi
push edi
push edi
push edi
push eax
push 0x1002397c
push ebx
lea ecx, [ebp - 0x5c]
call fcn.1000a370
mov dword [ebp - 4], edi
cmp ebx, edi
jne 0x10012c07
push ebp
pop ebp
mov eax, dword [esi]
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10012d07
mov ebx, 0x10023958
push ebx
call fcn.10005425
pop ecx
test eax, eax
jne 0x10012c82
mov eax, dword [esi]
push 1
sub esp, 0x1c
add eax, 4
mov ecx, esp
mov dword [ebp - 0x40], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [esi]
mov eax, dword [eax]
push str.__strLuaPath_:
push eax
push str.bstrPath_:
push edi
push ebx
mov byte [ebp - 4], 1
call fcn.10009855
pop ecx
pop ecx
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.100016a4
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
mov byte [ebp - 4], 0
call fcn.1000be49
mov ecx, eax
call fcn.1000a33f
mov dword [ebp - 0x30], edi
push 0x17
push edi
push 0x10023948
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.1000676c
cmp eax, edi
mov eax, dword [ebp - 0x30]
jl 0x10012cf9
cmp eax, edi
sete cl
test cl, cl
jne 0x10012cf9
cmp eax, edi
jne 0x10012cb7
push 0x80004003
call fcn.100131a0
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0xfc]
mov esi, dword [esi]
push dword [esi]
lea ecx, [ebp - 0x6c]
call fcn.10004167
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 3
cmp ecx, edi
je 0x10012cad
push eax
call fcn.1000420f
mov bx, ax
neg bx
lea eax, [ebp - 0x6c]
sbb bl, bl
push eax
inc bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
je 0x10012d19
mov eax, dword [ebp - 0x30]
cmp eax, edi
mov byte [ebp - 4], 0
je 0x10012d07
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.1000be71
call fcn.10018ecd
ret
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 4
cmp eax, edi
je 0x10012cad
mov esi, dword [eax]
lea ecx, [ebp - 0x34]
mov ebx, eax
add esi, 0xb4
call fcn.10005ea5
push eax
push ebx
call dword [esi]
mov eax, dword [ebp - 0x34]
cmp eax, edi
sete cl
test cl, cl
je 0x10012d59
mov byte [ebp - 4], 2
cmp eax, edi
je 0x10012cf6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10012cf6
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push str.version
call fcn.10005e08
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 5
cmp ecx, edi
je 0x10012cad
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], 4
call fcn.100072b1
mov esi, eax
lea edi, [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x7c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, 0x10023958
push esi
call fcn.10005425
pop ecx
test eax, eax
jne 0x10012dd0
push 1
push dword [ebp - 0x64]
push str.Playlist_version_
push eax
push esi
call fcn.10009855
pop ecx
pop ecx
mov ecx, eax
call fcn.1000bba2
mov ecx, eax
call fcn.100016a4
mov ecx, eax
call fcn.1000a33f
push dword [ebp - 0x64]
push 0x10021eb0
call dword [sym.imp.MSVCR90.dll_wcscmp]
pop ecx
pop ecx
test eax, eax
je 0x10012dff
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 2
test eax, eax
je 0x10012df5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x30]
test eax, eax
jmp 0x10012cfb
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x34]
mov byte [ebp - 4], 6
test eax, eax
je 0x10012cad
mov esi, dword [eax]
lea ecx, [ebp - 0x38]
mov edi, eax
add esi, 0x30
call fcn.10005ea5
push eax
push edi
call dword [esi]
mov eax, dword [ebp - 0x38]
test eax, eax
sete cl
test cl, cl
je 0x10012e41
mov byte [ebp - 4], 4
test eax, eax
je 0x10012de4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10012de4
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
add eax, 4
cmp dword [eax + 0x18], 0x10
jb 0x10012e54
mov eax, dword [eax + 4]
jmp 0x10012e57
add eax, 4
push 1
push 0x40
push 0x20
push eax
lea ecx, [ebp - 0x110]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::constructor_char_const___int__int_]
push str.function_GetSubTable___r_n_tlocal_t___r_n_t_t
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push str.__iversion____4.3___r_n_t_t
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x40], esp
push str.__SubMovie__
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push dword [ebp - 0x38]
lea eax, [ebp - 0x88]
push eax
call fcn.1000d534
add esp, 0x28
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str._t_r_n
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str._treturn_t_r_n
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push str.end_r_n
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10012f09
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x110]
push eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___int_]
lea ecx, [ebp - 0x110]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::close_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_ofstream_char__struct_std::char_traits_char__::vbase_dtor_void_]
mov eax, dword [ebp - 0x38]
jmp 0x10012e31