Function at 0x10009f18
Capabilities:
Check if file exists

Disassembly:
push 0x3a0
mov eax, 0x1005defb
call fcn.1002cd53
mov edi, ecx
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.10036470
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.utilsSCBasic.dll
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 0x10009fee
push str.InitLua
lea ecx, [ebp - 0x27c]
call fcn.100065ad
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x22c]
call fcn.10008f7f
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
push ecx
push str.fail_not_exists__s
push eax
call fcn.10009df9
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.100095bc
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.100076b8
jmp 0x1000a303
lea eax, [ebp - 0x218]
push eax
call fcn.10019670
pop ecx
test eax, eax
jne 0x1000a03a
push str.InitLua
lea ecx, [ebp - 0x27c]
call fcn.100065ad
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x22c]
call fcn.10008f7f
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 3
push ecx
push str.fail_check_sign__s
jmp 0x10009fc7
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x218]
push eax
lea ecx, [edi + 0x38]
call fcn.10009ec2
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x1000a1a5
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jne 0x1000a303
push str.InitLua
lea ecx, [ebp - 0x27c]
call fcn.100065ad
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x22c]
call fcn.10008f7f
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 5
push ecx
push str.fail_init_lua_core__s
push eax
call fcn.10009df9
add esp, 0xc
lea ecx, [ebp - 0x22c]
call fcn.100095bc
mov ecx, dword [ebp - 0x27c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.100076b8
call fcn.1001a890
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x1000a303
push 0xf
pop esi
push 0x4f
push str.d:jenkins.jenkinsworkspacehalo_poppop_popexpopexcommonluaworkthread.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], esi
mov byte [ebp - 0x248], bl
call fcn.10008074
push 3
push 0x10062888
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.10008074
mov byte [ebp - 4], 7
call fcn.1001a890
mov edi, eax
lea ecx, [ebp - 0x314]
push 0x103
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.1000902f
mov esi, eax
push str.InitLua_fail_init_lua_core_
push esi
mov byte [ebp - 4], 8
call fcn.10008421
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10008421
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.10009b01
lea ecx, [ebp - 0x230]
call fcn.1000b5fb
lea ecx, [ebp - 0x248]
jmp 0x1000a2fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.InitLua
lea ecx, [ebp - 0x27c]
mov ebx, eax
call fcn.100065ad
lea eax, [ebp - 0x27c]
mov dword [ebp - 4], 9
push eax
lea ecx, [ebp - 0x22c]
call fcn.10008f7f
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.10009df9
add esp, 0x10
lea ecx, [ebp - 0x22c]
call fcn.100095bc
mov ecx, dword [ebp - 0x27c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.100076b8
call fcn.1001a890
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x1000a303
and dword [ebp - 0x268], eax
lea ecx, [ebp - 0x278]
push 0xf
pop esi
push 0x4f
push str.d:jenkins.jenkinsworkspacehalo_poppop_popexpopexcommonluaworkthread.cpp
mov dword [ebp - 0x264], esi
mov byte [ebp - 0x278], al
call fcn.10008074
and dword [ebp - 0x250], 0
lea ecx, [ebp - 0x260]
push 3
push 0x10062888
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x24c], esi
mov byte [ebp - 0x260], 0
call fcn.10008074
mov byte [ebp - 4], 0xc
call fcn.1001a890
mov edi, eax
lea ecx, [ebp - 0x3ac]
push 0x10a
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.1000902f
mov esi, eax
push str.InitLua_fail_init_dll_err
push esi
mov byte [ebp - 4], 0xd
call fcn.10008421
pop ecx
pop ecx
push ebx
mov ecx, esi
call fcn.1000985e
push 0x10062aa0
push esi
call fcn.10008421
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10008421
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3ac]
call fcn.10009b01
lea ecx, [ebp - 0x260]
call fcn.1000b5fb
lea ecx, [ebp - 0x278]
call fcn.1000b5fb
call fcn.1002ccfd
ret