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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41d33c
push eax
mov eax, dword [0x429f10]
mov dword fs:[0], esp
sub esp, 0x430
cmp eax, 2
push ebx
je 0x40680a
cmp eax, 1
jne 0x40629c
cmp dword [0x429f08], 4
ja 0x40680a
mov al, byte [0x429ec4]
test al, 1
jne 0x4062cc
mov bl, al
push str.avp_cure
or bl, 1
mov ecx, 0x42a00c
mov byte [0x429ec4], bl
call sub.MFC42.DLL_CString::CString_1
push 0x406860
call fcn.0041986c
add esp, 4
mov al, byte [0x429ec4]
test al, 2
jne 0x4062fc
mov bl, al
push str.pause
or bl, 2
mov ecx, 0x42a01c
mov byte [0x429ec4], bl
call sub.MFC42.DLL_CString::CString_1
push 0x406850
call fcn.0041986c
add esp, 4
mov al, byte [0x429ec4]
test al, 4
jne 0x40632c
mov bl, al
push str.C:_autoexec.bat
or bl, 4
mov ecx, 0x429f94
mov byte [0x429ec4], bl
call sub.MFC42.DLL_CString::CString_1
push 0x406840
call fcn.0041986c
add esp, 4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x42a00c]
mov dword [esp + 0x43c], 0
push eax
push eax
lea eax, [esp + 0x24]
push str._if_exist__s.bat_call__s.bat
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x20]
call fcn.0041940e
lea ecx, [esp + 4]
mov byte [esp + 0x43c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x43c], 2
call sub.MFC42.DLL_CStdioFile::CStdioFile
mov ecx, dword [0x429f94]
push 0
push 0
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 3
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x4064c8
lea edx, [esp + 4]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x4063fa
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4064a6
mov eax, dword [esp + 0x28]
lea edx, [esp + 4]
push edx
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x4063ba
lea ecx, [esp + 8]
call sub.MFC42.DLL_CStdioFile::Close
mov edx, dword [0x429f94]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [0x429f94]
push 1
push str.C:_autoexec.avp
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [0x429f94]
push 0
push 1
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x4064af
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x30]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CStdioFile::WriteString
push 0x425794
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CStdioFile::WriteString
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4064a6
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CStdioFile::WriteString
push 0x425794
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CStdioFile::WriteString
push 1
push 0
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CStringArray::RemoveAt
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x406473
lea ecx, [esp + 8]
call sub.MFC42.DLL_CStdioFile::Close
push 0
push 0x3002
push str.C:_avp_cure.bat
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
jne 0x406527
lea ecx, [esp + 8]
mov byte [esp + 0x43c], 2
call fcn.00419576
lea ecx, [esp + 4]
mov byte [esp + 0x43c], 1
call fcn.004193cc
lea ecx, [esp + 0x20]
mov byte [esp + 0x43c], 0
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x1c]
mov dword [esp + 0x43c], 0xffffffff
call fcn.004193cc
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
add esp, 0x43c
ret
push ebp
push esi
push edi
lea edx, [esp + 0x240]
push 0x200
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x40]
push 0x200
lea ecx, [esp + 0x244]
push eax
push ecx
call ebp
mov ebx, dword [sym.imp.USER32.dll_CharToOemA]
lea edx, [esp + 0x40]
lea eax, [esp + 0x40]
push edx
push eax
call ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::GetLength
test eax, eax
jne 0x4065b5
push str._echo_off_n
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::WriteString
push str.__LOGO_n
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::GetPosition
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::SetLength
mov esi, dword [esp + 0x454]
test esi, esi
je 0x406678
mov edx, dword [esp + 0x450]
push 4
push edx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x40660a
lea eax, [esp + 0x40]
push str.__DEL
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x200
repne scasb al, byte es:[edi]
not ecx
dec ecx
sub edx, ecx
lea edi, [esp + ecx + 0x40]
push edx
push edi
push esi
jmp 0x4066a9
lea eax, [esp + 0x40]
push str.__MOVE
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x200
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x450]
not ecx
dec ecx
sub edx, ecx
lea esi, [esp + ecx + 0x40]
push edx
push esi
push eax
call ebp
push esi
push esi
call ebx
lea ecx, [esp + 0x40]
push 0x425104
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x200
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x454]
not ecx
dec ecx
sub edx, ecx
lea esi, [esp + ecx + 0x40]
push edx
push esi
push eax
call ebp
push esi
push esi
jmp 0x4066ad
lea ecx, [esp + 0x40]
push str.__DEL
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov edx, 0x200
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x450]
not ecx
dec ecx
sub edx, ecx
lea edi, [esp + ecx + 0x40]
push edx
push edi
push eax
call ebp
push edi
push edi
call ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::GetPosition
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x406729
mov edx, dword [0x42a01c]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push edx
push eax
call edi
add esp, 8
test eax, eax
je 0x40671d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x40]
push ecx
push edx
call edi
add esp, 8
test eax, eax
je 0x40679c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::GetPosition
mov esi, eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x4066cc
jmp 0x406729
push 0
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStdioFile::Seek
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::WriteString
push 0x425794
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::WriteString
mov edx, dword [0x42a01c]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CStdioFile::WriteString
push 0x425794
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CStdioFile::WriteString
mov eax, dword [0x42a00c]
lea ecx, [esp + 0x10]
push eax
push str.copy___0__s.avp___nul_ndel___0
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CStdioFile::WriteString
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::GetPosition
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::SetLength
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [esp + 0x14]
mov byte [esp + 0x448], 2
call fcn.00419576
lea ecx, [esp + 0x10]
mov byte [esp + 0x448], 1
call fcn.004193cc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x448], 0
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x28]
mov dword [esp + 0x448], 0xffffffff
call fcn.004193cc
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
add esp, 0x43c
ret
mov eax, dword [esp + 0x448]
mov ecx, dword [esp + 0x444]
push 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [esp + 0x434]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x43c
ret