Function at 0x65240f50
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x108
push ebp
mov ebp, dword [esp + 0x110]
mov eax, dword [ebp]
mov cl, byte [eax + 0x24]
push esi
xor esi, esi
test cl, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
jne 0x65240fa9
cmp dword [ebp + 0x78], esi
je 0x65240f91
mov eax, dword [ebp + 0x1e8]
push str.BEGIN_DECLARE__cnt_INTEGER__SELECT_COUNT___INTO__cnt_FROM_SYS.SYSSYNC__IF__cnt____0_THEN_SELECT_distinct_user_name__p.publication_id__publication_name__p.remarks__if_p.type_R_then__else_s.sync_id_endif__if_p.type_R_then__else_s.site_name_endif__if_p.type_R_then__else_s.server_conn_type_endif__if_p.type_R_then__else_s.server_connect_endif__if_p.type_R_then__else_s._option__endif__p.type_FROM_SYS.SYSPUBLICATION_p__SYS.SYSUSERPERM_u__SYS.SYSSYNC_s_WHERE_p.creator__u.user_id_AND____p.type__R__OR__p.type__S_AND_p.publication_id__s.publication_id__OR__p.type__T_AND_p.publication_id__s.publication_id_____AND_s.type____S_ORDER_BY_p.publication_id_ELSE_SELECT_user_name__p.publication_id__publication_name__p.remarks____________R_FROM_SYS.SYSPUBLICATION_p__SYS.SYSUSERPERM_u__WHERE_p.creator__u.user_id_AND_p.type__R_ORDER_BY_p.publication_id_END_IF_END
push 0x12
push eax
call fcn.65261aa0
add esp, 0xc
jmp 0x65240ffe
mov ecx, dword [ebp + 0x1e8]
push str.SELECT_user_name_publication_id_publication_name_p.remarks______R_FROM_SYS.SYSPUBLICATION_p__SYS.SYSUSERPERM_u_WHERE_p.creator__u.user_id_ORDER_BY_p.publication_id
push 0x12
push ecx
call fcn.65261aa0
add esp, 0xc
jmp 0x65240ffe
cmp dword [ebp + 0x7c], esi
jne 0x65240fc6
mov edx, dword [ebp + 0x1e8]
push str.SELECT_user_name_publication_id_publication_name_p.remarks_______R_FROM_SYS.SYSPUBLICATION_p__SYS.SYSUSERPERM_u_WHERE_p.creator__u.user_id_AND_publication_id_IN__SELECT_publication_id_FROM_extract_pubs__ORDER_BY_p.publication_id
push 0x12
push edx
call fcn.65261aa0
add esp, 0xc
jmp 0x65240ffe
mov ecx, dword [ebp + 0x2a4]
mov eax, dword [eax + 0x62]
cmp ecx, esi
push eax
lea ecx, [ebp + 0x278]
jne 0x65240fe1
push str.SELECT_DISTINCT_user_name__p.publication_id__publication_name__p.remarks_______R_FROM_SYS.SYSPUBLICATION_p__SYS.SYSUSERPERM_u__SYS.SYSSYNC_s_WHERE_p.creator__u.user_id_AND_s.type_in__S__D__AND_s.site_name___s_AND_s.publication_id__p.publication_id_AND_p.publication_id_IN___SELECT_publication_id__FROM_extract_pubs___ORDER_BY_p.publication_id_
jmp 0x65240fe6
push str.SELECT_user_name__p.publication_id__publication_name__p.remarks__s.sync_id__s.site_name___if_s.type__S_then_isnull__s.server_conn_type___SELECT_server_conn_type_FROM_SYS.SYSSYNC_s1_WHERE_s1.publication_id__p.publication_id_AND_s1.type__T___s.server_conn_type___else_isnull__s.server_conn_type___SELECT_server_conn_type_FROM_SYS.SYSSYNC_s1_WHERE_s1.publication_id__p.publication_id_AND_s1.type__D_AND_s1.site_name_IS_NULL___s.server_conn_type___endif____if_s.type__S_then_isnull__s.server_connect___SELECT_server_connect_FROM_SYS.SYSSYNC_s1_WHERE_s1.publication_id__p.publication_id_AND_s1.type__T___s.server_connect___else_isnull__s.server_connect___SELECT_server_connect_FROM_SYS.SYSSYNC_s1_WHERE_s1.publication_id__p.publication_id_AND_s1.type__D_AND_s1.site_name_IS_NULL___s.server_connect___endif____if_s.type__S_then__SELECT__option__FROM_SYS.SYSSYNC_s1_WHERE_s1.publication_id__p.publication_id_AND_s1.type__T___s._option__else__SELECT__option__FROM_SYS.SYSSYNC_s1_WHERE_s1.publication_id__p.publication_id_AND_s1.type__D_AND_s1.site_name_IS_NULL___s._option__endif___S_FROM_SYS.SYSPUBLICATION_p__SYS.SYSUSERPERM_u__SYS.SYSSYNC_s_WHERE_p.creator__u.user_id_AND_s.type_in__S__D__AND_s.site_name___s_AND_s.publication_id__p.publication_id_AND_p.publication_id_IN___SELECT_publication_id__FROM_extract_pubs___ORDER_BY_p.publication_id_
push ecx
call fcn.65237150
mov edx, dword [ebp + 0x1e8]
push eax
push 0x12
push edx
call fcn.65261aa0
add esp, 0x18
mov eax, dword [ebp + 0x1e8]
push 0x12
push eax
call fcn.65262260
add esp, 8
test eax, eax
je 0x65241445
push ebx
push edi
lea ebx, [ebp + 0x128]
jmp 0x65241025
mov esi, dword [esp + 0x14]
call fcn.652379d0
test eax, eax
jne 0x65241095
mov ecx, dword [ebp + 0x1e8]
push 1
push 0x12
push ecx
call fcn.652617d0
push eax
call fcn.6527bd96
mov edi, eax
lea edx, [edi - 1]
add esp, 0x10
cmp edx, esi
je 0x65241091
inc esi
cmp esi, edi
jge 0x65241091
push esi
lea eax, [esp + 0x1c]
push str.dummy_pub__d
push eax
call fcn.6527bd9b
lea ecx, [esp + 0x24]
push ecx
push str.CREATE_PUBLICATION_dbo._s_r_n__r_n_tTABLE_dbo.RowGenerator_r_n__r_ngo_r_n
push 0xf
push ebx
call fcn.652371f0
lea edx, [esp + 0x34]
push edx
push str.DROP_PUBLICATION_dbo._s_r_ngo_r_n
push 0xf
push ebx
call fcn.652371f0
add esp, 0x2c
inc esi
cmp esi, edi
jl 0x65241055
mov dword [esp + 0x14], edi
mov eax, dword [ebp + 0x1e8]
push 9
push 0x12
push eax
mov edi, 0x65292194
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x65241122
call fcn.652379d0
test eax, eax
push 2
push 0x12
jne 0x65241100
mov eax, dword [ebp + 0x1e8]
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 0
push 0x12
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push str.CREATE_PUBLICATION___s_.__s__r_n__r_n
push 0xf
push ebx
call fcn.652371f0
add esp, 0x14
jmp 0x652412ed
mov edx, dword [ebp + 0x1e8]
push edx
call fcn.652617d0
push eax
push str.EXEC_sp_create_publication___s__r_ngo_r_n
push 0xf
push ebx
call fcn.652371f0
add esp, 0x1c
jmp 0x652412ed
mov eax, dword [ebp]
test byte [eax + 0x24], 0x10
jne 0x65241161
mov ecx, dword [ebp + 0x1e8]
push 4
push 0x12
push ecx
mov dword [esp + 0x1c], 1
call fcn.652617d0
push eax
push str.CALL_dbo.sa_sync___s___SET_NEXTSYNCID____
push 0xf
push ebx
call fcn.652371f0
push 0x6528fa54
push 0xf
push ebx
call fcn.652371f0
add esp, 0x28
mov edx, dword [ebp + 0x1e8]
push 9
push 0x12
push edx
mov edi, 0x65294308
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x652411e8
mov ecx, dword [ebp + 0x1e8]
push 6
push 0x12
push ecx
call fcn.652617d0
mov edx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 5
push 0x12
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push 2
push 0x12
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 0
push 0x12
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push str.CREATE_SYNCHRONIZATION_DEFINITION___s_.__s__r_n________SITE__s__r_n________TYPE__s__r_n
push 0xf
push ebx
call fcn.652371f0
add esp, 0x1c
jmp 0x65241259
mov edx, dword [ebp + 0x1e8]
push 9
push 0x12
push edx
mov edi, 0x652942a8
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x65241259
mov ecx, dword [ebp + 0x1e8]
push 6
push 0x12
push ecx
call fcn.652617d0
mov edx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 2
push 0x12
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push 0
push 0x12
push eax
call fcn.652617d0
add esp, 0xc
push eax
push str.CREATE_SYNCHRONIZATION_TEMPLATE___s_.__s__r_n________TYPE__s__r_n
push 0xf
push ebx
call fcn.652371f0
add esp, 0x18
mov ecx, dword [ebp + 0x1e8]
push 7
push 0x12
push ecx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x65241291
mov edx, dword [ebp + 0x1e8]
push 7
push 0x12
push edx
call fcn.652617d0
push eax
push str.________ADDRESS__s__r_n
push 0xf
push ebx
call fcn.652371f0
add esp, 0x1c
mov eax, dword [ebp + 0x1e8]
push 8
push 0x12
push eax
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x652412dd
mov ecx, dword [ebp + 0x1e8]
push 8
push 0x12
push ecx
call fcn.652617d0
add esp, 0xc
call fcn.65240ec0
mov esi, eax
test esi, esi
je 0x652412dd
push esi
push str.________OPTION__s__r_n
push 0xf
push ebx
call fcn.652371f0
push esi
call fcn.652440f0
add esp, 0x14
push 0x65294230
push 0xf
push ebx
call fcn.652371f0
add esp, 0xc
mov edx, dword [ebp + 0x1e8]
push 2
push 0x12
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push 1
push 0x12
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 0
push 0x12
push ecx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, ebp
call fcn.65240c50
add esp, 0xc
call fcn.652379d0
test eax, eax
jne 0x6524134c
push str.__r_ngo_r_n
push 0xf
push ebx
call fcn.652371f0
add esp, 0xc
mov edx, dword [ebp + 0x1e8]
push 3
push 0x12
push edx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x65241405
call fcn.652379d0
test eax, eax
jne 0x65241405
mov eax, dword [ebp + 0x1e8]
push 3
push 0x12
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
push 2
push 0x12
push ecx
mov esi, eax
call fcn.652617d0
mov edx, dword [ebp + 0x1e8]
add esp, 0x18
push eax
push 0
push 0x12
push edx
call fcn.652617d0
add esp, 0xc
push eax
push str.COMMENT_ON_PUBLICATION___s_.__s__IS_r_n_t
push 0xf
push ebx
call fcn.652371f0
mov eax, esi
add esp, 0x14
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x652413c3
sub eax, edi
push 0xf
push ebx
mov edi, eax
call fcn.652371e0
push eax
push 0x652385e0
xor eax, eax
mov al, byte [ebp + 0x126]
push 1
push 1
push eax
push str._x_nov
push edi
push esi
call fcn.6526d4b0
push 0x6528fa54
push 0xf
push ebx
call fcn.652371f0
add esp, 0x34
mov ecx, dword [ebp + 0x1e8]
push 0x12
push ecx
call fcn.65262260
add esp, 8
test eax, eax
jne 0x65241021
mov eax, dword [esp + 0x10]
test eax, eax
je 0x65241443
push str.CALL_dbo.sa_sync__0___RESET_NEXTSYNCID____
push 0xf
push ebx
call fcn.652371f0
push 0x6528fa54
push 0xf
push ebx
call fcn.652371f0
add esp, 0x18
pop edi
pop ebx
mov edx, dword [ebp + 0x1e8]
push 0x12
push edx
call fcn.65261d80
add esp, 8
pop esi
pop ebp
add esp, 0x108
ret