Function at 0x40e130
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f179c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x68da90]
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 dword [ebp - 0x230], ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c1b40
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]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push 0x658e70
push eax
call esi
push 0x659b68
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x21c], 0
push eax
call fcn.0040d3c0
push str.WebView_Edge.dll
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x21c]
call fcn.00408bd0
add esp, 4
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov edx, dword [ebp - 0x22c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e213
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
xor edi, edi
call esi
test eax, eax
je 0x40e414
push dword [ebp - 0x21c]
call esi
test eax, eax
jne 0x40e251
push eax
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x40e367
lea edx, [ebp - 0x21c]
mov dword [ebp - 0x224], edi
lea ecx, [ebp - 0x224]
call fcn.004a49b0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x220], 0
call fcn.00404020
lea edx, [ebp - 0x228]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x220]
call fcn.004a49b0
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e2be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x224]
test eax, eax
jne 0x40e2d2
push 0x80004005
call fcn.00404200
mov ecx, dword [ebp - 0x220]
mov edx, ecx
nop word [eax + eax]
mov si, word [edx]
cmp si, word [eax]
jne 0x40e306
test si, si
je 0x40e302
mov si, word [edx + 2]
cmp si, word [eax + 2]
jne 0x40e306
add edx, 4
add eax, 4
test si, si
jne 0x40e2e0
xor eax, eax
jmp 0x40e30b
sbb eax, eax
or eax, 1
test eax, eax
setne al
test al, al
je 0x40e32f
push 0
push dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x220]
lea edx, [ecx - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e346
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e367
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x21c]
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x228], eax
test esi, esi
je 0x40e41a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e414
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40e3c7
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetWebViewFactory
push esi
call ebx
test eax, eax
je 0x40e3b5
call eax
mov dword [ebp - 0x228], eax
push str.IWebViewToIWebViewEx
push esi
call ebx
push str.IsSupportedWebViewEngine
push esi
call ebx
mov ebx, eax
mov eax, dword [ebp - 0x228]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40e414
test eax, eax
jne 0x40e3e0
xor edi, edi
jmp 0x40e3f0
test ebx, ebx
jne 0x40e3e8
xor edi, edi
jmp 0x40e3f0
push 0
push 2
call ebx
mov edi, eax
test esi, esi
je 0x40e3fb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x40e414
mov ecx, dword [ebp - 0x230]
lea eax, [ebp - 0x21c]
add ecx, 0x54
push eax
call fcn.00403640
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e439
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
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.005a8a55
mov esp, ebp
pop ebp
ret