Function at 0x413570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3215
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4e83f4]
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 esi, ecx
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, esi
mov byte [ebp - 0x29], 0
call dword [eax + 0x14]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4136b0
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4136a3
push 0x3d
push str.d:_buildlib_commonpublicincludewebviewwebview_template.h
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00408180
mov byte [ebp - 4], 2
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0xa3
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004046f0
mov esi, eax
push str.js_basic_dll_is_not_exist__path:
push esi
mov byte [ebp - 4], 3
call fcn.00405680
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, 0x4be8f8
cmovae ecx, dword [ebp - 0x28]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.00403a80
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.004057a0
lea ecx, [ebp - 0x5c]
call fcn.004050d0
lea ecx, [ebp - 0x44]
call fcn.004050d0
lea ecx, [ebp - 0x28]
call fcn.00403110
jmp 0x413b90
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00464ac0
add esp, 4
test eax, eax
jne 0x413769
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4136a3
push 0x3d
push str.d:_buildlib_commonpublicincludewebviewwebview_template.h
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00408180
mov byte [ebp - 4], 5
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0xa8
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004046f0
mov esi, eax
mov byte [ebp - 4], 6
push str.js_basic_sign_failed
push esi
call fcn.00405680
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
jmp 0x413688
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x413810
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4136a3
push 0x3d
push str.d:_buildlib_commonpublicincludewebviewwebview_template.h
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], bl
call fcn.00408180
mov byte [ebp - 4], 8
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0xaf
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004046f0
mov esi, eax
mov byte [ebp - 4], 9
push str.load_js_basic_dll_failed
jmp 0x413753
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x5c]
call eax
test al, al
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x4138de
push str.GetWebWindowFactoryV3
push ebx
call eax
test eax, eax
je 0x4138d9
call eax
mov edi, eax
test edi, edi
jne 0x4138ce
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4136a3
push 0x3d
push str.d:_buildlib_commonpublicincludewebviewwebview_template.h
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00408180
mov byte [ebp - 4], 0xb
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0xba
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004046f0
mov esi, eax
mov byte [ebp - 4], 0xc
push str.get_factory_ex_v3_function_failed
jmp 0x413753
mov eax, dword [edi]
push 4
push edi
call dword [eax + 0x10]
mov dword [esi + 0x2c], edi
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi + 0x2c], 0
jne 0x413a39
push str.GetWebWindowFactoryEx
push ebx
call eax
test eax, eax
je 0x41399f
call eax
mov ecx, eax
mov dword [esi + 0x2c], ecx
test ecx, ecx
jne 0x413997
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4136a3
push 0x3d
push str.d:_buildlib_commonpublicincludewebviewwebview_template.h
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00408180
mov byte [ebp - 4], 0xe
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0xc8
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004046f0
mov esi, eax
mov byte [ebp - 4], 0xf
push str.get_factory_ex_function_failed
jmp 0x413753
mov eax, dword [ecx]
push 2
push ecx
call dword [eax + 0xc]
cmp dword [esi + 0x2c], 0
jne 0x413a39
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x4136a3
push 0x3d
push str.d:_buildlib_commonpublicincludewebviewwebview_template.h
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.00408180
mov byte [ebp - 4], 0x11
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0xd0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004046f0
mov esi, eax
mov byte [ebp - 4], 0x12
push str.init_js_basic_failed
jmp 0x413753
mov byte [ebp - 0x29], 1
call fcn.0043cc60
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x413b5a
push 0x3d
push str.d:_buildlib_commonpublicincludewebviewwebview_template.h
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], al
call fcn.00408180
push 3
push 0x4be84c
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.00408180
mov byte [ebp - 4], 0x14
call fcn.0043cc60
mov edi, eax
lea ecx, [ebp - 0xf4]
push 0xd4
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004046f0
mov esi, eax
push str.load_js_basic_success
push esi
mov byte [ebp - 4], 0x15
call fcn.00405680
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xf4]
call fcn.004057a0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x413b18
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413b0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413baf
push edx
push ecx
call fcn.004395b0
add esp, 8
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x413b5a
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413b50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413bb4
push edx
push ecx
call fcn.004395b0
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x413b90
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413b86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413bb9
push edx
push ecx
call fcn.004395b0
add esp, 8
mov al, byte [ebp - 0x29]
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.004395be
mov esp, ebp
pop ebp
ret
call fcn.0046fe99
call fcn.0046fe99
call fcn.0046fe99
int3