Function at 0x10005180
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085274
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x100ae1c4]
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 eax, ecx
mov dword [ebp - 0x264], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x268], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
cmp dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x268], 1
je 0x100054e5
cmp dword [eax + 4], 0
jne 0x100053a6
push 0x208
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.100474b0
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0x104
push eax
push dword [0x100b253c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x25c]
push eax
call esi
lea eax, [ebp - 0x25c]
push eax
call esi
push str.PluginBasic.tpi
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100052c6
lea eax, [ebp - 0x25c]
push eax
call fcn.10016f20
add esp, 4
test eax, eax
je 0x100052c6
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x100052ab
push str.GetLuaExplain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100052ab
call eax
mov esi, dword [ebp - 0x264]
mov dword [esi], eax
jmp 0x100052b1
mov esi, dword [ebp - 0x264]
mov ecx, dword [esi]
test ecx, ecx
je 0x100052c6
mov eax, dword [ecx]
call dword [eax]
mov dword [esi + 4], eax
test eax, eax
jne 0x100053ac
call fcn.1001f000
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100054e5
push 0x5d
push str.d:jenkins.jenkinsworkspacelib_commonpopular_sellpopular_sell_srcluascriptluascript.cc
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], 0xf
mov byte [ebp - 0x298], al
call fcn.100036c0
push 3
push 0x1008c8e8
lea ecx, [ebp - 0x280]
mov dword [ebp - 4], 1
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], 0
call fcn.100036c0
mov byte [ebp - 4], 2
call fcn.1001f000
mov edi, eax
lea ecx, [ebp - 0x334]
push 0x32
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.10003f40
mov esi, eax
push str.basic_init_fail
push esi
mov byte [ebp - 4], 3
call fcn.10004c90
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x334]
call fcn.10004db0
lea ecx, [ebp - 0x280]
call fcn.100048f0
lea ecx, [ebp - 0x298]
call fcn.100048f0
jmp 0x100054e5
mov esi, dword [ebp - 0x264]
push 0x41
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.100474b0
mov ecx, dword [esi]
add esp, 0xc
cmp dword [edi + 0x14], 0x10
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x260], 0x40
jb 0x100053d3
mov edi, dword [edi]
mov eax, dword [ecx]
lea esi, [ebp - 0x260]
push esi
lea esi, [ebp - 0x54]
push esi
push edx
push edi
call dword [eax + 8]
test eax, eax
jg 0x100054ca
call fcn.1001f000
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x100054e5
push 0x5d
push str.d:jenkins.jenkinsworkspacelib_commonpopular_sellpopular_sell_srcluascriptluascript.cc
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], 0xf
mov byte [ebp - 0x280], al
call fcn.100036c0
push 3
push 0x1008c8e8
lea ecx, [ebp - 0x298]
mov dword [ebp - 4], 4
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0xf
mov byte [ebp - 0x298], 0
call fcn.100036c0
mov byte [ebp - 4], 5
call fcn.1001f000
mov edi, eax
lea ecx, [ebp - 0x334]
push 0x39
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.10003f40
mov esi, eax
push str.script_fail
push esi
mov byte [ebp - 4], 6
call fcn.10004c90
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x334]
call fcn.10004db0
lea ecx, [ebp - 0x298]
call fcn.100048f0
lea ecx, [ebp - 0x280]
call fcn.100048f0
jmp 0x100054e5
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100054d0
sub ecx, edx
lea eax, [ebp - 0x54]
push ecx
push eax
mov ecx, ebx
call fcn.100036c0
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.1001ac61
mov esp, ebp
pop ebp
ret 8