Function at 0x403eb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452534
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x46f124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0042d750
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.js_basic.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00418610
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4040f6
push 0x3c
push str.e:codelib_commonjs_basicjs_basic_testjsbasicmain_wnd.cc
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.00407130
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
push 3
push 0x4657c4
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00407130
mov byte [ebp - 4], 1
call fcn.00418610
mov edi, eax
lea ecx, [ebp - 0x2f8]
push 0x99
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402fd0
mov esi, eax
push str.Load_js_basic
push esi
mov byte [ebp - 4], 2
call fcn.00407bd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x2f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2fc], eax
lea ecx, [ebp - 0x2f4]
call fcn.00406610
mov eax, dword [ebp - 0x2f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2fc], eax
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040e003
mov byte [ebp - 4], 0
add esp, 4
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x40409a
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404090
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046d1
push edx
push ecx
call fcn.0042be00
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0x10
jb 0x4040f6
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4040ec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046d6
push edx
push ecx
call fcn.0042be00
add esp, 8
lea eax, [ebp - 0x218]
xor esi, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4044f5
lea eax, [ebp - 0x218]
push eax
call fcn.00413220
add esp, 4
test eax, eax
je 0x4044f5
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x404149
push str.GetWebWindowFactoryEx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404149
call eax
mov esi, eax
test esi, esi
je 0x4044f5
mov dword [ebx + 0x2c], esi
mov eax, dword [esi]
push 4
push esi
call dword [eax + 0xc]
call fcn.00418610
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x404329
push 0x3c
push str.e:codelib_commonjs_basicjs_basic_testjsbasicmain_wnd.cc
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.00407130
mov dword [ebp - 4], 8
lea ecx, [ebp - 0x230]
push 3
push 0x4657c4
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00407130
mov byte [ebp - 4], 9
call fcn.00418610
mov edi, eax
lea ecx, [ebp - 0x2f8]
push 0xa6
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402fd0
mov esi, eax
push str.web_window_factory_init
push esi
mov byte [ebp - 4], 0xa
call fcn.00407bd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x2f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2fc], eax
lea ecx, [ebp - 0x2f4]
call fcn.00406610
mov eax, dword [ebp - 0x2f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2fc], eax
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040e003
mov byte [ebp - 4], 8
add esp, 4
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x4042cd
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4042c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046db
push edx
push ecx
call fcn.0042be00
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0x10
jb 0x404329
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40431f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046e0
push edx
push ecx
call fcn.0042be00
add esp, 8
call fcn.00418610
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4044eb
push 0x3c
push str.e:codelib_commonjs_basicjs_basic_testjsbasicmain_wnd.cc
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x300], eax
mov dword [ebp - 0x2fc], 0xf
mov byte [ebp - 0x310], al
call fcn.00407130
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x260]
push 3
push 0x4657c4
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.00407130
mov byte [ebp - 4], 0x11
call fcn.00418610
mov edi, eax
lea ecx, [ebp - 0x3a8]
push 0xac
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00402fd0
mov esi, eax
push str.Load_js_basic.dll_success
push esi
mov byte [ebp - 4], 0x12
call fcn.00407bd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x3a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x3a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x3ac], eax
lea ecx, [ebp - 0x3a4]
call fcn.00406610
mov eax, dword [ebp - 0x3a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x3a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x3ac], eax
lea eax, [ebp - 0x358]
mov byte [ebp - 4], 0x13
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040e003
mov edx, dword [ebp - 0x24c]
add esp, 4
cmp edx, 0x10
jb 0x404496
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40448c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046e5
push edx
push ecx
call fcn.0042be00
add esp, 8
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
cmp edx, 0x10
jb 0x4044eb
mov ecx, dword [ebp - 0x310]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4044e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046ea
push edx
push ecx
call fcn.0042be00
add esp, 8
mov eax, 1
jmp 0x4046b5
call fcn.00418610
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4046b3
push 0x3c
push str.e:codelib_commonjs_basicjs_basic_testjsbasicmain_wnd.cc
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.00407130
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x230]
push 3
push 0x4657c4
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00407130
mov byte [ebp - 4], 5
call fcn.00418610
mov edi, eax
lea ecx, [ebp - 0x2f8]
push 0x9d
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402fd0
mov esi, eax
push str.Load_js_basic.dll_failed
push esi
mov byte [ebp - 4], 6
call fcn.00407bd0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
mov eax, dword [ebp - 0x2f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_0], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0x2fc], eax
lea ecx, [ebp - 0x2f4]
call fcn.00406610
mov eax, dword [ebp - 0x2f8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0x2f8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x2fc], eax
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 7
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040e003
mov edx, dword [ebp - 0x21c]
add esp, 4
cmp edx, 0x10
jb 0x404662
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404658
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046ef
push edx
push ecx
call fcn.0042be00
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
cmp edx, 0x10
jb 0x4046b3
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4046a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4046f4
push edx
push ecx
call fcn.0042be00
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b793
mov esp, ebp
pop ebp
ret
call fcn.004354da
call fcn.004354da
call fcn.004354da
call fcn.004354da
call fcn.004354da
call fcn.004354da
call fcn.004354da
call fcn.004354da
int3