Function at 0x100087e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10047596
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x100632c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x260], 0
xor ebx, ebx
mov dword [ebp - 4], 0
cmp dword [edi + 4], ebx
jne 0x100088e2
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.10024530
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100647b0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
push str.PluginBasic.tpi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100088d9
lea eax, [ebp - 0x218]
push eax
call fcn.10011640
add esp, 4
test eax, eax
je 0x100088d9
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x100088d9
push str.GetLuaExplain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100088d9
call eax
mov ecx, eax
mov dword [edi], ecx
test ecx, ecx
je 0x100088d9
mov eax, dword [ecx]
call dword [eax]
mov dword [edi + 4], eax
cmp dword [edi + 4], ebx
je 0x10008ac0
push 0x40
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.10024530
mov ecx, dword [edi]
lea esi, [ebp - 0x25c]
add esp, 0xc
mov dword [ebp - 0x25c], 0x40
cmp dword [ebp + 0x1c], 0x10
lea edx, [ebp + 8]
cmovae edx, dword [ebp + 8]
mov eax, dword [ecx]
push esi
lea esi, [ebp - 0x258]
push esi
push dword [ebp + 0x18]
push edx
call dword [eax + 8]
mov ebx, eax
call fcn.10016490
test eax, eax
je 0x10008ac0
call fcn.10016490
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 4]
call edx
test al, al
je 0x10008ac0
call fcn.10016490
mov edi, eax
mov dword [ebp - 0xa8], 0x1004b9b8
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x264], eax
push 0
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x260], 1
mov dword [ebp - 0x58], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 0x5c], 0x48
call fcn.100078b0
mov eax, dword [ebp - 0xa8]
push 8
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
mov dword [ebp - 0xa4], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1001b26d
mov esi, eax
add esp, 4
test esi, esi
je 0x100089ed
push 1
mov byte [ebp - 4], 4
call fcn.100121c1
add esp, 4
mov dword [esi + 4], eax
jmp 0x100089ef
xor esi, esi
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0xa4], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 4
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 5
push str.ExecScript_result_
push eax
call fcn.10008720
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.10008720
mov eax, dword [edi]
lea ecx, [ebp - 0xa8]
add esp, 0x10
push ecx
mov ecx, edi
call dword [eax + 0x14]
lea ecx, [ebp - 0xa8]
call fcn.10005100
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10008af0
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10008ae6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008b10
push edx
push ecx
call fcn.1001b29d
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b60e
mov esp, ebp
pop ebp
ret 0x18
call fcn.100271ce
int3