Function at 0x40f160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6e7f
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x4da734]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x43c], ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x478], esi
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x45c], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x454]
mov eax, dword [ecx]
push edx
mov dword [ebp - 0x458], 1
mov eax, dword [eax + 0x24]
call eax
mov edi, eax
cmp esi, edi
je 0x40f249
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x40f219
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40f20f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f813
mov eax, edx
push ecx
push eax
call fcn.0045ed5f
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x440]
cmp edx, 8
jb 0x40f289
mov ecx, dword [ebp - 0x454]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f27f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f813
push edx
push ecx
call fcn.0045ed5f
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x40f7f4
mov ecx, dword [ebp - 0x43c]
lea edx, [ebp - 0x454]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
mov edi, eax
cmp esi, edi
je 0x40f316
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x40f2e6
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40f2dc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f813
mov eax, edx
push ecx
push eax
call fcn.0045ed5f
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x440]
cmp edx, 8
jb 0x40f356
mov ecx, dword [ebp - 0x454]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f34c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f818
push edx
push ecx
call fcn.0045ed5f
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x40f7f4
mov edi, dword [ebp - 0x43c]
lea ecx, [ebp - 0x438]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x18]
cmp dword [ebp - 0x428], 0
mov dword [ebp - 4], 1
jne 0x40f4e4
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046a460
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_PathFindFileNameW]
mov edi, eax
lea ecx, [ebp - 0x420]
mov eax, ecx
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40f3ee
movzx eax, word [edi + ecx]
test ax, ax
je 0x40f3ee
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40f3d0
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str..dat
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor eax, eax
mov dword [ebp - 0x464], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x460], 7
mov word [ebp - 0x474], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f454
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x474]
call fcn.00407f10
mov edx, dword [ebp - 0x424]
mov dword [ebp - 0x458], 3
cmp edx, 8
jb 0x40f4c0
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f4b6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f81d
push edx
push ecx
call fcn.0045ed5f
add esp, 8
movups xmm0, xmmword [ebp - 0x474]
mov edi, dword [ebp - 0x43c]
movups xmmword [ebp - 0x438], xmm0
movq xmm0, qword [ebp - 0x464]
movq qword [ebp - 0x428], xmm0
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40f5fc
call fcn.004377c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40f5e8
push 0x3d
push str.d:_buildlib_commonpublicincludewebviewwebview_template.h
lea ecx, [ebp - 0x454]
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x440], 0xf
mov byte [ebp - 0x454], al
call fcn.00407e10
push 3
push 0x4b1ab8
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 2
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 0xf
mov byte [ebp - 0x474], 0
call fcn.00407e10
mov byte [ebp - 4], 3
call fcn.004377c0
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xd1
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x474]
push eax
call fcn.00403be0
mov esi, eax
push str.web_dat_not_exists
push esi
mov byte [ebp - 4], 4
call fcn.00404b70
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.00404dd0
lea ecx, [ebp - 0x474]
call fcn.00404550
lea ecx, [ebp - 0x454]
call fcn.00404550
mov esi, dword [ebp - 0x45c]
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0
call fcn.004045a0
jmp 0x40f706
mov eax, dword [edi]
lea ecx, [ebp - 0x438]
push ecx
lea ecx, [ebp - 0x454]
push ecx
mov eax, dword [eax + 0x1c]
mov ecx, edi
call eax
mov edi, eax
cmp esi, edi
je 0x40f682
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x40f652
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40f648
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f813
mov eax, edx
push ecx
push eax
call fcn.0045ed5f
add esp, 8
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov edx, dword [ebp - 0x440]
cmp edx, 8
jb 0x40f6c2
mov ecx, dword [ebp - 0x454]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f822
push edx
push ecx
call fcn.0045ed5f
add esp, 8
mov edx, dword [ebp - 0x424]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40f706
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40f6fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f827
push edx
push ecx
call fcn.0045ed5f
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x40f7f4
call fcn.004377c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x40f7f4
push 0x3d
push str.d:_buildlib_commonpublicincludewebviewwebview_template.h
lea ecx, [ebp - 0x474]
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], 0xf
mov byte [ebp - 0x474], al
call fcn.00407e10
push 3
push 0x4b1ab8
lea ecx, [ebp - 0x454]
mov dword [ebp - 4], 5
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0xf
mov byte [ebp - 0x454], 0
call fcn.00407e10
mov byte [ebp - 4], 6
call fcn.004377c0
mov edi, eax
lea ecx, [ebp - 0xa8]
push 0xd8
lea eax, [ebp - 0x474]
push eax
lea eax, [ebp - 0x454]
push eax
call fcn.00403be0
mov esi, eax
push str._error__url_is_empty
push esi
mov byte [ebp - 4], 7
call fcn.00404b70
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xa8]
call fcn.00404dd0
lea ecx, [ebp - 0x454]
call fcn.00404550
lea ecx, [ebp - 0x474]
call fcn.00404550
mov esi, dword [ebp - 0x45c]
mov eax, esi
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.0045f015
mov esp, ebp
pop ebp
ret 4
call fcn.0046d8d9
call fcn.0046d8d9
call fcn.0046d8d9
call fcn.0046d8d9
call fcn.0046d8d9
int3