Function at 0x4117bd
Capabilities:
Delete file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c8b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov dword [ebp - 0x68], ecx
mov ecx, dword [ebp + 8]
call fcn.00415cb0
test eax, eax
jg 0x411803
push str.CSyncEngine::HandleRegisterTypeFilesByRegSvr32__register_file_item_is_0.
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0xc
xor eax, eax
jmp 0x411baf
mov dword [ebp - 0x2c], 0
push 0x4704e0
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x2c]
call fcn.0044fb09
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 1
mov eax, dword [0x4767b4]
push eax
push 0x470500
lea ecx, [ebp - 0x30]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.0045ab40
mov byte [ebp - 4], 2
push 0
lea ecx, [ebp - 0x30]
call fcn.004020c0
push eax
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4118c4
push 0
push 0x10
push 0x470510
call sub.MFC42.DLL_AfxMessageBox_1
mov dword [ebp - 0x54], 0xfffffffe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CFileFind::CFileFind
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x54]
jmp 0x411baf
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0xe8]
cmp dword [eax + 0x28], 1
jne 0x411908
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
jne 0x411908
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__OleInitialize___is_failed.
push 4
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00415db0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x411b5d
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call fcn.00415dd0
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0x1c], 2
jne 0x411b58
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0x30], 0
je 0x411b58
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0xe8]
cmp dword [edx + 0x28], 2
jne 0x411a8b
push 0x5c
mov ecx, dword [ebp - 0x40]
add ecx, 0x14
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jle 0x411a63
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x14
call sub.MFC42.DLL_CString::Left
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [ebp - 0x40]
add edx, 0x14
push edx
push 0x4705b4
lea eax, [ebp - 0x48]
push eax
call sub.MFC42.DLL_operator
mov byte [ebp - 4], 4
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x58], esp
lea edx, [ebp - 0x48]
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea edx, [ebp - 0x30]
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.00414f77
mov word [ebp - 0x76], ax
movsx eax, word [ebp - 0x76]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x411a2d
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x14]
push edx
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__StartExeFileByShellExecute__s__failed__GetLastError_____d
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x14
jmp 0x411a49
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x14]
push edx
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__Registered_by_StartExeFileByShellExecute__s_.
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
jmp 0x411a86
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x14]
push edx
push str.CXSyncExeDlg::HandleRegisterTypeFilesByRegSvr32__Invalid_registry_file__s_.
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
jmp 0x411b58
cmp dword [ebp - 0x3c], 0
je 0x411aa2
mov ecx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.00414ad3
mov dword [ebp - 0x7c], eax
jmp 0x411aa9
mov dword [ebp - 0x7c], 0
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 1
jne 0x411ad7
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x14]
push ecx
push str.CSyncEngine::HandleRegisterTypeFilesByRegSvr32__File__s__is_registered.
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
jmp 0x411b58
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x68]
call fcn.00411bbf
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x411b58
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x14]
push edx
push str.CSyncEngine::HandleRegisterTypeFilesByRegSvr32__Delete_Local_Flle___s
push 3
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
mov ecx, dword [ebp - 0x40]
add ecx, 0x14
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x411b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x14]
push edx
push str.CSyncEngine::ProcessRegisterFileByRegSvr32__DeleteFile__s__Error__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 - 0x34], 0
jmp 0x411913
cmp dword [ebp - 0x34], 1
jne 0x411b8a
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CFileFind::CFileFind
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x60]
jmp 0x411baf
mov dword [ebp - 0x64], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CFileFind::CFileFind
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4