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

Disassembly:
mov eax, 0x402900
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x69c
push ebx
push esi
push edi
lea ecx, [ebp - 0x5c]
call fcn.004024c2
xor ebx, ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.004024c2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004024c2
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0x4049c4
push edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], ebx
call esi
push 0x4047c4
call esi
lea eax, [ebp - 0x6a8]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
lea eax, [ebp - 0x6a8]
push 0x40
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x401756
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::GetLength
mov esi, eax
cmp esi, 0x4200
ja 0x40173a
xor esi, esi
jmp 0x401a03
push esi
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push esi
push eax
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::Read
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::Close
lea eax, [ebp - 0x14]
push eax
call fcn.004015d4
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 - 0x4a8]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov esi, dword [ebp - 0x10]
mov eax, 0xf1f2f3f4
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [esi + 0x20], eax
pop ecx
jne 0x4017d8
push str.0301
lea eax, [ebp - 0x4a8]
push str.ISDV
push eax
lea eax, [ebp - 0x2a8]
push str._s_s_s.exe
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
lea eax, [ebp - 0x2a8]
mov ecx, 0x4050cc
push eax
call fcn.00402474
jmp 0x4018ea
mov esi, dword [sym.imp.MSVCRT.dll_swprintf]
lea eax, [ebp - 0x4a8]
push str.ISDViewer.exe
push eax
lea eax, [ebp - 0x2a8]
push str._s_s
push eax
mov dword [0x405100], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0x10
lea eax, [ebp - 0x2a8]
push ebx
push eax
lea eax, [ebp - 0x6a8]
push eax
call edi
push str.0301
lea eax, [ebp - 0x4a8]
push str.ISDV
push eax
lea eax, [ebp - 0x2a8]
push str._s_s_s.exe
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x2a8]
mov ecx, 0x4050cc
push eax
call fcn.00402474
lea eax, [ebp - 0x2a8]
push ebx
push eax
lea eax, [ebp - 0x6a8]
push eax
call edi
lea ecx, [ebp - 0x2c]
call fcn.004024c2
push ebx
lea eax, [ebp - 0x2a8]
push 2
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CFile::Open
cmp eax, ebx
je 0x4018d6
push ebx
push 0x20
lea ecx, [ebp - 0x2c]
call sub.MFC42u.DLL_CFile::Seek
lea eax, [ebp - 0x1c]
push 4
push eax
lea ecx, [ebp - 0x2c]
call sub.MFC42u.DLL_CFile::Write
push ebx
lea ecx, [ebp - 0x2c]
push dword [0x404094]
call sub.MFC42u.DLL_CFile::Seek
push 0x4a
lea eax, [ebp - 0xa8]
push 0x20
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x2c]
push 0x4a
push eax
call sub.MFC42u.DLL_CFile::Write
lea ecx, [ebp - 0x2c]
call sub.MFC42u.DLL_CFile::Close
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CFile::CFile
mov esi, dword [ebp - 0x10]
mov edi, 0x4049c4
lea eax, [esi + 0x40]
push 0x34
push eax
push 0x404590
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x4c]
push ebx
push 0x40
push edi
call sub.MFC42u.DLL_CFile::Open
test eax, eax
jne 0x401966
push ebx
push 0x1041
push edi
lea ecx, [ebp - 0x4c]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x401966
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x404590]
push dword [0x404594]
add eax, esi
push eax
call fcn.004010f5
add esp, 0x10
cmp dword [ebp - 0x10], ebx
je 0x40195e
push dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x10]
call sub.MFC42u.DLL_CFile::Write
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea ecx, [ebp - 0x4c]
call sub.MFC42u.DLL_CFile::Close
push ebx
push 0x40
push 0x4047c4
lea ecx, [ebp - 0x3c]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
jne 0x4019e9
push ebx
push 0x1041
push 0x4047c4
lea ecx, [ebp - 0x3c]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x4019e9
push edi
mov dword [ebp - 0x10], ebx
call sub.MFC42u.DLL_AfxLoadLibrary
mov edi, eax
mov eax, dword [0x40408c]
add eax, edi
cmp eax, ebx
je 0x4019db
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [0x404598]
push dword [0x40459c]
add ecx, esi
push ecx
call eax
add esp, 0x10
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call sub.MFC42u.DLL_CFile::Write
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push edi
call sub.MFC42u.DLL_AfxFreeLibrary
lea ecx, [ebp - 0x3c]
call sub.MFC42u.DLL_CFile::Close
cmp esi, ebx
jne 0x4019f4
push ebx
call sub.MFC42u.DLL_operatordelete
pop ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
push 1
pop esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CFile::CFile
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CFile::CFile
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret