Function at 0x1001c8e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065447
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x1008c180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi], 0
jne 0x1001cbc0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10040b90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1008dd7c]
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
mov eax, dword [0x1008ea10]
test al, 1
jne 0x1001c979
or eax, 1
mov dword [0x1008ea0c], 0
mov dword [0x1008ea10], eax
mov byte [ebp - 0x249], 0
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 0
push eax
call fcn.1001f569
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 1
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x249]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x25c]
push eax
push 0x100171d0
push 0x1008ea0c
call fcn.1001f8dd
add esp, 0x10
test eax, eax
je 0x1001cc3c
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 2
push eax
call fcn.1001f578
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x1008ea14
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 0x1001cbf8
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
mov eax, dword [0x1008ea48]
test al, 1
jne 0x1001ca44
or eax, 1
mov dword [0x1008ea44], 0
mov dword [0x1008ea48], eax
mov byte [ebp - 0x249], 0
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 5
push eax
call fcn.1001f569
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 6
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x249]
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x25c]
push eax
push 0x10017060
push 0x1008ea44
call fcn.1001f8dd
add esp, 0x10
test eax, eax
je 0x1001cbdb
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 7
push eax
call fcn.1001f578
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x1008ea4c
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 0x1001cbf8
call fcn.10025f90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001cbc0
push 0x1e
push str.PullCheckScriptActivation.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.1000dc40
push 3
push 0x1006a8b8
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1000dc40
mov byte [ebp - 4], 0xb
call fcn.10025f90
mov edi, eax
lea ecx, [ebp - 0x2f8]
push 0x12d
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.1000b9c0
mov esi, eax
push str.base_not_find
push esi
mov byte [ebp - 4], 0xc
call fcn.1000c860
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f8]
call fcn.1000c990
lea ecx, [ebp - 0x230]
call fcn.1000c350
lea ecx, [ebp - 0x248]
call fcn.1000c350
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002735f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 8
push eax
call fcn.1001f599
add esp, 4
mov byte [ebp - 4], 6
test al, al
je 0x1001cc6b
jmp 0x1001cc55
lea eax, [ebp - 0x218]
push eax
call fcn.10020f50
add esp, 4
test eax, eax
je 0x1001cbc0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1001cbc0
push str.GetLuaExplain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001cbc0
call eax
mov dword [edi], eax
test eax, eax
je 0x1001cbc0
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
jmp 0x1001cbc0
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 3
push eax
call fcn.1001f599
add esp, 4
mov byte [ebp - 4], 1
jmp 0x1001cbf2
sub esp, 8
lea eax, [ebp - 0x254]
mov ecx, esp
push eax
call fcn.10008b90
call fcn.1000b180
call fcn.1001f91b
int3