Function at 0x1000c890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090662
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x100cb9b0]
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
mov al, byte [edi + 8]
mov byte [ebp - 0x279], 0
test al, al
jne 0x1000cb5e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100686c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100cf230]
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.Utilsjs_basic.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 0x1000ca1a
call fcn.1002cf70
mov ecx, eax
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1000cb58
push 0x59
push 0x1009bb10
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.10005fe0
push 3
push 0x1009bb6c
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.10005fe0
push 0xe4
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x314]
call fcn.100083b0
mov esi, eax
push str.js_basic_is_not_exists
push esi
mov byte [ebp - 4], 2
call fcn.10009b20
add esp, 8
call fcn.1002cf70
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.10009c50
lea ecx, [ebp - 0x230]
call fcn.10004c10
lea ecx, [ebp - 0x248]
jmp 0x1000cb53
lea eax, [ebp - 0x218]
xor esi, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000ca7c
lea eax, [ebp - 0x218]
push eax
call fcn.1004cac0
add esp, 4
test eax, eax
je 0x1000ca7c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1000ca65
push str.GetWebWindowFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000ca65
call eax
mov esi, eax
test esi, esi
je 0x1000ca7c
mov dword [edi + 0x28], esi
mov eax, dword [esi]
push esi
call dword [eax]
mov byte [edi + 8], 1
mov al, 1
jmp 0x1000cb5e
call fcn.1002cf70
push 1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
mov ecx, eax
call edx
movzx eax, al
sub eax, 1
jne 0x1000cb58
push 0x59
push 0x1009bb88
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], al
call fcn.10005fe0
push 3
push 0x1009bbe4
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 3
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.10005fe0
push 0xea
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x3ac]
call fcn.100083b0
mov esi, eax
push str.init_js_basic_failed
push esi
mov byte [ebp - 4], 5
call fcn.10009b20
add esp, 8
call fcn.1002cf70
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
lea ecx, [ebp - 0x3ac]
call fcn.10009c50
lea ecx, [ebp - 0x260]
call fcn.10004c10
lea ecx, [ebp - 0x278]
call fcn.10004c10
mov al, byte [ebp - 0x279]
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.1004b6e5
mov esp, ebp
pop ebp
ret