Function at 0x40f600
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42a26c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa9c
push ebp
push esi
push edi
mov esi, ecx
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x2a5]
mov byte [esp + 0x2a4], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xab0], 1
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0xab8]
mov byte [esp + 0xab0], 2
mov ecx, dword [eax - 8]
test ecx, ecx
jg 0x40f685
mov esi, dword [esi + 0xd0]
test esi, esi
je 0x40fb6a
push str.CXSyncExeApp::CopyAndRun__File_Path_Length__0__So_Return
push 2
push esi
call fcn.00407c90
add esp, 0xc
jmp 0x40fb6a
push 0x2e
lea ecx, [esp + 0xabc]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
test edi, edi
jge 0x40f6bc
mov esi, dword [esi + 0xd0]
test esi, esi
je 0x40f9b6
push str.CXSyncExeApp::CopyAndRun__ReverseFind___Fail...
push 2
push esi
call fcn.00407c90
add esp, 0xc
jmp 0x40f9b6
lea ecx, [esp + 0x18]
push edi
push ecx
lea ecx, [esp + 0xac0]
call sub.MFC42.DLL_CString::Left
lea edx, [esp + 0x14]
push edi
push edx
lea ecx, [esp + 0xac0]
mov byte [esp + 0xab8], 3
call sub.MFC42.DLL_CString::Mid
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x14]
push str._sRun_s
push edx
mov byte [esp + 0xac0], 4
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0xac8]
add esp, 0x10
lea eax, [esp + 0x18c]
push eax
push ecx
call sub.MFC42.DLL_CFile::GetStatus
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f79f
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x74]
push edx
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x40f79f
mov ecx, dword [esp + 0x198]
mov eax, dword [esp + 0x80]
cmp ecx, eax
jne 0x40f79f
mov edx, dword [esp + 0x78]
push ecx
mov eax, esp
mov dword [esp + 0x14], esp
lea ecx, [esp + 0x194]
mov dword [eax], edx
lea eax, [esp + 0x14]
push eax
call fcn.0040c350
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
jne 0x40f79f
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x40f8bd
mov ecx, dword [esp + 0xc]
push ecx
push str.CXSyncExeApp::CopyAndRun__There_is_already_the_same_file.__s_
push 2
push eax
call fcn.00407c90
add esp, 0x10
jmp 0x40f8bd
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x40f7be
mov edx, dword [esp + 0xc]
push edx
push str.CXSyncExeApp::CopyAndRun__ClearReadOnlyProperty__File__s_
push 2
push eax
call fcn.00407c90
add esp, 0x10
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00403300
mov eax, dword [esi + 0xd0]
add esp, 4
test eax, eax
je 0x40f7f6
mov ecx, dword [esp + 0xc]
push ecx
push str.CXSyncExeApp::CopyAndRun__DeleteFile__File__s_
push 2
push eax
call fcn.00407c90
add esp, 0x10
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40f841
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x40f841
call ebp
push eax
mov eax, dword [esi + 0xd0]
push str.CXSyncExeApp::CopyAndRun__DeleteFile___Fail__ErrCode___d
push 4
push eax
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0xd0]
call fcn.00407370
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x40f868
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0xab8]
push edx
push ecx
push str.CXSyncExeApp::CopyAndRun__CopyFile__Src__s__Dst__s_
push 2
push eax
call fcn.00407c90
add esp, 0x14
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0xab8]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40f8bd
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x40f8bd
call ebp
mov ecx, dword [esi + 0xd0]
push eax
push str.CXSyncExeApp::CopyAndRun__CopyFile___Fail__ErrCode___d
push 4
push ecx
call fcn.00407c90
mov ecx, dword [esi + 0xd0]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call fcn.00407370
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [esp + 0xac0]
mov eax, dword [esp + 0xabc]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], edx
push eax
push ecx
lea edx, [esp + 0x2ac]
push 0x438018
push edx
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], 5
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esi + 0xd0]
add esp, 0x10
test eax, eax
je 0x40f94c
lea ecx, [esp + 0x2a4]
push ecx
push str.CXSyncExeApp::CopyAndRun__CmdPath___s
push 2
push eax
call fcn.00407c90
add esp, 0x10
push 0x5c
lea ecx, [esp + 0xabc]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
test edi, edi
jge 0x40f9fa
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x40f994
push 0
lea ecx, [esp + 0xabc]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0xd0]
push eax
push edi
push str.CXSyncExeApp::CopyAndRun__nPos___d__Path___s
push 2
push edx
call fcn.00407c90
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0xab0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xab0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0xab0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xab8]
mov byte [esp + 0xab0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xabc]
mov dword [esp + 0xab0], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x40fba8
lea eax, [esp + 0x1c]
push edi
push eax
lea ecx, [esp + 0xac0]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x20]
lea edx, [esp + 0x30]
push ecx
push edx
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0xabc], 5
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
push 0x30
push 0
push 0
lea eax, [esp + 0x2c0]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
test edi, edi
jne 0x40fb04
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x40fa8b
call ebp
mov ecx, dword [esi + 0xd0]
push eax
push edi
push str.CXSyncExeApp::CopyAndRun__CreateProcess___Fail__RetVal___d__ErrCode___d
push 4
push ecx
call fcn.00407c90
mov ecx, dword [esi + 0xd0]
add esp, 0x14
lea edx, [esp + 0x10]
push edx
call fcn.00407370
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xab0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xab0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xab0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0xab0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xab8]
mov byte [esp + 0xab0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xabc]
mov dword [esp + 0xab0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffffc
jmp 0x40fba8
mov esi, dword [esi + 0xd0]
test esi, esi
je 0x40fb23
mov eax, dword [esp + 0x28]
push eax
push str.CXSyncExeApp::CopyAndRun__Agent_Start__PID___d
push 2
push esi
call fcn.00407c90
add esp, 0x10
mov ecx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x24]
push edx
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0xab0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xab0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xab0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0xab0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xab8]
mov byte [esp + 0xab0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xabc]
mov dword [esp + 0xab0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0xaa8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0xaa8
ret 0xc