Function at 0x4125e0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x429638
push eax
mov eax, dword [0x43ba70]
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00412b20
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x18]
mov ebp, eax
call sub.MFC42u.DLL_CString::CString
cmp ebp, 0xffffffff
jne 0x41265b
mov edx, dword [0x43ba70]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412993
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x18], ecx
jne 0x412691
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x43ba70]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
jmp 0x412993
mov eax, 0xe91ed8f5
mov dword [esp + 0x1c], 0
mul ecx
mov edi, edx
shr edi, 0xb
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*8]
shl ecx, 1
sub ecx, edi
push ecx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push 0
push edx
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x412705
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [0x43ba70]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
jmp 0x412993
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
call fcn.0041a2b0
add esp, 8
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.00412b20
push str..OLD
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x3c], 0
push eax
call sub.MFC42u.DLL_operator
mov ebp, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x38], 1
call fcn.00412b20
mov eax, dword [eax]
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x20]
mov ecx, esi
push edx
call fcn.00412b20
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00412b20
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x20]
mov ebp, eax
call sub.MFC42u.DLL_CString::CString
cmp ebp, 0xffffffff
jne 0x4128ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x18]
mov edi, eax
push ecx
mov ecx, esi
call fcn.00412b20
mov ebp, dword [eax]
lea edx, [esp + 0x20]
push edx
mov ecx, esi
mov dword [esp + 0x38], 2
call fcn.00412b20
push str..OLD
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0x3c], 3
push eax
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 2
call sub.MFC42u.DLL_CString::CString
or ebp, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebp
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00412b20
push str..OLD
lea edx, [esp + 0x40]
push eax
push edx
mov dword [esp + 0x40], 4
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], ebp
call sub.MFC42u.DLL_CString::CString
push ebx
call sub.MFC42u.DLL_operatordelete
mov eax, dword [0x43ba70]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
jmp 0x412993
xor eax, eax
cmp edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
jbe 0x41292d
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
add edx, 0x451
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x41290a
mov eax, dword [esp + 0x10]
push eax
push 1
call fcn.0041a270
mov edx, dword [esp + 0x18]
add esp, 8
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x8c9
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x4129a8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
add edx, 0x8c9
cmp eax, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jb 0x4128bd
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00412b20
push str..OLD
lea ecx, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x40], 8
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov edx, dword [0x43ba70]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00412b20
mov ebp, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
mov dword [esp + 0x38], 5
call fcn.00412b20
push str..OLD
lea edx, [esp + 0x40]
push eax
push edx
mov byte [esp + 0x40], 6
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 5
call sub.MFC42u.DLL_CString::CString
or ebp, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebp
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00412b20
push str..OLD
lea ecx, [esp + 0x40]
push eax
push ecx
mov dword [esp + 0x40], 7
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], ebp
call sub.MFC42u.DLL_CString::CString
push ebx
call sub.MFC42u.DLL_operatordelete
mov edx, dword [0x43ba70]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
jmp 0x412993