Function at 0x401ce5
Capabilities:
Copy file
Create directory
Delete file

Disassembly:
mov eax, 0x4030c8
call fcn.00402ea0
sub esp, 0x6a8
push ebx
mov dword [ebp - 0x1c], ecx
push esi
push edi
lea ecx, [ebp - 0x48]
call fcn.00402c12
xor ebx, ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.00402c12
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00402c12
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x405974
mov byte [ebp - 4], 2
xor esi, esi
call edi
push 0x405774
call edi
lea eax, [ebp - 0x6b4]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp - 0x6b4]
push 0x40
push eax
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x401d90
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CFile::GetLength
mov edi, eax
cmp edi, 0x4200
jbe 0x402020
push edi
call sub.MFC42u.DLL_operatornew
pop ecx
mov esi, eax
push edi
push esi
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CFile::Read
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CFile::Close
lea eax, [ebp - 0x14]
push eax
call fcn.00401c11
pop ecx
push ebx
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
push dword [eax - 8]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x4b4]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
mov dword [ebp - 0x20], 0xf1f2f3f4
pop ecx
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esi + 0x20]
mov byte [ebp - 4], 5
cmp eax, dword [ebp - 0x20]
jne 0x401e29
push str.0301
lea eax, [ebp - 0x4b4]
push str.ISDV
push eax
lea eax, [ebp - 0x2b4]
push str._s_s_s.exe
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
lea eax, [ebp - 0x2b4]
mov ecx, 0x40607c
push eax
call sub.MFC42u.DLL_CString::operator_1
jmp 0x401f52
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
lea eax, [ebp - 0x4b4]
push str.ISDViewer.exe
push eax
lea eax, [ebp - 0x2b4]
push str._s_s
push eax
mov dword [0x406180], 1
call edi
add esp, 0x10
lea eax, [ebp - 0x2b4]
lea ecx, [ebp - 0x24]
push eax
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp - 0x2b4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
lea eax, [ebp - 0x6b4]
push eax
call ebx
push str.0301
lea eax, [ebp - 0x4b4]
push str.ISDV
push eax
lea eax, [ebp - 0x2b4]
push str._s_s_s.exe
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x2b4]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp - 0x18]
mov ecx, 0x40607c
push eax
call sub.MFC42u.DLL_CString::operator
xor edi, edi
lea eax, [ebp - 0x2b4]
push edi
push eax
lea eax, [ebp - 0x6b4]
push eax
call ebx
lea ecx, [ebp - 0x34]
call fcn.00402c12
push edi
lea eax, [ebp - 0x2b4]
push 2
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CFile::Open
cmp eax, edi
je 0x401f44
push edi
push 0x20
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFile::Seek
lea eax, [ebp - 0x20]
push 4
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFile::Write
push edi
lea ecx, [ebp - 0x34]
push dword [0x4050d8]
call sub.MFC42u.DLL_CFile::Seek
push 0x4a
lea eax, [ebp - 0xb4]
push 0x20
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb4]
lea ecx, [ebp - 0x34]
push 0x4a
push eax
call sub.MFC42u.DLL_CFile::Write
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFile::Close
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CFile::CFile
xor ebx, ebx
lea eax, [esi + 0x40]
push 0x34
push eax
push 0x405540
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x405540]
push dword [0x405544]
add eax, esi
push eax
call fcn.0040125e
mov eax, dword [ebp - 0x10]
add esp, 0x1c
cmp eax, ebx
je 0x401f9f
mov ecx, dword [ebp - 0x1c]
push eax
mov dword [ecx + 0xc4], eax
call fcn.0040145a
pop ecx
mov dword [0x406184], eax
push dword [0x4050d0]
push dword [0x406184]
call fcn.0040185b
pop ecx
cmp eax, ebx
pop ecx
je 0x401fee
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [0x405548]
push dword [0x40554c]
add ecx, esi
push ecx
call eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
cmp eax, ebx
je 0x401fee
mov ecx, dword [ebp - 0x1c]
push eax
mov dword [ecx + 0xc8], eax
call fcn.0040145a
pop ecx
mov dword [0x406188], eax
cmp esi, ebx
jne 0x401ff9
push ebx
call sub.MFC42u.DLL_operatordelete
pop ecx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push 1
pop ebx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CFile::CFile
and byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call sub.MFC42u.DLL_CFile::CFile
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret