Function at 0x100053e0
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
lea edx, [ebp - 0x220]
push edi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100053f4
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x220]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10005412
mov ecx, dword [str.links.log]
mov edx, dword [0x10043d84]
mov dword [eax], ecx
mov cx, word [0x10043d88]
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 dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x100056e9
lea edx, [ebp - 0x118]
push edx
push 0
push 0
push 0x22
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x10005524
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100054a1
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 eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
movsb byte es:[edi], byte [esi]
call fcn.10006570
mov ebx, eax
test ebx, ebx
je 0x10005524
mov ecx, dword [ebp - 4]
xor esi, esi
dec ecx
je 0x10005502
jmp 0x100054e0
cmp dword [esi + ebx], 0x70747468
lea edi, [esi + ebx]
jne 0x100054f9
cmp byte [esi + ebx + 4], 0x73
jne 0x100054f9
push esi
call fcn.10005310
mov edx, dword [ebp - 4]
inc esi
dec edx
cmp esi, edx
jb 0x100054e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10005524
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x100055c4
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10005548
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 ecx, [ebp - 4]
push ecx
lea eax, [ebp - 0x118]
movsb byte es:[edi], byte [esi]
call fcn.10006570
mov ebx, eax
test ebx, ebx
je 0x100055c4
mov edx, dword [ebp - 4]
xor esi, esi
dec edx
je 0x100055a2
mov edi, edi
cmp dword [esi + ebx], 0x70747468
lea edi, [esi + ebx]
jne 0x10005599
cmp byte [esi + ebx + 4], 0x73
jne 0x10005599
push esi
call fcn.10005310
mov eax, dword [ebp - 4]
inc esi
dec eax
cmp esi, eax
jb 0x10005580
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x100055c4
push ebx
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 0x10005664
lea edi, [ebp - 0x118]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100055e8
push 1
lea edx, [ebp - 4]
mov ecx, 8
mov esi, str.OperaOperaglobal_history.dat
push edx
lea eax, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
call fcn.10006570
mov ebx, eax
test ebx, ebx
je 0x10005664
mov eax, dword [ebp - 4]
xor esi, esi
dec eax
je 0x10005642
jmp 0x10005620
cmp dword [esi + ebx], 0x70747468
lea edi, [esi + ebx]
jne 0x10005639
cmp byte [esi + ebx + 4], 0x73
jne 0x10005639
push esi
call fcn.10005310
mov ecx, dword [ebp - 4]
inc esi
dec ecx
cmp esi, ecx
jb 0x10005620
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10005664
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [0x1004c80c]
cmp esi, 0x1004c80c
je 0x100056bf
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esi + 0xc]
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10005680
push 0
lea edx, [ebp - 8]
push edx
sub eax, ebx
mov ebx, dword [ebp - 0xc]
push eax
push ecx
push ebx
mov dword [ebp - 8], 0
call edi
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x10043de4
push ebx
mov dword [ebp - 8], 0
call edi
mov esi, dword [esi]
cmp esi, 0x1004c80c
jne 0x10005678
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], 0
test esi, esi
je 0x100056e9
lea ecx, [ebp - 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100056e9
test byte [ebp - 8], 2
jne 0x100056e9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret