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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e34cb
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp + 0x14], 2
je 0x4c1e64
lea edi, [ebp + 0x62750]
push edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x20], 1
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
lea esi, [ebp + 0x76]
xor eax, eax
push esi
mov dword [esp + 0x2a0], eax
mov dword [ebp + 0x600], eax
mov dword [esp + 0x28], esi
call ebx
mov edx, eax
push str.bookmarks.dat
mov dword [esp + 0x18], edx
call ebx
mov ecx, dword [esp + 0x18]
add esp, 8
cmp ecx, eax
jae 0x4c1a84
push 0
push str.Save_File_Error
call fcn.004b8150
mov ecx, eax
call fcn.004be2e0
push edi
jmp 0x4c1e5e
mov dx, word [0x50fd10]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x8e]
mov word [esp + 0x8c], 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 + 0x94]
push 0x103
push eax
call ebx
lea ecx, [esp + 0x9c]
push 0x5011f4
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4c1aef
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4c1e69
push str.1.0.0.3
lea edi, [ebp + 0x1c]
push 0x4f6580
push 0xa
push edi
call ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push 1
lea eax, [esp + 0x28]
push 4
push eax
mov dword [esp + 0x34], 0x14
mov dword [esp + 0x30], 0x2711
call ebx
push esi
push 1
lea ecx, [esp + 0x3c]
push 4
push ecx
call ebx
push esi
push 0xa
push 2
push edi
call ebx
add esp, 0x40
lea edx, [esp + 0x14]
mov dword [esp + 0x10], 0x14
mov dword [esp + 0x14], 0x2712
push esi
push 1
push 4
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x28]
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 + 0x5a]
mov word [esp + 0x58], dx
mov dword [esp + 0x48], edx
rep stosd dword es:[edi], eax
lea edx, [esp + 0x48]
push edx
stosw word es:[edi], ax
call fcn.004c02a0
mov eax, dword [esp + 0x4c]
add esp, 0x34
cmp eax, 2
jne 0x4c1bbd
call fcn.004b8150
add eax, 0x8c
push eax
push 0x4f6580
lea eax, [esp + 0x30]
push 0x31
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push esi
mov edi, 4
push 1
lea ecx, [esp + 0x1c]
push edi
push ecx
mov dword [esp + 0x20], 0x64
mov dword [esp + 0x24], 0x271c
call ebx
push esi
push 1
lea edx, [esp + 0x28]
push edi
push edx
call ebx
push esi
push 0x32
lea eax, [esp + 0x50]
push 2
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x4c]
push edi
push ecx
mov dword [esp + 0x50], 0x42
mov dword [esp + 0x54], 0x2713
call ebx
add esp, 0x40
lea edx, [esp + 0x10]
push esi
push 1
push edi
push edx
call ebx
add esp, 0x10
mov ecx, ebp
push esi
call fcn.004c0d90
push esi
push 1
lea eax, [esp + 0x1c]
push edi
push eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x2714
call ebx
push esi
push 1
lea ecx, [esp + 0x28]
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 + 0x4c]
push edi
push eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], 0x2715
call ebx
add esp, 0x40
lea ecx, [esp + 0x10]
push esi
push 1
push edi
push ecx
call ebx
push esi
push 1
lea edx, [ebp + 0x630]
push edi
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0x271b
call ebx
push esi
push 1
lea ecx, [esp + 0x48]
push edi
push ecx
call ebx
add esp, 0x40
lea edx, [ebp + 0x5fc]
push esi
push 1
push edi
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x2c]
push edi
push eax
mov dword [esp + 0x30], 0x28
mov dword [esp + 0x34], 0x2716
call ebx
push esi
push 1
lea ecx, [esp + 0x38]
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 + 0x14]
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0x2717
push esi
push 1
push edi
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x28]
push edi
push ecx
call ebx
push esi
push 1
lea edx, [ebp + 0x604]
push 1
push edx
call ebx
push esi
push 1
lea eax, [esp + 0x4c]
push edi
push eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x54], 0x271a
call ebx
add esp, 0x40
lea ecx, [esp + 0x10]
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 + 0x3c]
push edi
push eax
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], 0x2718
call ebx
push esi
push 1
lea ecx, [esp + 0x48]
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 + 0x2c]
push edi
push eax
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x34], 0x2719
call ebx
push esi
push 1
lea ecx, [esp + 0x38]
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 + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x2af8
push esi
push 1
push edi
push eax
call ebx
push esi
push 1
lea ecx, [esp + 0x28]
push edi
push ecx
call ebx
add esp, 0x20
mov ecx, ebp
push esi
call fcn.004c1250
cmp eax, 0xffffffff
push esi
jne 0x4c1e1b
call dword [sym.imp.MSVCRT.dll_fclose]
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x4c1e69
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x28]
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 + 0x90]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov ecx, dword [esp + 0x294]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x290
ret