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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, ecx
mov ebx, str.LoginEnrolLoginEnrol.dll
lea eax, [ebp - 8]
lea esi, [edi + 0x1c]
push ebx
push esi
push eax
call fcn.00418da8
push str.LoginEnrolLoginEnrol.dll.bak
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00418da8
mov esi, str.FavoritesFavorites.dll
lea eax, [edi + 0x1c]
push esi
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418da8
lea eax, [edi + 0x1c]
push str.FavoritesFavorites.dll.bak
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418da8
mov eax, dword [0x42e50c]
push ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [edi + 0x20]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00418da8
lea eax, [edi + 0x20]
push esi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00418da8
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x48]
call fcn.0041cecf
add esp, 0x14
mov esi, str._d._d._d._d
lea eax, [ebp - 0x38]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
push eax
call fcn.0040959f
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x44]
call fcn.0041cecf
add esp, 0x2c
lea eax, [ebp - 0x34]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push esi
push eax
call fcn.0040959f
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x20
test eax, eax
jne 0x415419
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x4151e5
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.0041d509
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [ebp - 0x40], eax
call esi
test eax, eax
je 0x4151e5
push 0x1b
mov dword [edi + 0x54], 3
push dword [ebp - 0x40]
push ecx
mov ecx, esp
push str.LoginEnrol.dll
call fcn.00404729
mov ecx, edi
call fcn.004183bf
push dword [ebp - 4]
call esi
test eax, eax
je 0x41522d
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.0041d509
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov dword [ebp - 0x40], eax
call esi
test eax, eax
je 0x41522d
push 0x1a
mov dword [edi + 0x54], 3
push dword [ebp - 0x40]
push ecx
mov ecx, esp
push str.Favorites.dll
call fcn.00404729
mov ecx, edi
call fcn.004183bf
lea eax, [edi + 0x1c]
push str.LoginEnrol
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00418da8
push dword [eax]
call fcn.0041d105
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00404c0d
lea eax, [edi + 0x20]
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00418da8
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push dword [ebp - 8]
push eax
call ebx
lea ecx, [ebp - 0x40]
call fcn.00404c0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov dword [ebp - 0x40], eax
call esi
test eax, eax
je 0x4152a7
push 0x1b
mov dword [edi + 0x54], 3
push dword [ebp - 0x40]
push ecx
mov ecx, esp
push str.LoginEnrol.dll
call fcn.00404729
mov ecx, edi
call fcn.004183bf
lea eax, [edi + 0x1c]
push str.Favorites
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00418da8
push dword [eax]
call fcn.0041d105
pop ecx
lea ecx, [ebp - 0x40]
call fcn.00404c0d
lea eax, [edi + 0x20]
push str.FavoritesFavorites.dll
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00418da8
mov eax, dword [eax]
push 0
push dword [ebp - 4]
push eax
call ebx
lea ecx, [ebp - 0x40]
call fcn.00404c0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov ebx, eax
call esi
test eax, eax
je 0x41531c
push 0x1a
push ebx
push ecx
mov dword [edi + 0x54], 3
mov ecx, esp
push str.Favorites.dll
call fcn.00404729
mov ecx, edi
call fcn.004183bf
push 1
pop ebx
push dword [ebp - 8]
call esi
test eax, eax
je 0x4153ee
push dword [ebp - 4]
call esi
test eax, eax
je 0x4153ee
mov eax, dword [0x42e50c]
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
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 - 8]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call fcn.0041cecf
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.0040959f
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.0041cecf
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.0040959f
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 0x20
test eax, eax
jne 0x4153da
xor ebx, ebx
lea ecx, [ebp - 0x3c]
call fcn.00404c0d
lea ecx, [ebp - 0x40]
call fcn.00404c0d
cmp ebx, esi
je 0x415409
push dword [ebp - 8]
push dword [ebp - 0x10]
call fcn.0041d509
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.0041d509
add esp, 0x10
jmp 0x415419
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.00404c0d
lea ecx, [ebp - 0x48]
call fcn.00404c0d
lea ecx, [ebp - 0x34]
call fcn.00404c0d
lea ecx, [ebp - 0x38]
call fcn.00404c0d
lea ecx, [ebp - 0xc]
call fcn.00404c0d
lea ecx, [ebp - 4]
call fcn.00404c0d
lea ecx, [ebp - 0x10]
call fcn.00404c0d
lea ecx, [ebp - 8]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret 4