Function at 0x40ecd4
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
push edi
mov ebx, str.extensionsLoginEnrolLoginEnrol.dll
lea eax, [ebp - 8]
lea edi, [esi + 0x18]
push ebx
push edi
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
call fcn.00411c85
push str.extensionsLoginEnrolLoginEnrol.dll.bak
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00411c85
mov edi, str.extensionsFavoritesFavorites.dll
lea eax, [ebp - 4]
push edi
push dword [ebp - 0x2c]
push eax
call fcn.00411c85
push str.extensionsFavoritesFavorites.dll.bak
lea eax, [ebp - 0xc]
push dword [ebp - 0x2c]
push eax
call fcn.00411c85
mov eax, dword [0x425504]
add esi, 0x1c
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
push ebx
lea eax, [ebp - 0x48]
push esi
push eax
mov dword [ebp - 0x40], esi
call fcn.00411c85
push edi
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00411c85
lea eax, [ebp - 0x14]
xor esi, esi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
push dword [ebp - 0x48]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.004157ff
add esp, 0x14
lea eax, [ebp - 0x38]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str._d._d._d._d
push eax
call fcn.00403a7b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], esi
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x44]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.004157ff
add esp, 0x2c
lea eax, [ebp - 0x34]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push str._d._d._d._d
push eax
call fcn.00403a7b
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x20
test eax, eax
jne 0x40f013
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ee46
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.00415e3b
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ee46
mov eax, dword [ebp - 0x30]
push 0x1b
push ecx
mov ecx, esp
push str.LoginEnrol.dll
mov dword [eax + 0x50], 3
call fcn.00407334
mov ecx, dword [ebp - 0x30]
call fcn.0040f56e
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ee8e
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00415e3b
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ee8e
mov eax, dword [ebp - 0x30]
push 0x1a
push ecx
mov ecx, esp
push str.Favorites.dll
mov dword [eax + 0x50], 3
call fcn.00407334
mov ecx, dword [ebp - 0x30]
call fcn.0040f56e
push str.extensionsLoginEnrol
lea eax, [ebp - 0x3c]
push dword [ebp - 0x2c]
push eax
call fcn.00411c85
push dword [eax]
call fcn.00415a35
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.00403e55
push ebx
lea eax, [ebp - 0x3c]
push dword [ebp - 0x40]
push eax
call fcn.00411c85
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
push dword [ebp - 8]
push eax
call ebx
lea ecx, [ebp - 0x3c]
call fcn.00403e55
push str.extensionsFavorites
lea eax, [ebp - 0x3c]
push dword [ebp - 0x2c]
push eax
call fcn.00411c85
push dword [eax]
call fcn.00415a35
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.00403e55
push edi
lea eax, [ebp - 0x40]
push dword [ebp - 0x40]
push eax
call fcn.00411c85
mov eax, dword [eax]
push esi
push dword [ebp - 4]
push eax
call ebx
lea ecx, [ebp - 0x40]
call fcn.00403e55
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 1
pop ebx
push dword [ebp - 8]
call edi
test eax, eax
je 0x40efe8
push dword [ebp - 4]
call edi
test eax, eax
je 0x40efe8
mov eax, dword [0x425504]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x28], esi
push dword [ebp - 8]
mov dword [ebp - 0x24], esi
call fcn.004157ff
add esp, 0x14
mov edi, str._d._d._d._d
lea eax, [ebp - 0x40]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
push eax
call fcn.00403a7b
lea eax, [ebp - 0x24]
mov dword [ebp - 0x30], esi
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], esi
push dword [ebp - 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call fcn.004157ff
add esp, 0x2c
lea eax, [ebp - 0x3c]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
push eax
call fcn.00403a7b
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x20
test eax, eax
jne 0x40efd4
xor ebx, ebx
lea ecx, [ebp - 0x3c]
call fcn.00403e55
lea ecx, [ebp - 0x40]
call fcn.00403e55
cmp ebx, esi
je 0x40f003
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.00415e3b
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.00415e3b
add esp, 0x10
jmp 0x40f013
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 0x44]
call fcn.00403e55
lea ecx, [ebp - 0x48]
call fcn.00403e55
lea ecx, [ebp - 0x34]
call fcn.00403e55
lea ecx, [ebp - 0x38]
call fcn.00403e55
lea ecx, [ebp - 0xc]
call fcn.00403e55
lea ecx, [ebp - 4]
call fcn.00403e55
lea ecx, [ebp - 0x10]
call fcn.00403e55
lea ecx, [ebp - 8]
call fcn.00403e55
pop edi
pop esi
pop ebx
leave
ret 4