Function at 0x415540
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bb44
mov eax, dword fs:[0]
push eax
sub esp, 0x3a0
mov eax, dword [0x4961ec]
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 edi, ecx
mov dword [ebp - 0x24c], edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00436710
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
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.0041e920
mov ecx, eax
push ebx
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x415729
push 0x4a
push 0x478b20
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], bl
call fcn.004058e0
push 3
push 0x478b6c
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], bl
call fcn.004058e0
mov byte [ebp - 4], 1
call fcn.0041e920
mov edi, eax
lea ecx, [ebp - 0x314]
push 0xa3
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402eb0
mov esi, eax
push str.Load_js_basic
push esi
mov byte [ebp - 4], 2
call fcn.00406be0
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00406be0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.00403e10
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], bl
cmp edx, 0x10
jb 0x4156c7
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4156bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415b4e
push edx
push ecx
call fcn.0042ec84
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x415723
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415719
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415b53
push edx
push ecx
call fcn.0042ec84
add esp, 8
mov edi, dword [ebp - 0x24c]
lea eax, [ebp - 0x218]
xor esi, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415a52
lea eax, [ebp - 0x218]
push eax
call fcn.00430490
add esp, 4
test eax, eax
je 0x415a52
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x41577c
push str.GetWebWindowFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41577c
call eax
mov esi, eax
test esi, esi
je 0x415a52
mov dword [edi + 0x30], esi
mov eax, dword [esi]
push esi
call dword [eax]
call fcn.0041e920
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4158ee
push 0x4a
push 0x478c88
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.004058e0
push 3
push 0x478c84
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 6
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.004058e0
mov byte [ebp - 4], 7
call fcn.0041e920
mov edi, eax
lea ecx, [ebp - 0x314]
push 0xb0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402eb0
mov esi, eax
push str.web_window_factory_init
push esi
mov byte [ebp - 4], 8
call fcn.00406be0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.00403e10
mov edx, dword [ebp - 0x21c]
mov byte [ebp - 4], 6
cmp edx, 0x10
jb 0x415892
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415888
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415b58
push edx
push ecx
call fcn.0042ec84
add esp, 8
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4158ee
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4158e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415b5d
push edx
push ecx
call fcn.0042ec84
add esp, 8
mov ebx, 1
call fcn.0041e920
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, ebx
jne 0x415b30
push 0x4a
push 0x478e00
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x268], 0xf
mov byte [ebp - 0x27c], al
call fcn.004058e0
push 3
push 0x478e4c
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
call fcn.004058e0
mov byte [ebp - 4], 0xd
call fcn.0041e920
mov edi, eax
lea ecx, [ebp - 0x3ac]
push 0xb6
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00402eb0
mov esi, eax
push str.Load_js_basic.dll_success
push esi
mov byte [ebp - 4], 0xe
call fcn.00406be0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x3ac]
call fcn.00403e10
mov edx, dword [ebp - 0x250]
cmp edx, 0x10
jb 0x4159f4
mov ecx, dword [ebp - 0x264]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4159ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415b62
push edx
push ecx
call fcn.0042ec84
add esp, 8
mov edx, dword [ebp - 0x268]
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0xf
mov byte [ebp - 0x264], 0
cmp edx, 0x10
jb 0x415b30
mov ecx, dword [ebp - 0x27c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x415a43
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415b67
push edx
push ecx
call fcn.0042ec84
add esp, 8
jmp 0x415b30
call fcn.0041e920
mov ecx, eax
push 0
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x415b30
push 0x4a
push 0x478bb8
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.004058e0
push 3
push 0x478c0c
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 3
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.004058e0
mov byte [ebp - 4], 4
call fcn.0041e920
mov edi, eax
lea ecx, [ebp - 0x314]
push 0xa7
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00402eb0
mov esi, eax
push str.Load_js_basic.dll_failed
push esi
mov byte [ebp - 4], 5
call fcn.00406be0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x314]
call fcn.00403e10
lea ecx, [ebp - 0x248]
call fcn.00403870
lea ecx, [ebp - 0x230]
call fcn.00403870
mov eax, ebx
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.0042ef2c
mov esp, ebp
pop ebp
ret
call fcn.00439bd8
call fcn.00439bd8
call fcn.00439bd8
call fcn.00439bd8
call fcn.00439bd8
call fcn.00439bd8
int3