Function at 0x4011c0
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40e6d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x44]
mov dword [esp + 0x14c], 0
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x416068
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x401254
push 0x416068
lea ecx, [esp + 0x18]
call fcn.00408bc6
push ecx
lea ecx, [esp + 0x18]
mov eax, esp
mov dword [esp + 0x20], esp
push str.connect.cfg
push ecx
push eax
call sub.MFC42.DLL_operator_1
call fcn.004010b0
add esp, 4
test eax, eax
jne 0x4012d4
lea edx, [esp + 0x44]
push 0xff
push edx
call fcn.00401160
add esp, 8
lea eax, [esp + 0x44]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x416068
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4012d4
push 0x416068
lea ecx, [esp + 0x18]
call fcn.00408bc6
lea edx, [esp + 0x14]
mov ecx, 0x4179a8
push edx
call sub.MFC42.DLL_CString::operator_1
push str.T0002
lea eax, [esp + 0x14]
push 0x4179a8
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push str.T0002_newmodem.ini
lea ecx, [esp + 0x14]
push 0x4179a8
push ecx
call sub.MFC42.DLL_operator_1
push eax
mov ecx, 0x4179a4
mov byte [esp + 0x150], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
call fcn.00408bae
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 2
call fcn.00408bae
push str.autoup1.exe
lea edx, [esp + 0x14]
mov bl, 3
push 0x4179a8
push edx
mov byte [esp + 0x158], bl
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push 0x40
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x158], 4
call sub.MFC42.DLL_CFile::Open
lea ecx, [esp + 0x10]
mov esi, eax
mov byte [esp + 0x14c], bl
call sub.MFC42.DLL_CString::CString
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
test esi, esi
je 0x401437
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::Close
push str.autoupex.exe
lea eax, [esp + 0x20]
push 0x4179a8
push eax
call sub.MFC42.DLL_operator_1
mov esi, dword [eax]
push str.autoup1.exe
lea ecx, [esp + 0x14]
push 0x4179a8
push ecx
mov byte [esp + 0x158], 5
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 0
push esi
push eax
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], bl
call sub.MFC42.DLL_CString::CString
push str.autoup1.exe
lea edx, [esp + 0x20]
push 0x4179a8
push edx
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 6
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [str.syscomm.ini]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x14c], 7
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401505
mov edx, 0x416040
mov esi, edx
mov eax, dword [edx]
mov ecx, dword [0x4179a8]
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esp + 0x24]
push 0
push 0x40
push eax
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4014ed
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [esi]
mov edx, dword [0x4179a8]
push ecx
push edx
lea eax, [esp + 0x28]
push str._sT0002_s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
add esp, 0x10
push 0
push ecx
push edx
call ebp
test eax, eax
je 0x4014ed
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
mov edi, dword [esi + 4]
add esi, 4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, esi
jne 0x401476
call fcn.004016c0
call fcn.00401950
lea ecx, [esp + 0x20]
mov byte [esp + 0x14c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 2
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x34]
mov byte [esp + 0x14c], 0
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x14]
mov dword [esp + 0x14c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x140
ret