Function at 0x412170
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c97a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.CSyncEngine::ProcessRegisterFileByRegAsm__Cmd_Str_:__s__silent__s
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x14
push 0x5c
mov ecx, dword [ebp + 8]
add ecx, 0x14
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x14
call sub.MFC42.DLL_CString::Left
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x14
call sub.MFC42.DLL_CString::Mid
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edx, [ebp - 0x18]
push edx
push str.__silent
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
push ecx
call sub.MFC42.DLL_operator_4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x28]
push ecx
call sub.MFC42.DLL_operator_1
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [ebp - 0x20]
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x1f
jg 0x412300
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
push str.CSyncEngine::ProcessRegisterFileByRegAsm__WinExec__s__Fail__ErrCode___d
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x14
mov ecx, dword [0x476a9c]
call fcn.004092d8
mov dword [ebp - 0x2c], 0xfffffffe
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x2c]
jmp 0x41235e
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
push str.CSyncEngine::ProcessRegisterFileByRegAsm__File__s__is_registered._RetVal___d
push 2
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x14
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8