Function at 0x1001c370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100662e7
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x1008d180]
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 0x1001c650
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10041a60
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x1008ed7c]
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 [0x1008fa10]
test al, 1
jne 0x1001c409
or eax, 1
mov dword [0x1008fa0c], 0
mov dword [0x1008fa10], eax
mov byte [ebp - 0x249], 0
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 0
push eax
call fcn.1001efd9
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 0x10016c70
push 0x1008fa0c
call fcn.1001f34d
add esp, 0x10
test eax, eax
je 0x1001c6cc
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 2
push eax
call fcn.1001efe8
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x1008fa14
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 0x1001c688
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call esi
mov eax, dword [0x1008fa3c]
test al, 1
jne 0x1001c4d4
or eax, 1
mov dword [0x1008fa38], 0
mov dword [0x1008fa3c], eax
mov byte [ebp - 0x249], 0
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 5
push eax
call fcn.1001efd9
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 0x10016b00
push 0x1008fa38
call fcn.1001f34d
add esp, 0x10
test eax, eax
je 0x1001c66b
lea eax, [ebp - 0x254]
mov dword [ebp - 4], 7
push eax
call fcn.1001efe8
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
push 0x1008fa40
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 0x1001c688
call fcn.10027110
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1001c650
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.1000d6f0
push 3
push 0x1006b8b8
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.1000d6f0
mov byte [ebp - 4], 0xb
call fcn.10027110
mov edi, eax
lea ecx, [ebp - 0x2f8]
push 0x12d
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.1000b470
mov esi, eax
push str.base_not_find
push esi
mov byte [ebp - 4], 0xc
call fcn.1000c310
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2f8]
call fcn.1000c440
lea ecx, [ebp - 0x230]
call fcn.1000be00
lea ecx, [ebp - 0x248]
call fcn.1000be00
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.100284dd
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 8
push eax
call fcn.1001f009
add esp, 4
mov byte [ebp - 4], 6
test al, al
je 0x1001c6fb
jmp 0x1001c6e5
lea eax, [ebp - 0x218]
push eax
call fcn.10021a90
add esp, 4
test eax, eax
je 0x1001c650
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1001c650
push str.GetLuaExplain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001c650
call eax
mov dword [edi], eax
test eax, eax
je 0x1001c650
mov edx, dword [eax]
mov ecx, eax
call dword [edx]
jmp 0x1001c650
lea eax, [ebp - 0x254]
mov byte [ebp - 4], 3
push eax
call fcn.1001f009
add esp, 4
mov byte [ebp - 4], 1
jmp 0x1001c682
sub esp, 8
lea eax, [ebp - 0x254]
mov ecx, esp
push eax
call fcn.10008630
call fcn.1000ac20
call fcn.1001f38b
int3