Function at 0x403be0
Capabilities:
Reference sql statements

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str._n_tif_exists__select__from_sysobjects_where_name__REPL_UPD_TASK_NAMES__n_t_tDROP_TABLE_REPL_UPD_TASK_NAMES_n_tif_exists__select__from_sysobjects_where_name__REPL_UPD_PUBLISHERS__n_t_tDROP_TABLE_REPL_UPD_PUBLISHERS_n_tif_exists__select__from_sysobjects_where_name__REPL_UPD_SUBSCRIBERS__n_t_tDROP_TABLE_REPL_UPD_SUBSCRIBERS_n_tif_exists__select__from_sysobjects_where_name__REPL_UPD_DISTPUBLISHERS__n_t_tDROP_TABLE_REPL_UPD_DISTPUBLISHERS_n_n
mov esi, ecx
call fcn.00401010
add esp, 4
push 0
mov edi, eax
mov eax, dword [esi + 0xa20]
mov ecx, dword [eax]
push 0
push edi
push eax
call dword [ecx + 0x16c]
mov ebx, eax
test ebx, ebx
setl byte [ebp - 1]
test edi, edi
je 0x403c23
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [ebp - 1]
test al, al
jne 0x403c69
push str._tDECLARE__name_varchar_30__n_tDECLARE__taskname_varchar_100__n_tDECLARE__cmd_varchar_255__n_tDECLARE__distname_varchar_30__n_tDECLARE__distdb_varchar_30__n_tDECLARE__proc_varchar_255__n_tDECLARE__retcode_int_n_tDECLARE__distproc_varchar_100__n__n_t__Drop_publishing___n_n_t__n_t_Get_the_distribution_server_name_and_db_name_n_t__n_tEXEC_sp_helpdistributor__distributor___distname_OUTPUT__n_t_t_distribdb___distdb_OUTPUT_n_n_tCREATE_TABLE_REPL_UPD_TASK_NAMES__name_varchar_100___n_tif___ERROR____0_n_t_tGOTO_FAILURE_n_t__n_t_Copy_off_tasks_that_will_need_dropping_at_the_distributor._n_t__n____DECLARE_hC_CURSOR_FOR__n_t_tSELECT_name_FROM_master..sysdatabases__n_t_t_tWHERE__category__1_____0_n_tFOR_READ_ONLY_n_n____OPEN_hC_n____FETCH_hC_INTO__name_n____WHILE____fetch_status_____1__n____BEGIN_n_n_t_tSELECT__proc__RTRIM__distname____n_t_t_t.master.dbo.sp_sqlexec_n_t_t_n_t_tSELECT__cmd___n_t_t_tSELECT_name_FROM_msdb.dbo.systasks_view_st___n_t_t_t_tWHERE___n_t_t_t_t_t__st.name_LIKE__t_n_t_t_t_t_t_t____SERVERNAME______name__________AND__n_t_t_t_t_tsubsystem______Distribution______OR___n_t_t_t_t_t__st.name_LIKE____n_t_t_t_t_t____SERVERNAME_________Cleanup____AND___n_t_t_t_t_tsubsystem______TSQL______n_n_t_t_tINSERT_INTO_REPL_UPD_TASK_NAMES_EXEC__retcode___proc__cmd_n_t_t_tIF____ERROR____0_OR__retcode____0_n_t_t_tBEGIN_n_t_t_t_tCLOSE_hC_n_t_t_t_tDEALLOCATE_hC_n_t_t_t_tGOTO_FAILURE_n_t_t_tEND_n_n____________FETCH_hC_INTO__name_n________END_n____CLOSE_hC_n____DEALLOCATE_hC_n_n_n_tCREATE_TABLE_REPL_UPD_PUBLISHERS__name_varchar_100___n_tif___ERROR____0_n_t_tGOTO_FAILURE_n_tINSERT_REPL_UPD_PUBLISHERS_SELECT_srvname__FROM_master.dbo.sysservers_WHERE__srvstatus__2_____0_n_t_n_tCREATE_TABLE_REPL_UPD_SUBSCRIBERS__name_varchar_100___n_tif___ERROR____0_n_t_tGOTO_FAILURE_n_tINSERT_REPL_UPD_SUBSCRIBERS_SELECT_srvname__FROM_master.dbo.sysservers_WHERE__srvstatus__4_____0_n_n_tCREATE_TABLE_REPL_UPD_DISTPUBLISHERS__name_varchar_100___n_tif___ERROR____0_n_t_tGOTO_FAILURE_n_tINSERT_REPL_UPD_DISTPUBLISHERS_SELECT_srvname__FROM_master.dbo.sysservers_WHERE__srvstatus__16_____0_n_n_n_n_tRETURN_n_nFAILURE:____n_tRAISERROR__Uninstall_replication_failed.__16___1__n_n
call fcn.00401010
add esp, 4
push 0
mov edi, eax
mov eax, dword [esi + 0xa20]
mov edx, dword [eax]
push 0
push edi
push eax
call dword [edx + 0x16c]
mov ebx, eax
test ebx, ebx
setl byte [ebp - 1]
test edi, edi
je 0x403c62
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, byte [ebp - 1]
test al, al
je 0x403c7b
mov ecx, esi
push ebx
call fcn.00403310
mov dword [esi + 0xa0c], 0xc
mov eax, dword [esi + 0xa0c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret