Function at 0x410290
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x42a372
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x988
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x9a0], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x9a0], 2
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x9a8]
xor ebx, ebx
mov byte [esp + 0x9a0], 3
mov eax, dword [eax - 8]
cmp eax, ebx
jg 0x410311
mov esi, dword [esi + 0xd0]
cmp esi, ebx
je 0x410a64
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__File_Path_Length__0__So_Return
push 2
push esi
call fcn.00407c90
add esp, 0xc
jmp 0x410a64
push 0x2e
lea ecx, [esp + 0x9ac]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
cmp edi, ebx
jge 0x410348
mov esi, dword [esi + 0xd0]
cmp esi, ebx
je 0x410836
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__ReverseFind___Fail...
push 2
push esi
call fcn.00407c90
add esp, 0xc
jmp 0x410836
lea ecx, [esp + 0x20]
push edi
push ecx
lea ecx, [esp + 0x9b0]
call sub.MFC42.DLL_CString::Left
lea edx, [esp + 0x24]
push edi
push edx
lea ecx, [esp + 0x9b0]
mov byte [esp + 0x9a8], 4
call sub.MFC42.DLL_CString::Mid
lea eax, [esp + 0x1c]
push edi
push eax
lea ecx, [esp + 0x9b0]
mov byte [esp + 0x9a8], 5
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9a0], 6
call sub.MFC42.DLL_CString::MakeLower
cmp dword [esi + 0xd0], ebx
je 0x4103c8
push ebx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0xd0]
push eax
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__strTemp3___s
push 2
push ecx
call fcn.00407c90
add esp, 0x10
push str.iexplore
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
jne 0x4105bd
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x18]
push str._sRun_s
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x9b8]
add esp, 0x10
lea edx, [esp + 0x280]
push edx
push eax
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x410486
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x80]
push ecx
push edx
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
je 0x410486
mov eax, dword [esp + 0x28c]
mov ecx, dword [esp + 0x8c]
cmp eax, ecx
jne 0x410486
push ecx
mov ecx, dword [esp + 0x88]
mov eax, esp
mov dword [esp + 0x18], esp
lea edx, [esp + 0x18]
mov dword [eax], ecx
push edx
lea ecx, [esp + 0x28c]
call fcn.0040c350
mov eax, dword [eax]
cdq
xor eax, edx
sub eax, edx
jne 0x410486
mov eax, dword [esi + 0xd0]
cmp eax, ebx
je 0x41072a
mov ecx, dword [esp + 0x10]
push ecx
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__There_is_already_the_same_file.__s_
push 2
push eax
jmp 0x410722
mov eax, dword [esi + 0xd0]
cmp eax, ebx
je 0x4104a5
mov edx, dword [esp + 0x10]
push edx
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__ClearReadOnlyProperty__File__s_
push 2
push eax
call fcn.00407c90
add esp, 0x10
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00403300
mov eax, dword [esi + 0xd0]
add esp, 4
cmp eax, ebx
je 0x4104dd
mov ecx, dword [esp + 0x10]
push ecx
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__DeleteFile__File__s_
push 2
push eax
call fcn.00407c90
add esp, 0x10
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x410533
cmp dword [esi + 0xd0], ebx
je 0x410533
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x410533
call edi
push eax
mov eax, dword [esi + 0xd0]
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__DeleteFile___Fail__ErrCode___d
push 4
push eax
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xd0]
call fcn.00407370
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0xd0]
cmp eax, ebx
je 0x41055a
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x9a8]
push edx
push ecx
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__CopyFile__Src__s__Dst__s_
push 2
push eax
call fcn.00407c90
add esp, 0x14
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x9a8]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, ebx
jne 0x41072a
cmp dword [esi + 0xd0], ebx
je 0x41072a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0xd0]
push eax
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__CopyFile___Fail__ErrCode___d
push 4
push ecx
call fcn.00407c90
mov ecx, dword [esi + 0xd0]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call fcn.00407370
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x41072a
cmp dword [esi + 0xd0], ebx
je 0x4105e9
push ebx
lea ecx, [esp + 0x9ac]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0xd0]
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__strProgFilePath___s__So_dont_copy
push 2
push eax
call fcn.00407c90
add esp, 0x10
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x81]
mov byte [esp + 0x80], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x599]
mov byte [esp + 0x598], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea ecx, [esp + 0x84]
push 0x26
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x59c]
push str._s__x86_
push eax
call ebp
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x3a5]
mov byte [esp + 0x3a4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x7a5]
mov byte [esp + 0x7a4], bl
rep stosd dword es:[edi], eax
add esp, 0xc
lea ecx, [esp + 0x598]
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x39c]
push str._sInternet_ExplorerIEXPLORE.EXE
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x80]
lea ecx, [esp + 0x798]
push eax
push str._sInternet_ExplorerIEXPLORE.EXE
push ecx
call ebp
add esp, 0xc
lea edx, [esp + 0x280]
lea eax, [esp + 0x398]
push edx
push eax
call sub.MFC42.DLL_CFile::GetStatus
cmp eax, 1
jne 0x4106e5
lea ecx, [esp + 0x398]
lea edx, [esp + 0x10]
push ecx
push 0x435020
push edx
jmp 0x4106f7
lea eax, [esp + 0x798]
lea ecx, [esp + 0x10]
push eax
push 0x435020
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0xd0]
add esp, 0xc
cmp eax, ebx
je 0x41072a
push ebx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0xd0]
push eax
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__iexplorer_path___s
push 2
push edx
call fcn.00407c90
add esp, 0x10
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], eax
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edx, dword [esp + 0x9b0]
mov eax, dword [esp + 0x9ac]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], edx
push eax
push ecx
lea edx, [esp + 0x20]
push 0x438018
push edx
mov dword [esp + 0x78], 1
mov word [esp + 0x7c], 5
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 0xd0]
add esp, 0x10
cmp eax, ebx
je 0x4107be
push ebx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0xd0]
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__CmdPath___s
push 2
push eax
call fcn.00407c90
add esp, 0x10
push 0x5c
lea ecx, [esp + 0x9ac]
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
cmp edi, ebx
jge 0x41088a
cmp dword [esi + 0xd0], ebx
je 0x410803
push ebx
lea ecx, [esp + 0x9ac]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0xd0]
push eax
push edi
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__nPos___d__Path___s
push 2
push ecx
call fcn.00407c90
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9a0], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x9a0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x9a0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x9a0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x9a0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x9a8]
mov byte [esp + 0x9a0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x9ac]
mov dword [esp + 0x9a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x410ab2
lea edx, [esp + 0x28]
push edi
push edx
lea ecx, [esp + 0x9b0]
call sub.MFC42.DLL_CString::Left
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x3c]
push eax
push ecx
push ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x9ac], 7
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
push 0x30
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
mov eax, dword [esi + 0xd0]
cmp edi, ebx
jne 0x4109b6
cmp eax, ebx
je 0x41091c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0xd0]
push eax
push edi
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__CreateProcess___Fail__RetVal___d__ErrCode___d
push 4
push edx
call fcn.00407c90
mov ecx, dword [esi + 0xd0]
add esp, 0x14
lea eax, [esp + 0x14]
push eax
call fcn.00407370
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x9a0], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9a0], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x9a0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x9a0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x9a0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x9a0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x9a8]
mov byte [esp + 0x9a0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x9ac]
mov dword [esp + 0x9a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffffc
jmp 0x410ab2
cmp eax, ebx
je 0x4109e5
mov ecx, dword [esp + 0x34]
push ecx
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__XFrameBrowser_Start__PID___d
push 2
push eax
call fcn.00407c90
mov edx, dword [esi + 0xd0]
add esp, 0x10
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__Before_WaitForInputIdle_INFINITE_
push 2
push edx
call fcn.00407c90
add esp, 0xc
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov esi, dword [esi + 0xd0]
cmp esi, ebx
je 0x410a0c
push str.CXSyncExeApp::CopyAndRunXFrameBrowser__After_WaitForInputIdle_INFINITE_
push 2
push esi
call fcn.00407c90
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x30]
push edx
call esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x9a0], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x9a0], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x9a0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x9a0], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x9a0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x9a0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x9a8]
mov byte [esp + 0x9a0], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x9ac]
mov dword [esp + 0x9a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x998]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x994
ret 0xc