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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
push str.data
lea eax, [ebp - 0x10]
lea edi, [esi + 0x14]
push edi
push eax
call fcn.00418da8
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
mov ebx, eax
lea ecx, [ebp - 0x10]
neg ebx
sbb bl, bl
inc bl
call fcn.00404c0d
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
je 0x415d72
push str.data
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00418da8
push dword [eax]
call fcn.0041d105
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
lea eax, [esi + 0x1c]
push str.data_bookmarks.dat
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00418da8
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415cc8
push str.data_bookmarks.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00418da8
mov eax, dword [eax]
push 0
push eax
push dword [ebp - 0x10]
call ebx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x1c]
push str.datahistory.dat
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418da8
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415d11
push str.datahistory.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00418da8
mov eax, dword [eax]
push 0
push eax
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi + 0x1c]
push str.datauser.dat
push eax
lea eax, [ebp - 8]
push eax
call fcn.00418da8
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415d5a
push str.datauser.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00418da8
mov eax, dword [eax]
push 0
push eax
push dword [ebp - 8]
call ebx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
call fcn.00404c0d
lea ecx, [ebp - 0xc]
call fcn.00404c0d
lea ecx, [ebp - 0x10]
call fcn.00404c0d
push str.data_bak
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00418da8
push dword [eax]
call fcn.0041d105
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
push str.data360sefav.db
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00418da8
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x415de0
push str.data_bookmarks.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00418da8
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb al, al
lea ecx, [ebp - 0x24]
inc al
mov byte [ebp - 1], al
call fcn.00404c0d
cmp byte [ebp - 1], 0
je 0x415de0
mov byte [ebp - 1], 1
jmp 0x415de4
and byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
call fcn.00404c0d
cmp byte [ebp - 1], 0
je 0x415e36
and dword [esi + 0x7c], 0
push str.data360sefav.db
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00418da8
mov eax, dword [eax]
push str.360sefav.db
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00418da8
mov eax, dword [eax]
push 0
push dword [ebp - 0x24]
push eax
call ebx
lea ecx, [ebp - 0x10]
call fcn.00404c0d
lea ecx, [ebp - 0xc]
call fcn.00404c0d
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x42e50c]
mov dword [ebp - 0x1c], eax
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push dword [edi]
push str._sdata_bak_bookmarks__d
push eax
call fcn.0040959f
add esp, 0x24
lea eax, [ebp - 0x24]
push str.data_bookmarks.dat
push edi
push eax
call fcn.00418da8
mov eax, dword [eax]
push 0
push dword [ebp - 0x1c]
push eax
call ebx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
mov ebx, str.dataico
lea eax, [ebp - 0x18]
push ebx
push edi
push eax
call fcn.00418da8
push dword [ebp - 0x18]
call fcn.0041d105
pop ecx
lea eax, [esi + 0x20]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00418da8
push dword [ebp - 0x18]
mov eax, dword [eax]
push eax
call fcn.0041d3a8
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, 7
jl 0x415eed
cmp eax, 9
jg 0x415eed
mov ecx, esi
call fcn.00413c85
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, 2
jl 0x415f04
cmp eax, 7
jge 0x415f04
mov ecx, esi
call fcn.00413de9
push str.extensionsFavorites
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.00418da8
push str.Favorites2.ini
lea ecx, [ebp - 0x10]
call fcn.00418c85
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00418d67
lea ecx, [ebp - 0x10]
call fcn.00404c0d
push dword [ebp - 0x14]
call fcn.0041d105
pop ecx
push dword [ebp - 0x20]
push 0x433578
push str.FirsProcessSgFav
push str.main
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x20]
call fcn.00404c0d
lea ecx, [ebp - 0x14]
call fcn.00404c0d
lea ecx, [ebp - 0x18]
call fcn.00404c0d
lea ecx, [ebp - 0x1c]
call fcn.00404c0d
pop edi
pop esi
pop ebx
leave
ret 4