Function at 0x401005
Capabilities:
Copy file
Delete file

Disassembly:
jmp 0x401140
push 0xffffffffffffffff
push 0x402860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.00401544
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x50], 0
call sub.MFC42.DLL_CString::CString_1
push str.htmlpr
lea ecx, [esp + 0x20]
mov byte [esp + 0x50], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x54]
push 1
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 4
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4054a4
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x54]
test eax, eax
setne bl
call fcn.0040152c
test bl, bl
je 0x4011f0
push 0x4054a4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
push 0x4054a0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x18]
push 0
push edx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x4013ba
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov bl, 5
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::FindNextFileA
mov esi, eax
mov eax, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
call dword [eax + 0x40]
test eax, eax
je 0x401251
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40136c
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], bl
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 4
call fcn.0040152c
push 0x7e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40136c
push 0x4055d0
lea ecx, [esp + 0x18]
call fcn.004014fc
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
test eax, eax
jle 0x4012f0
mov edx, dword [esp + 0x10]
inc eax
mov ecx, dword [edx - 8]
cmp eax, ecx
jge 0x4012f0
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 4
call fcn.0040152c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::MakeUpper
mov ecx, dword [esp + 0x14]
push 0x40549c
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x401346
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x40136c
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x24]
call fcn.0040152c
jmp 0x40136c
mov ecx, dword [esp + 0x14]
push 0x405498
push ecx
call ebp
add esp, 8
test eax, eax
jne 0x40136c
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x401376
test esi, esi
jne 0x401224
jmp 0x4013ba
lea eax, [esp + 0x54]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 4
call fcn.0040152c
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x10]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 3
call fcn.0040152c
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 2
call fcn.0040152c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4c], 1
call fcn.0040152c
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 0
call fcn.0040152c
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret