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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
push str.Skin
lea eax, [ebp - 0x10]
lea ebx, [edi + 0x18]
push ebx
push eax
call fcn.00411c85
push dword [eax]
call fcn.00415a35
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00403e55
mov esi, str.SkinIE6
lea eax, [ebp - 0x10]
push esi
push ebx
push eax
call fcn.00411c85
push dword [eax]
call fcn.00415a35
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00403e55
push esi
lea eax, [ebp - 8]
push ebx
push eax
call fcn.00411c85
mov eax, dword [eax]
push esi
mov dword [ebp - 0x10], eax
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411c85
push dword [ebp - 0x10]
mov eax, dword [eax]
push eax
call fcn.00415cd8
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.00403e55
lea ecx, [ebp - 8]
call fcn.00403e55
mov esi, str.SkinIE6ico
lea eax, [ebp - 0x10]
push esi
push ebx
push eax
call fcn.00411c85
push dword [eax]
call fcn.00415a35
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00403e55
push esi
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.00411c85
mov ebx, dword [eax]
lea eax, [edi + 0x1c]
push esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00411c85
mov eax, dword [eax]
push ebx
push eax
call fcn.00415cd8
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00403e55
lea ecx, [ebp - 0xc]
call fcn.00403e55
lea esi, [edi + 0x10]
push str.data
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00411c85
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.00403e55
test bl, bl
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
je 0x40fc2c
push str.data
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00411c85
push dword [eax]
call fcn.00415a35
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00403e55
lea eax, [edi + 0x18]
push str.data_bookmarks.dat
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00411c85
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fb82
push str.data_bookmarks.dat
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00411c85
mov eax, dword [eax]
push 0
push eax
push dword [ebp - 0x10]
call ebx
lea ecx, [ebp - 0x1c]
call fcn.00403e55
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi + 0x18]
push str.datahistory.dat
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00411c85
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fbcb
push str.datahistory.dat
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00411c85
mov eax, dword [eax]
push 0
push eax
push dword [ebp - 0xc]
call ebx
lea ecx, [ebp - 0x1c]
call fcn.00403e55
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi + 0x18]
push str.datauser.dat
push eax
lea eax, [ebp - 8]
push eax
call fcn.00411c85
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fc14
push str.datauser.dat
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00411c85
mov eax, dword [eax]
push 0
push eax
push dword [ebp - 8]
call ebx
lea ecx, [ebp - 0x1c]
call fcn.00403e55
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 8]
call fcn.00403e55
lea ecx, [ebp - 0xc]
call fcn.00403e55
lea ecx, [ebp - 0x10]
call fcn.00403e55
push str.data_bak
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00411c85
push dword [eax]
call fcn.00415a35
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00403e55
push str.data360sefav.db
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00411c85
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fc9a
push str.data_bookmarks.dat
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00411c85
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
neg eax
sbb al, al
lea ecx, [ebp - 0x1c]
inc al
mov byte [ebp - 1], al
call fcn.00403e55
cmp byte [ebp - 1], 0
je 0x40fc9a
mov byte [ebp - 1], 1
jmp 0x40fc9e
and byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
call fcn.00403e55
cmp byte [ebp - 1], 0
je 0x40fcec
push str.data360sefav.db
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00411c85
mov eax, dword [eax]
push str.360sefav.db
mov dword [ebp - 0x1c], eax
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00411c85
mov eax, dword [eax]
push 0
push dword [ebp - 0x1c]
push eax
call ebx
lea ecx, [ebp - 0x10]
call fcn.00403e55
lea ecx, [ebp - 0xc]
call fcn.00403e55
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [0x425504]
mov dword [ebp - 0x18], eax
movzx eax, word [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push dword [esi]
push str._sdata_bak_bookmarks__d
push eax
call fcn.00403a7b
add esp, 0x24
lea eax, [ebp - 0x1c]
push str.data_bookmarks.dat
push esi
push eax
call fcn.00411c85
mov eax, dword [eax]
push 0
push dword [ebp - 0x18]
push eax
call ebx
lea ecx, [ebp - 0x1c]
call fcn.00403e55
mov ebx, str.dataico
lea eax, [ebp - 0x14]
push ebx
push esi
push eax
call fcn.00411c85
push dword [ebp - 0x14]
call fcn.00415a35
pop ecx
lea eax, [edi + 0x1c]
push ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00411c85
push dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call fcn.00415cd8
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00403e55
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, 7
jl 0x40fda3
cmp eax, 9
jg 0x40fda3
mov ecx, edi
call fcn.0040e0b6
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
cmp eax, 2
jl 0x40fdba
cmp eax, 7
jge 0x40fdba
mov ecx, edi
call fcn.0040e21a
lea ecx, [ebp - 0x14]
call fcn.00403e55
lea ecx, [ebp - 0x18]
call fcn.00403e55
pop edi
pop esi
pop ebx
leave
ret 4