Function at 0x1000cd85
Capabilities:
Check if file exists

Disassembly:
push 0x3a0
mov eax, 0x10082e7b
call fcn.1003b733
mov edi, ecx
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.1005a770
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x10000000
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
jne 0x1000ce5b
push str.InitLua
lea ecx, [ebp - 0x27c]
call fcn.100093be
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x22c]
call fcn.1000be44
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
push ecx
push str.fail_not_exists__s
push eax
call fcn.1000ccfd
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.1000c47e
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.1000a458
jmp 0x1000d170
lea eax, [ebp - 0x218]
push eax
call fcn.1001faf0
pop ecx
test eax, eax
jne 0x1000cea7
push str.InitLua
lea ecx, [ebp - 0x27c]
call fcn.100093be
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x22c]
call fcn.1000be44
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 3
push ecx
push str.fail_check_sign__s
jmp 0x1000ce34
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x38]
call fcn.1000cd31
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x1000d012
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x1000d170
push str.InitLua
lea ecx, [ebp - 0x27c]
call fcn.100093be
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x22c]
call fcn.1000be44
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 5
push ecx
push str.fail_init_lua_core__s
push eax
call fcn.1000ccfd
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.1000c47e
mov ecx, dword [ebp - 0x27c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.1000a458
call fcn.10021040
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x1000d170
push 0xf
pop esi
push 0x52
push str.d:jenkins.jenkinsworkspacegoclean_poppop_popexpopexcommonluaworkthread.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], esi
mov byte [ebp - 0x248], bl
call fcn.1000ae54
push 3
push 0x100888fc
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 6
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], esi
mov byte [ebp - 0x230], bl
call fcn.1000ae54
mov byte [ebp - 4], 7
call fcn.10021040
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x111
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.1000bef1
mov esi, eax
push str.InitLua_fail_init_lua_core_
push esi
mov byte [ebp - 4], 8
call fcn.1000b201
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1000b201
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.1000ca05
lea ecx, [ebp - 0x230]
call fcn.1000e468
lea ecx, [ebp - 0x248]
jmp 0x1000d16b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.InitLua
lea ecx, [ebp - 0x27c]
mov ebx, eax
call fcn.100093be
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], 9
push eax
lea ecx, [ebp - 0x22c]
call fcn.1000be44
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 0xa
push ecx
push ebx
push str.fail_init_dll_err_d__s
push eax
call fcn.1000ccfd
add esp, 0x10
lea ecx, [ebp - 0x22c]
call fcn.1000c47e
mov ecx, dword [ebp - 0x27c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.1000a458
call fcn.10021040
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x1000d170
and dword [ebp - 0x268], eax
lea ecx, [ebp - 0x278]
push 0xf
pop esi
push 0x52
push str.d:jenkins.jenkinsworkspacegoclean_poppop_popexpopexcommonluaworkthread.cpp
mov dword [ebp - 0x264], esi
mov byte [ebp - 0x278], al
call fcn.1000ae54
and dword [ebp - 0x250], 0
lea ecx, [ebp - 0x260]
push 3
push 0x100888fc
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x24c], esi
mov byte [ebp - 0x260], 0
call fcn.1000ae54
mov byte [ebp - 4], 0xc
call fcn.10021040
mov edi, eax
lea ecx, [ebp - 0x3ac]
push 0x118
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.1000bef1
mov esi, eax
push str.InitLua_fail_init_dll_err
push esi
mov byte [ebp - 4], 0xd
call fcn.1000b201
pop ecx
pop ecx
push ebx
mov ecx, esi
call fcn.1000c720
push 0x10088b14
push esi
call fcn.1000b201
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.1000b201
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3ac]
call fcn.1000ca05
lea ecx, [ebp - 0x260]
call fcn.1000e468
lea ecx, [ebp - 0x278]
call fcn.1000e468
call fcn.1003b6dd
ret