Function at 0x42eac0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x43de61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x324
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x338], ebx
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esp + 0x340]
push 1
push 0x44e718
push edi
mov byte [esp + 0x344], 1
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x42eb36
mov eax, dword [str.XStudioSyncVTRun1.exe]
lea ecx, [esp + 0xc]
push eax
push 0x450ba8
push str._s_s
push ecx
jmp 0x42eb4c
mov edx, dword [str.XStudioSyncVTRun2.exe]
lea eax, [esp + 0xc]
push edx
push 0x450ba8
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esi + 0xd4]
add esp, 0x10
lea edx, [esp + 0x14]
push ecx
push 0x450ba8
push str._s_s
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0x10
lea eax, [esp + 0x218]
push eax
push ecx
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x42ebd8
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x42ebd8
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jne 0x42ebd8
mov edx, dword [esp + 0x1c]
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
lea ecx, [esp + 0x220]
mov dword [eax], edx
lea eax, [esp + 0x14]
push eax
call fcn.00409c70
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3c
jle 0x42ecce
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, ebx
jne 0x42ecce
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x338], 2
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
lea eax, [esp + 0x1c]
push 0x200
push eax
push 0x400
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp eax, ebx
jne 0x42ec54
push esi
lea ecx, [esp + 0x14]
push 0x44ec00
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x42ec70
lea edx, [esp + 0x18]
mov byte [esp + eax + 0x18], bl
push edx
push esi
lea eax, [esp + 0x18]
push 0x44eb98
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
cmp esi, 2
jne 0x42ecaf
lea ecx, [esp + 0x10]
mov byte [esp + 0x338], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x338], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x338], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x42ed1b
mov ecx, dword [esp + 0x10]
push ebx
push ebx
push ecx
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x338], 1
call sub.MFC42.DLL_CString::CString
jmp 0x42ecf5
mov ecx, esi
call fcn.0042ed40
cmp eax, 5
push edi
jle 0x42ece9
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.0042ee10
jmp 0x42ecf5
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.0042ef30
lea ecx, [esp + 0x14]
mov byte [esp + 0x338], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x338], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x330]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x330
ret 4