Function at 0x4cff10
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4fb7ab
push eax
mov dword fs:[0], esp
sub esp, 0x288
push ebx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp + 0x14], 2
je 0x4d03db
lea edi, [ebp + 0x6274c]
push edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x24], 1
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
lea esi, [ebp + 0x76]
xor eax, eax
push esi
mov dword [esp + 0x2a4], eax
mov dword [ebp + 0x5fc], eax
mov dword [esp + 0x2c], esi
call ebx
mov edx, eax
push str.bookmarks.dat
mov dword [esp + 0x20], edx
call ebx
mov ecx, dword [esp + 0x20]
add esp, 8
cmp ecx, eax
jae 0x4cffa4
push 0
push str.Save_File_Error
call fcn.004c6670
mov ecx, eax
call fcn.004cc800
push edi
jmp 0x4d03d5
mov dx, word [0x52a480]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x92]
mov word [esp + 0x90], dx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push str._s.dat
lea eax, [esp + 0x98]
push 0x103
push eax
call ebx
lea ecx, [esp + 0xa0]
push 0x51b20c
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4d000f
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4d03e0
push str.BookMarkEvent
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
mov dword [esp + 0x18], edi
je 0x4d003a
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push str.1.0.0.3
lea edi, [ebp + 0x1c]
push 0x50f4e4
push 0xa
push edi
call ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea eax, [esp + 0x2c]
push 4
push eax
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x34], 0x2711
call ebx
push esi
push 1
lea ecx, [esp + 0x38]
push 4
push ecx
call ebx
push esi
push 0xa
push 2
push edi
call ebx
add esp, 0x40
lea edx, [esp + 0x10]
mov dword [esp + 0x14], 0x14
mov dword [esp + 0x10], 0x2712
push esi
push 1
push 4
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x2c]
push 4
push eax
call ebx
push esi
push 0xa
lea ecx, [ebp + 0x30]
push 2
push ecx
call ebx
xor edx, edx
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], dx
mov dword [esp + 0x4c], edx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x4c]
push edx
stosw word es:[edi], ax
call fcn.004ce5e0
mov eax, dword [esp + 0x50]
add esp, 0x34
cmp eax, 2
jne 0x4d0108
call fcn.004c6670
add eax, 0x8c
push eax
push 0x50f4e4
lea eax, [esp + 0x34]
push 0x31
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push esi
mov edi, 4
push 1
lea ecx, [esp + 0x18]
push edi
push ecx
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x20], 0x271c
call ebx
push esi
push 1
lea edx, [esp + 0x2c]
push edi
push edx
call ebx
push esi
push 0x32
lea eax, [esp + 0x54]
push 2
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x48]
push edi
push ecx
mov dword [esp + 0x54], 0x42
mov dword [esp + 0x50], 0x2713
call ebx
add esp, 0x40
lea edx, [esp + 0x14]
push esi
push 1
push edi
push edx
call ebx
add esp, 0x10
mov ecx, ebp
push esi
call fcn.004cf1b0
push esi
push 1
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], 0x2714
call ebx
push esi
push 1
lea ecx, [esp + 0x2c]
push edi
push ecx
call ebx
push esi
push 1
lea edx, [ebp + 0x628]
push edi
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x48]
push edi
push eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0x2715
call ebx
add esp, 0x40
lea ecx, [esp + 0x14]
push esi
push 1
push edi
push ecx
call ebx
push esi
push 1
lea edx, [ebp + 0x62c]
push edi
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x38]
push edi
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], 0x271b
call ebx
push esi
push 1
lea ecx, [esp + 0x4c]
push edi
push ecx
call ebx
add esp, 0x40
lea edx, [ebp + 0x5f8]
push esi
push 1
push edi
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x30], 0x2716
call ebx
push esi
push 1
lea ecx, [esp + 0x3c]
push edi
push ecx
call ebx
push esi
push 0x14
lea edx, [ebp + 0x388]
push 2
push edx
call ebx
add esp, 0x40
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x2717
push esi
push 1
push edi
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x2c]
push edi
push ecx
call ebx
push esi
push 1
lea edx, [ebp + 0x600]
push 1
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x48]
push edi
push eax
mov dword [esp + 0x54], 1
mov dword [esp + 0x50], 0x271a
call ebx
add esp, 0x40
lea ecx, [esp + 0x14]
push esi
push 1
push edi
push ecx
call ebx
push esi
push 1
push 1
lea edx, [ebp + 0x384]
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x38]
push edi
push eax
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x40], 0x2718
call ebx
push esi
push 1
lea ecx, [esp + 0x4c]
push edi
push ecx
call ebx
add esp, 0x40
lea edx, [ebp + 0x3c0]
push esi
push 1
push 0x10
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x30], 0x2719
call ebx
push esi
push 1
lea ecx, [esp + 0x3c]
push edi
push ecx
call ebx
push esi
push 1
lea edx, [ebp + 0x3b0]
push 0x10
push edx
call ebx
add esp, 0x40
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x2af8
push esi
push 1
push edi
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x2c]
push edi
push ecx
call ebx
add esp, 0x20
mov ecx, ebp
push esi
call fcn.004cf670
cmp eax, 0xffffffff
push esi
jne 0x4d037c
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x1c]
add esp, 4
test esi, esi
je 0x4d036c
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4d03e0
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x2c]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea eax, [esp + 0x94]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4d03d0
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x298]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x294
ret