Function at 0x40aa00
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40c0e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40acfa
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x60], 3
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 3
call fcn.0040b184
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4111b4
push edx
call edi
add esp, 8
test eax, eax
je 0x40aab6
mov eax, dword [esp + 0x14]
push 0x4117f8
push eax
call edi
add esp, 8
test eax, eax
je 0x40aab6
push 0x4111b4
lea ecx, [esp + 0x64]
call fcn.0040b2e0
lea ecx, [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x6c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 3
call fcn.0040b184
mov edx, dword [esp + 0x14]
push 0x4111b4
push edx
call edi
add esp, 8
test eax, eax
je 0x40ab17
mov eax, dword [esp + 0x14]
push 0x4117f8
push eax
call edi
add esp, 8
test eax, eax
je 0x40ab17
push 0x4111b4
lea ecx, [esp + 0x68]
call fcn.0040b2e0
lea ecx, [esp + 0x60]
push 0x4112e0
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], 3
call fcn.0040b184
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x14]
mov bl, 7
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], bl
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40acd0
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x58], bl
call fcn.0040b184
mov edx, dword [esp + 0x10]
push 0x4112d8
push edx
call edi
add esp, 8
test eax, eax
je 0x40acc4
mov eax, dword [esp + 0x10]
push 0x4112d4
push eax
call edi
add esp, 8
test eax, eax
je 0x40acc4
mov edx, dword [esp + 0x34]
push 0x10
lea ecx, [esp + 0x38]
call dword [edx + 0x40]
test eax, eax
jne 0x40ac6a
lea eax, [esp + 0x10]
lea ecx, [esp + 0x64]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call sub.MFC42.DLL_operator
mov esi, dword [eax]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x64], 9
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push 0
push esi
push eax
call ebp
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0040b184
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], bl
call fcn.0040b184
test esi, esi
je 0x40acc4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
call fcn.0040b184
jmp 0x40acc4
push ecx
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [esp + 0x30], esp
lea edx, [esp + 0x68]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator
call fcn.0040ad30
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [esp + 0x30], esp
lea edx, [esp + 0x68]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator
push ecx
lea ecx, [esp + 0x18]
mov eax, esp
mov dword [esp + 0x38], esp
lea edx, [esp + 0x68]
push ecx
push edx
push eax
mov byte [esp + 0x6c], 0xa
call sub.MFC42.DLL_operator
mov byte [esp + 0x60], bl
call fcn.0040aa00
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40ab75
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 3
call fcn.0040b3be
lea ecx, [esp + 0x10]
mov byte [esp + 0x58], 2
call fcn.0040b184
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.0040b184
lea ecx, [esp + 0x60]
mov byte [esp + 0x58], 0
call fcn.0040b184
lea ecx, [esp + 0x64]
mov dword [esp + 0x58], 0xffffffff
call fcn.0040b184
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret