Function at 0x408fe0
Capabilities:
Delete file
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b538
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x409025
mov eax, dword [0x42a950]
push str.CSyncEngine::HandleRegisterTypeFilesByRegSvr32__register_file_item_is_0.
push 1
push eax
call fcn.00404890
add esp, 0xc
xor eax, eax
jmp 0x40933e
mov ecx, dword [edi + 0x2c]
push 0x42a5c8
add ecx, 0x37c
call fcn.00403990
mov ecx, dword [edi + 0x2c]
push 0x426990
add ecx, 0x434
call fcn.00403990
lea ecx, [esp + 0x54]
mov ebp, 1
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x42a804]
lea edx, [esp + 0x54]
push ecx
push str._s_regsvr32.exe
push edx
mov dword [esp + 0x58], 0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.0041a2be
mov eax, dword [esp + 0x54]
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4090d2
push eax
push 0x10
push 0x426928
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0xfffffffe
jmp 0x40933e
mov ecx, dword [edi + 0xe8]
mov dword [esp + 0x18], 0
cmp dword [ecx + 0x28], ebp
jne 0x409113
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
xor edx, edx
test eax, eax
setge dl
mov eax, edx
test eax, eax
mov dword [esp + 0x18], eax
jne 0x409113
mov eax, dword [0x42a950]
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__OleInitialize___is_failed.
push 4
push eax
call fcn.00404890
add esp, 0xc
mov eax, dword [esi + 4]
test eax, eax
je 0x4092f9
mov ebx, 3
jmp 0x409129
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov esi, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov eax, 2
cmp dword [esi + 0x1c], eax
jne 0x4092e8
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4092e8
mov edx, dword [edi + 0xe8]
cmp dword [edx + 0x28], eax
jne 0x409257
add esi, 0x14
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jle 0x409237
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x4c], 2
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
lea edx, [esp + 0x14]
push 0x4268d8
push edx
call sub.MFC42.DLL_operator
push 1
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x58], bl
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x60]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x5c], 4
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
mov byte [esp + 0x58], bl
call fcn.0040bec0
movsx eax, ax
test eax, eax
je 0x4091fe
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x42a950]
push eax
mov eax, dword [esi]
push eax
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__StartExeFileByShellExecute__s__failed__GetLastError_____d
push 4
push ecx
call fcn.00404890
add esp, 0x14
jmp 0x409216
mov edx, dword [esi]
mov eax, dword [0x42a950]
push edx
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__Registered_by_StartExeFileByShellExecute__s_.
push 1
push eax
call fcn.00404890
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString
jmp 0x4092e8
mov ecx, dword [esi]
mov edx, dword [0x42a950]
push ecx
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__Invalid_registry_file__s_.
push 4
push edx
xor ebp, ebp
call fcn.00404890
add esp, 0x10
jmp 0x4092e8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x409288
push esi
mov ecx, edi
call fcn.0040b9d0
cmp eax, 1
jne 0x409288
mov eax, dword [esi + 0x14]
mov ecx, dword [0x42a950]
push eax
push str.CSyncEngine::HandleRegisterTypeFilesByRegSvr32__File__s__is_registered.
push 1
push ecx
call fcn.00404890
add esp, 0x10
jmp 0x4092e8
push esi
mov ecx, edi
call fcn.00409360
test eax, eax
jge 0x4092e8
mov edx, dword [esi + 0x14]
mov eax, dword [0x42a950]
push edx
push str.CSyncEngine::HandleRegisterTypeFilesByRegSvr32__Delete_Local_Flle___s
push ebx
push eax
call fcn.00404890
mov eax, dword [esi + 0x14]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4092e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov edx, dword [0x42a950]
push eax
push ecx
push str.CSyncEngine::ProcessRegisterFileByRegSvr32__DeleteFile__s__Error__ErrCode___d
push 4
push edx
call fcn.00404890
mov ecx, dword [0x42a950]
add esp, 0x14
call fcn.00404d50
xor ebp, ebp
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x409125
cmp ebp, 1
jne 0x40931c
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40933e
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 4