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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42ac48
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x418fdb
mov ecx, dword [edi + 0x94]
push str.CXSyncExeDlg::ProcessRegisterFile2ByRegSvr32__Unknown_file_path.
push 4
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov eax, dword [esi]
mov ecx, dword [edi + 0x94]
push ebp
push eax
mov edx, dword [ecx + 0xd0]
push str.CXSyncExeDlg::ProcessRegisterFile2ByRegSvr32__Target_file___s
push 1
push edx
call fcn.00407c90
add esp, 0x10
mov ecx, esi
push 0x5c
call sub.MFC42.DLL_CString::ReverseFind
mov ebp, eax
lea eax, [esp + 0x10]
push ebp
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
inc ebp
lea ecx, [esp + 0xc]
push ebp
push ecx
mov ecx, esi
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::Mid
push 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0xc]
mov ecx, dword [edi + 0x94]
push edx
push 0
add ecx, 0x1a0
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x30]
push str._s_regsvr32.exe__s__s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x28]
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [edi + 0x94]
push eax
push str.CXSyncExeDlg::ProcessRegisterFile2ByRegSvr32__Cmd_Str___s
push 1
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x28]
push 0
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
pop ebp
jg 0x419149
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x94]
push eax
mov eax, dword [esi]
mov edx, dword [ecx + 0xd0]
push eax
push str.CXSyncExeDlg::ProcessRegisterFile2ByRegSvr32__WinExec__s__Fail__ErrCode___d
push 4
push edx
call fcn.00407c90
mov ecx, dword [edi + 0x94]
add esp, 0x14
lea eax, [esp + 0x10]
mov ecx, dword [ecx + 0xd0]
push eax
call fcn.00407370
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 0xfffffffe
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov edx, dword [esi]
push eax
mov eax, dword [edi + 0x94]
push edx
push str.CXSyncExeDlg::ProcessRegisterFile2ByRegSvr32__File__s__is_registered._RetVal___d
push 2
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
add esp, 0x14
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4