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

Disassembly:
sub esp, 0x408
push ebx
mov ebx, dword [esp + 0x410]
push ebp
push esi
push edi
push ebx
push str.CCODECMgr::SaveToFile:___s_
call fcn.1000b3f0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 8
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str..bak
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, eax
and edx, 1
cmp dl, 1
jne 0x10009d8b
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor edi, edi
lea eax, [esp + 0x18]
push edi
push 0x80
push 4
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10009dd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Failed_to_CreateFile_in_SaveToFile__d_
call fcn.1000b3f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esp + 0x424]
mov eax, ecx
cdq
and edx, 0xffffff
add eax, edx
mov ebp, eax
sar ebp, 0x18
and ecx, 0x80ffffff
jns 0x10009e08
dec ecx
or ecx, 0xff000000
inc ecx
test ebp, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edi
jle 0x10009e49
mov ebx, dword [esp + 0x420]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x1000000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10009e7e
inc edi
add ebx, 0x1000000
cmp edi, ebp
jl 0x10009e1b
mov ebx, dword [esp + 0x41c]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x10009e8f
lea eax, [esp + 0x10]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x42c]
shl edi, 0x18
add edi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10009e8f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
push ecx
jmp 0x10009f79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x18]
push edx
jmp 0x10009f79
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10009eb7
call edi
push eax
push str.____Failed_to_DeleteFile_1th_in_SaveToFile__d_
call fcn.1000b3f0
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1000a00e
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10009fa9
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call edi
push eax
push str.____Failed_to_MoveFile_in_SaveToFile:CreateFile__d_
call fcn.1000b3f0
add esp, 8
xor edi, edi
test ebp, ebp
jle 0x10009f45
mov ebx, dword [esp + 0x420]
lea eax, [esp + 0x10]
push 0
push eax
push 0x1000000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10009e6d
inc edi
add ebx, 0x1000000
cmp edi, ebp
jl 0x10009f1e
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x10009fa0
mov ebp, dword [esp + 0x420]
lea edx, [esp + 0x10]
shl edi, 0x18
push 0
push edx
add edi, ebp
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10009fa0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Failed_to_WriteFile_in_SaveToFile__d_
call fcn.1000b3f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x408
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000a01b
call edi
push eax
push str.____Failed_to_MoveFile_in_SaveToFile__d_
call fcn.1000b3f0
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10009fd4
call edi
push eax
push str.____Failed_to_DeleteFile_2th_in_SaveToFile__d_
call fcn.1000b3f0
add esp, 8
push 0
lea edx, [esp + 0x1c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x1000a01b
call edi
push eax
push str.____Failed_to_CopyFile_in_SaveToFile__d_
call fcn.1000b3f0
add esp, 8
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x408
ret
push str.____Success_to_MoveFile_in_SaveToFile______
call fcn.1000b3f0
add esp, 4
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x408
ret