Function at 0x4116e0
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 0x429518
push eax
mov eax, dword [0x43ba70]
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
mov ebp, ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
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 + 0x14]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x41175b
mov edx, dword [0x43ba70]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411b78
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [esp + 0x14], ecx
jne 0x411791
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x43ba70]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
jmp 0x411b78
mov eax, 0xe91ed8f5
mov dword [esp + 0x18], 0
mul ecx
mov edi, edx
shr edi, 0xb
mov dword [esp + 0x24], edi
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 + 0x14]
lea edx, [esp + 0x18]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
je 0x411809
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, 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, edi
jmp 0x411b78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
call fcn.0041a2b0
add esp, 8
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.00412b20
push str..OLD
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x44], 0
push eax
call sub.MFC42u.DLL_operator
mov esi, dword [eax]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
mov byte [esp + 0x40], 1
call fcn.00412b20
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
lea edx, [esp + 0x20]
mov ecx, ebp
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
xor esi, esi
test edi, edi
jbe 0x411901
lea eax, [ebx + 0x451]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x4118df
mov ecx, dword [esp + 0x10]
inc esi
add ecx, 0x8c9
cmp esi, edi
mov dword [esp + 0x10], ecx
jb 0x4118b3
jmp 0x411901
lea eax, [esi + esi*4]
mov ecx, 0x232
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edi, [eax + eax*8]
shl edi, 1
sub edi, esi
lea esi, [esp + 0x48]
add edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x44]
mov ecx, ebp
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 + 0x44]
mov esi, eax
call sub.MFC42u.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x411a0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x24]
mov esi, eax
push ecx
mov ecx, ebp
call fcn.00412b20
mov edi, dword [eax]
lea edx, [esp + 0x48]
push edx
mov ecx, ebp
mov dword [esp + 0x40], 2
call fcn.00412b20
push str..OLD
push eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x44], 3
push eax
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 2
call sub.MFC42u.DLL_CString::CString
or edi, 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], edi
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
call fcn.00412b20
push str..OLD
lea edx, [esp + 0x48]
push eax
push edx
mov dword [esp + 0x48], 4
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], edi
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, esi
jmp 0x411b78
push ebx
push edi
call fcn.0041a270
mov edx, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
push 0
push ecx
push edx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
je 0x411b12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.00412b20
mov esi, dword [eax]
lea ecx, [esp + 0x48]
push ecx
mov ecx, ebp
mov dword [esp + 0x40], 5
call fcn.00412b20
push str..OLD
lea edx, [esp + 0x48]
push eax
push edx
mov byte [esp + 0x48], 6
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 5
call sub.MFC42u.DLL_CString::CString
or esi, 0xffffffff
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], esi
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x48]
mov ecx, ebp
push eax
call fcn.00412b20
push str..OLD
lea ecx, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x48], 7
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x44]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x48]
mov dword [esp + 0x3c], esi
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 0x411b78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea eax, [esp + 0x30]
mov ecx, ebp
push eax
call fcn.00412b20
push str..OLD
lea ecx, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x48], 8
call sub.MFC42u.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x3c], 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 + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0x8d0