Function at 0x10005d30
Capabilities:
Delete file
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
test eax, eax
je 0x100060f9
lea edx, [ebp - 0x220]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10005d50
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x220]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10005d70
mov ecx, dword [str.links.log]
mov edx, dword [0x10045dbc]
mov dword [eax], ecx
mov cx, word [0x10045dc0]
mov dword [eax + 4], edx
push 0
lea edx, [ebp - 0x220]
push edx
mov word [eax + 8], cx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100060f9
push 1
lea edx, [ebp - 0x220]
push edx
call fcn.100259d0
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x22
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x10005e99
lea edi, [ebp - 0x118]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005e10
mov ecx, 5
mov esi, str.History.IE5index.dat
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 1
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x118]
movsb byte es:[edi], byte [esi]
call fcn.100074a0
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10005e99
mov edx, dword [ebp - 8]
xor esi, esi
dec edx
je 0x10005e77
lea esp, [esp]
cmp dword [esi + edi], 0x70747468
lea eax, [esi + edi]
jne 0x10005e6e
cmp byte [esi + edi + 4], 0x73
jne 0x10005e6e
push esi
mov edi, eax
call fcn.10005c60
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc esi
dec eax
cmp esi, eax
jb 0x10005e50
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10005e99
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x118]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x10005f4b
lea edi, [ebp - 0x118]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005ec0
mov ecx, 7
mov esi, str.OperaOpera_typed_history.xml
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 1
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x118]
movsb byte es:[edi], byte [esi]
call fcn.100074a0
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10005f4b
mov eax, dword [ebp - 8]
xor esi, esi
dec eax
je 0x10005f27
lea esp, [esp]
cmp dword [esi + edi], 0x70747468
lea eax, [esi + edi]
jne 0x10005f1e
cmp byte [esi + edi + 4], 0x73
jne 0x10005f1e
push esi
mov edi, eax
call fcn.10005c60
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc esi
dec ecx
cmp esi, ecx
jb 0x10005f00
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10005f4b
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea edx, [ebp - 0x118]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x10005ff9
lea edi, [ebp - 0x118]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005f70
push 1
lea eax, [ebp - 8]
push eax
mov ecx, 8
mov esi, str.OperaOperaglobal_history.dat
lea eax, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
call fcn.100074a0
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x10005ff9
mov ecx, dword [ebp - 8]
xor esi, esi
dec ecx
je 0x10005fd7
jmp 0x10005fb0
cmp dword [esi + edi], 0x70747468
lea eax, [esi + edi]
jne 0x10005fce
cmp byte [esi + edi + 4], 0x73
jne 0x10005fce
push esi
mov edi, eax
call fcn.10005c60
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc esi
dec edx
cmp esi, edx
jb 0x10005fb0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10005ff9
push edi
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [0x1004eaec]
mov dword [ebp - 4], edi
cmp edi, 0x1004eaec
je 0x100060d2
jmp 0x10006013
mov edi, dword [ebp - 4]
lea esi, [edi + 0xc]
lea ecx, [esi + 1]
lea esp, [esp]
mov al, byte [esi]
inc esi
test al, al
jne 0x10006020
lea eax, [edi + 0xc]
sub esi, ecx
mov dword [ebp - 0xc], 0
test eax, eax
je 0x1000607c
test esi, esi
je 0x1000607c
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
push 0
mov edi, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push esi
add eax, 0xc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push esi
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov edi, dword [ebp - 4]
push 1
push 0
push 0
push ebx
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 2
push 0
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
push 0x10045e1c
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 2
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
mov eax, dword [edi]
mov dword [ebp - 4], eax
cmp eax, 0x1004eaec
jne 0x10006010
mov dword [ebp - 4], 0
test ebx, ebx
je 0x100060f9
lea edx, [ebp - 4]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100060f9
test byte [ebp - 4], 2
jne 0x100060f9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret