Function at 0x4043e0
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x409e60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, 0x50
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x17c], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x184]
mov ecx, dword [ebp + 0x78]
mov byte [esp + 0x17c], 2
mov eax, dword [eax - 8]
mov edx, dword [ecx - 8]
sub eax, edx
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x18c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x180], 3
call fcn.00409296
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 2
call fcn.0040916a
mov eax, dword [esp + 0x10]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
push str.sysreg.ini
push eax
call ebx
add esp, 8
test eax, eax
je 0x4046e8
lea ecx, [esp + 0x10]
lea esi, [ebp + 0x7c]
push ecx
lea edx, [esp + 0x18]
push esi
push edx
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x180], 4
call fcn.00409296
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 2
call fcn.0040916a
mov ecx, dword [esp + 0x184]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea eax, [esp + 0x34]
push eax
push ecx
call edi
cmp eax, 0xffffffff
je 0x4046e8
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], eax
push ecx
push edx
call edi
cmp eax, 0xffffffff
jne 0x4045ae
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x184]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push eax
push ecx
call esi
test eax, eax
jne 0x4046e4
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 5
call fcn.00409296
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 2
call fcn.0040916a
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
push ecx
call edi
cmp eax, 0xffffffff
jne 0x404598
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, ebp
call fcn.00408510
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x184]
push 0
push edx
push eax
call esi
jmp 0x4046e4
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 1
jne 0x4046e8
mov edx, dword [esp + 0x10]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edi, [ebp + 0x6c]
lea eax, [esp + 0x14]
push edi
push esi
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebx
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call fcn.0040916a
test bl, bl
je 0x4046cf
push edi
lea edx, [esp + 0x20]
push esi
push edx
call sub.MFC42.DLL_operator_3
push str..bak
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x184], 6
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
call fcn.0040916a
lea ecx, [esp + 0x1c]
mov byte [esp + 0x17c], 2
call fcn.0040916a
push edi
lea ecx, [esp + 0x24]
push esi
push ecx
call sub.MFC42.DLL_operator_3
push str..bak
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x188], 7
call sub.MFC42.DLL_operator
mov ebx, dword [eax]
push edi
lea eax, [esp + 0x20]
push esi
push eax
mov byte [esp + 0x188], 8
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x1c]
call fcn.0040916a
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 7
call fcn.0040916a
lea ecx, [esp + 0x20]
mov byte [esp + 0x17c], 2
call fcn.0040916a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x184]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov byte [ebp + 0x68], 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 1
call fcn.0040916a
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 0
call fcn.0040916a
lea ecx, [esp + 0x184]
mov dword [esp + 0x17c], 0xffffffff
call fcn.0040916a
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret 4