Function at 0x4187e0
Capabilities:
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42abd0
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
mov ebp, dword [esp + 0x58]
push esi
push edi
mov esi, ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jg 0x41882c
mov eax, dword [esi + 0x94]
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__Reg_file_item_is_0.
push 1
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
add esp, 0xc
xor eax, eax
jmp 0x418cba
lea edi, [esi + 0x214]
push eax
push 0
mov ecx, edi
mov dword [esp + 0x20], eax
call fcn.004052d0
push 0
mov ecx, edi
call fcn.00405300
lea ebx, [esi + 0x26c]
push 0x64
push 0
mov ecx, ebx
call fcn.004052d0
push 0
mov ecx, ebx
call fcn.00405300
mov edi, dword [esp + 0x64]
cmp edi, 1
jne 0x418888
push 0x440b68
lea ecx, [esi + 0x37c]
call fcn.00405af0
push 0x43c178
mov ecx, esi
call fcn.004198e0
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], 1
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x94]
push 0
add ecx, 0x1a0
mov dword [esp + 0x5c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea edx, [esp + 0x64]
push str._s_regsvr32.exe
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x34]
call fcn.0042855e
mov eax, dword [esp + 0x60]
push 0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x418924
cmp edi, 1
jne 0x4188fb
push eax
push 0x10
push 0x43c110
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffffe
jmp 0x418cba
mov ecx, dword [esi + 0x94]
push str.______________________________________________________________________________________S
push 2
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
mov eax, dword [esi + 0x90]
mov edi, 1
add esp, 0xc
mov dword [esp + 0x1c], 0
cmp dword [eax + 0x98], edi
jne 0x418990
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x418990
mov edx, dword [esi + 0x94]
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__OleInitialize___is_failed.
push 4
mov eax, dword [edx + 0xd0]
push eax
call fcn.00407c90
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp + 4]
mov byte [esp + 0x58], 2
test eax, eax
je 0x418c17
jmp 0x4189b3
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 8]
mov ecx, dword [eax]
mov ebp, 2
mov dword [esp + 0x28], ecx
cmp dword [edi + 0x1c], ebp
jne 0x418c06
mov eax, dword [edi + 0x30]
test eax, eax
je 0x418c06
mov eax, dword [edi + 0x10]
lea ecx, [esi + 0x37c]
push eax
call fcn.00405af0
push 0x32
mov ecx, ebx
call fcn.00405300
push 0
mov ecx, esi
call fcn.00414b40
mov edx, dword [esi + 0x90]
cmp dword [edx + 0x98], ebp
jne 0x418b35
add edi, 0x14
push 0x5c
mov ecx, edi
call sub.MFC42.DLL_CString::ReverseFind
xor ebp, ebp
cmp eax, ebp
jle 0x418b0a
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Left
push ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
lea ecx, [esp + 0x24]
push 0x43c0c0
push ecx
call sub.MFC42.DLL_operator_1
push 1
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
mov byte [esp + 0x64], 4
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0x6c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
mov byte [esp + 0x68], 5
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x64], 4
call fcn.00419900
movsx eax, ax
cmp eax, ebp
je 0x418ac4
mov dword [esp + 0x64], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__StartExeFileByShellExecute__s__failed__GetLastError_____d
push 4
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
add esp, 0x14
jmp 0x418ae9
push ebp
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esi + 0x94]
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__Registered_by_StartExeFileByShellExecute__s_.
push 1
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x58], 2
call sub.MFC42.DLL_CString::CString
jmp 0x418ba8
push ebp
mov ecx, edi
mov dword [esp + 0x68], ebp
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__Invalid_registry_file__s_.
push 4
mov eax, dword [edx + 0xd0]
push eax
call fcn.00407c90
add esp, 0x10
jmp 0x418ba8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x418b94
push edi
mov ecx, esi
call fcn.0041f120
cmp eax, 1
jne 0x418b73
push 0
lea ecx, [edi + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 0x94]
push eax
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__File__s__is_registered.
push 1
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
add esp, 0x10
jmp 0x418ba8
mov ecx, dword [esi + 0x94]
push eax
mov eax, dword [edi + 0x14]
mov edx, dword [ecx + 0xd0]
push eax
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__ProcessRegistryFileByLoadLibrary__s__error_Return_d_.
push 1
push edx
call fcn.00407c90
add esp, 0x14
push edi
mov ecx, esi
call fcn.00418cd0
test eax, eax
jge 0x418ba8
mov dword [esp + 0x64], 0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
cmp edi, ebp
jg 0x418c01
push 0x64
mov ecx, ebx
call fcn.00405300
push edi
lea ecx, [esi + 0x214]
call fcn.00405300
fild dword [esp + 0x14]
sub esp, 8
lea eax, [esp + 0x18]
fmul qword [0x42e2f0]
fidiv dword [esp + 0x20]
fstp qword [esp]
push ebp
push edi
push str._d____d____3.1lf___
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
add esp, 0x18
push ecx
lea ecx, [esi + 0x2c4]
call fcn.00405af0
inc edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4189af
mov edi, 1
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x214]
push edx
call fcn.00405300
push 0x64
mov ecx, ebx
call fcn.00405300
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x418c3e
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [esi + 0x94]
push str.______________________________________________________________________________________E
push 2
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
mov eax, dword [esp + 0x70]
add esp, 0xc
cmp eax, edi
mov byte [esp + 0x58], 1
lea ecx, [esp + 0x10]
jne 0x418c93
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x418cba
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret 8