Function at 0x6525e200
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x94]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x310]
xor ebx, ebx
cmp eax, ebx
push edi
lea edi, [esi + 8]
mov ebp, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x22b8
mov dword [esp + 0x28], ebx
jne 0x6525e31e
mov edx, dword [str.syncinfo]
push ebx
push 2
push ebx
push ebx
push str.SELECT_count___FROM_SYS.SYSSYNC_n_WHERE_type__D_AND_publication_id_IS_NOT_NULL_n_AND_site_name_IS_NOT_NULL
lea ecx, [esp + 0x28]
push ecx
push edx
push ebx
push edi
mov dword [esp + 0x38], ebx
call sub.dblib8.dll_Ordinal_260
mov edx, dword [str.syncinfo]
push 0x652e79c0
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebx
lea eax, [esp + 0x24]
push edi
mov dword [0x652e79d4], eax
call sub.dblib8.dll_Ordinal_267
cmp dword [esi + 0x14], ebx
jne 0x6525e39e
mov eax, dword [esp + 0x10]
cmp eax, ebp
jge 0x6525e2a8
mov eax, dword [esi + 0x94]
push 0x26a4
push eax
call fcn.652659d0
add esp, 8
jmp 0x6525e39e
jle 0x6525e2c3
mov ecx, dword [esi + 0x94]
push 0x26a5
push ecx
call fcn.652659d0
add esp, 8
jmp 0x6525e39e
mov eax, dword [str.syncinfo]
push ebx
push 2
push ebx
push ebx
push str.SELECT_p.publication_id__publication_name_n_FROM_SYS.SYSSYNC_s__SYS.SYSPUBLICATION_p_n_WHERE_s.type__D_AND_s.publication_id_IS_NOT_NULL_n_AND_s.site_name_IS_NOT_NULL
lea edx, [esp + 0x28]
push edx
push eax
push ebx
push edi
mov dword [esp + 0x38], ebx
call sub.dblib8.dll_Ordinal_260
mov edx, dword [esp + 0x30]
push 0x652e7aa8
push ebx
lea ecx, [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
mov dword [0x652e7abc], ecx
mov ecx, dword [str.syncinfo]
push ecx
push ebx
push edi
mov dword [0x652e7ae8], edx
call sub.dblib8.dll_Ordinal_267
cmp dword [esi + 0x14], ebx
je 0x6525e457
jmp 0x6525e39e
mov eax, dword [str.syncinfo]
mov ebx, dword [esi + 0x314]
push 0
push 2
push 0
push 0
push str.SELECT_count___FROM_SYS.SYSSYNC_n_WHERE_type__D_AND_publication_id_IS_NOT_NULL_n_AND_site_name__:site
lea edx, [esp + 0x28]
push edx
push eax
push 0
push edi
mov dword [esp + 0x38], 0
call sub.dblib8.dll_Ordinal_260
mov eax, dword [str.syncinfo]
push 0x652e7bb8
push 0x652e7b7c
lea edx, [esp + 0x1c]
push edx
push eax
push 0
lea ecx, [esp + 0x24]
push edi
mov dword [0x652e7b90], ebx
mov dword [0x652e7bcc], ecx
call sub.dblib8.dll_Ordinal_267
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x6525e39e
mov eax, dword [esp + 0x10]
cmp eax, 1
jge 0x6525e3db
mov ecx, dword [esi + 0x94]
push ebx
push 0x26a6
push ecx
call fcn.652659d0
add esp, 0xc
xor ebp, ebp
mov word [esi + 4], 0xb
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x6525e3cf
cmp eax, dword [esp + 0x28]
je 0x6525e3cf
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x6525e3cf
mov edx, dword [esp + 0x24]
push edx
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.65263210
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret 8
jle 0x6525e3ec
mov edx, dword [esi + 0x94]
push ebx
push 0x26a7
push edx
jmp 0x6525e396
mov ecx, dword [str.syncinfo]
push 0
push 2
push 0
push 0
push str.SELECT_p.publication_id__publication_name_n_FROM_SYS.SYSSYNC_s__SYS.SYSPUBLICATION_p_n_WHERE_s.type__D_AND_s.publication_id_IS_NOT_NULL_n_AND_s.site_name__:site
lea eax, [esp + 0x28]
push eax
push ecx
push 0
push edi
mov dword [esp + 0x38], 0
call sub.dblib8.dll_Ordinal_260
mov eax, dword [esp + 0x30]
push 0x652e7cd8
push 0x652e7c9c
lea edx, [esp + 0x20]
lea ecx, [esp + 0x1c]
push ecx
mov dword [0x652e7cec], edx
mov edx, dword [str.syncinfo]
push edx
push 0
push edi
mov dword [0x652e7cb0], ebx
mov dword [0x652e7d18], eax
call sub.dblib8.dll_Ordinal_267
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x6525e39e
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
jmp 0x6525e3a6