Function at 0x407996
Capabilities:
Copy file

Disassembly:
mov eax, 0x40f6dc
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x10], esp
xor edi, edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], edi
cmp dword [ebp - 0x30], 0xa
jge 0x407e34
push dword [ebp - 0x30]
lea eax, [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x44], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
call fcn.00407f73
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040e3b4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040e3ae
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.FALSE
push dword [ebp - 0x18]
call esi
pop ecx
test eax, eax
pop ecx
je 0x407e1e
push str.ENDFOR
push dword [ebp - 0x18]
call esi
pop ecx
test eax, eax
pop ecx
je 0x407e34
lea eax, [ebp - 0x3c]
push 1
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x415a2c
push eax
call esi
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x3c]
setne bl
call fcn.0040e3ae
test bl, bl
je 0x407a67
push 0x415a2c
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
push 0x41652c
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::CStdioFile
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_1
push edi
push 0x3002
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CStdioFile::Open
test eax, eax
je 0x407e06
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
cmp esi, 0x8000
jbe 0x407ad9
push 0x10
mov ecx, 0x416998
call sub.MFC42.DLL_CString::LoadStringA
push edi
push edi
push dword [0x416998]
call sub.MFC42.DLL_AfxMessageBox
jmp 0x407d9c
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0x416528
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x407b24
push str.a14loader.arx
lea ecx, [ebp - 0x1c]
call fcn.0040e3ba
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
lea eax, [ebx + 0x1e0]
push eax
call fcn.0040e3b4
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
jmp 0x407b27
mov ebx, dword [ebp - 0x34]
push 0x416514
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x407b61
push str.a15loader.arx
lea ecx, [ebp - 0x1c]
call fcn.0040e3ba
lea eax, [ebx + 0x1e0]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040e3b4
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x416500
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x407b9b
push str.a16loader.arx
lea ecx, [ebp - 0x1c]
call fcn.0040e3ba
lea eax, [ebx + 0x1e4]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040e3b4
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0x4164ec
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x407bd5
push str.a17loader.arx
lea ecx, [ebp - 0x1c]
call fcn.0040e3ba
add ebx, 0x1e8
lea ecx, [ebp - 0x14]
push ebx
call fcn.0040e3b4
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0xa
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
cmp esi, edi
je 0x407dd0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 7
mov eax, dword [eax - 8]
add eax, 0xfffffff9
push eax
lea eax, [ebp - 0x40]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
call fcn.0040e3b4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
call fcn.0040e3ae
push str.acad.rx.bak
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::Close
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, edi
jne 0x407c9a
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_1
mov esi, 0x416998
push 0x11
mov ecx, esi
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::LoadStringA
push esi
lea ecx, [ebp - 0x28]
call fcn.0040e3b4
push 0x4164cc
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x28]
push eax
call sub.MFC42.DLL_CString::operator_1
push edi
push edi
push dword [ebp - 0x28]
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.0040e3ae
push edi
push 0x3002
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::Open
cmp eax, edi
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x20]
je 0x407d8b
call fcn.0040e3ae
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString_1
push 0x4168a0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.0040e3ba
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
push eax
call sub.MFC42.DLL_CStdioFile::ReadString
cmp eax, edi
je 0x407d1c
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x407ce4
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x24]
push eax
call sub.MFC42.DLL_CString::operator_1
push 0xa
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator_2
jmp 0x407ce4
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::Close
push edi
push 0x1002
push dword [ebp - 0x18]
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::Open
cmp eax, edi
je 0x407d78
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov esi, dword [eax - 8]
push esi
call sub.MFC42.DLL_CString::GetBuffer
push esi
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::Write
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.0040e3ae
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.0040e3ae
jmp 0x407df1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.0040e3ae
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.0040e3ae
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0040e3ae
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0040e3ae
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.0040e5a0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040e3ae
xor eax, eax
jmp 0x407e4f
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov esi, dword [eax - 8]
push esi
call sub.MFC42.DLL_CString::GetBuffer
push esi
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::Write
lea ecx, [ebp - 0x5c]
call sub.MFC42.DLL_CStdioFile::Close
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0040e3ae
mov dword [ebp - 4], 4
xor edi, edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.0040e3ae
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.0040e5a0
inc dword [ebp - 0x30]
jmp 0x4079c0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040e3ae
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4