Function at 0x416b38
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 + 0x2c]
push edi
push eax
call fcn.0041a0ea
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 0x416c8d
push str.data
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a0ea
push dword [eax]
call fcn.00421506
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
lea eax, [esi + 0x34]
push str.data_bookmarks.dat
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041a0ea
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416be3
push str.data_bookmarks.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a0ea
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 + 0x34]
push str.datahistory.dat
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041a0ea
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416c2c
push str.datahistory.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a0ea
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 + 0x34]
push str.datauser.dat
push eax
lea eax, [ebp - 8]
push eax
call fcn.0041a0ea
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416c75
push str.datauser.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a0ea
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.0041a0ea
push dword [eax]
call fcn.00421506
pop ecx
lea ecx, [ebp - 0x24]
call fcn.00404c0d
push str.data360sefav.db
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.0041a0ea
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416cfb
push str.data_bookmarks.dat
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.0041a0ea
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 0x416cfb
mov byte [ebp - 1], 1
jmp 0x416cff
and byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
call fcn.00404c0d
cmp byte [ebp - 1], 0
je 0x416d54
and dword [esi + 0xa0], 0
push str.data360sefav.db
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.0041a0ea
mov eax, dword [eax]
push str.360sefav.db
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x38]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041a0ea
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 [0x43a50c]
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.00409921
add esp, 0x24
lea eax, [ebp - 0x24]
push str.data_bookmarks.dat
push edi
push eax
call fcn.0041a0ea
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.0041a0ea
push dword [ebp - 0x18]
call fcn.00421506
pop ecx
lea eax, [esi + 0x38]
push ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041a0ea
push dword [ebp - 0x18]
mov eax, dword [eax]
push eax
call fcn.004217a9
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 0x416e0b
cmp eax, 9
jg 0x416e0b
mov ecx, esi
call fcn.00414823
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
cmp eax, 2
jl 0x416e22
cmp eax, 7
jge 0x416e22
mov ecx, esi
call fcn.00414987
push str.extensionsFavorites
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0041a0ea
push str.Favorites2.ini
lea ecx, [ebp - 0x10]
call fcn.00407ead
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00407f31
lea ecx, [ebp - 0x10]
call fcn.00404c0d
push dword [ebp - 0x14]
call fcn.00421506
pop ecx
push dword [ebp - 0x20]
push 0x43fa88
push str.FirsProcessSgFav
push 0x43fa58
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