Function at 0x416bee
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 + 0x30]
push edi
push eax
call fcn.0041a27c
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 0x416d43
push str.data
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a27c
push dword [eax]
call fcn.004216ea
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
lea eax, [esi + 0x38]
push str.data_bookmarks.dat
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041a27c
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416c99
push str.data_bookmarks.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a27c
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 + 0x38]
push str.datahistory.dat
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041a27c
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416ce2
push str.datahistory.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a27c
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 + 0x38]
push str.datauser.dat
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041a27c
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416d2b
push str.datauser.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a27c
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.0041a27c
push dword [eax]
call fcn.004216ea
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
push str.data360sefav.db
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0041a27c
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416db1
push str.data_bookmarks.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a27c
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 0x416db1
mov byte [ebp - 1], 1
jmp 0x416db5
and byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
call fcn.00404c0d
cmp byte [ebp - 1], 0
je 0x416e0a
and dword [esi + 0xa4], 0
push str.data360sefav.db
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0041a27c
mov eax, dword [eax]
push str.360sefav.db
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041a27c
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 [0x43b50c]
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.00409818
add esp, 0x24
lea eax, [ebp - 0x24]
push str.data_bookmarks.dat
push edi
push eax
call fcn.0041a27c
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.0041a27c
push dword [ebp - 0x18]
call fcn.004216ea
pop ecx
lea eax, [esi + 0x3c]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041a27c
push dword [ebp - 0x18]
mov eax, dword [eax]
push eax
call fcn.0042198d
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 0x416ec1
cmp eax, 9
jg 0x416ec1
mov ecx, esi
call fcn.004148bd
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, 2
jl 0x416ed8
cmp eax, 7
jge 0x416ed8
mov ecx, esi
call fcn.00414a21
push str.extensionsFavorites
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0041a27c
push str.Favorites2.ini
lea ecx, [ebp - 0x10]
call fcn.0041a141
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0041a23b
lea ecx, [ebp - 0x10]
call fcn.00404c0d
push dword [ebp - 0x14]
call fcn.004216ea
pop ecx
push dword [ebp - 0x20]
push 0x440b38
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