Function at 0x65239320
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
mov eax, dword [esi]
mov cl, byte [eax + 0x24]
push edi
xor ebp, ebp
xor edi, edi
test cl, 0x10
mov ebx, 0x6528b61a
jne 0x65239347
cmp dword [esi + 0x7c], ebp
je 0x652396e9
cmp dword [esi + 0x7c], ebp
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
jne 0x6523939d
cmp ecx, ebp
mov ecx, str.query
jne 0x65239369
mov ecx, 0x6529070c
mov eax, dword [eax + 0x3b]
mov edx, dword [esp + 0x50]
push eax
push edx
push 0x6528b730
push ecx
lea edi, [esi + 0x278]
push str.SELECT_where_expr__subscribe_by_expr__subscribe_by___s__sFROM_SYS.SYSUSERPERM_u__SYS.SYSREMOTEUSER_r__SYS.SYSSUBSCRIPTION_s__SYS.SYSPUBLICATION_p__SYS.SYSARTICLE_a_WHERE_u.user_id__r.user_id_AND_r.user_id__s.user_id_AND_s.publication_id__p.publication_id_AND_p.publication_id__a.publication_id_AND_table_id___s_AND_user_name___s
push edi
call fcn.65237150
push eax
mov eax, dword [esi + 0x1e8]
push 0x12
push eax
call fcn.65261aa0
add esp, 0x24
jmp 0x652393d8
cmp ecx, ebp
mov ecx, str.query
jne 0x652393ab
mov ecx, 0x6529070c
mov edx, dword [esp + 0x50]
mov eax, dword [eax + 0x62]
push edx
push eax
push ecx
lea edi, [esi + 0x278]
push str.SELECT_where_expr__NULL__NULL___s_FROM_SYS.SYSSYNC_s__SYS.SYSPUBLICATION_p__SYS.SYSARTICLE_a_WHERE_s.site_name___s_AND_s.publication_id__p.publication_id_AND_p.publication_id__a.publication_id_AND_table_id___s
push edi
call fcn.65237150
mov ecx, dword [esi + 0x1e8]
push eax
push 0x12
push ecx
call fcn.65261aa0
add esp, 0x20
mov edx, dword [esi + 0x1e8]
push 0x12
push edx
mov ebx, 1
call fcn.65262260
add esp, 8
test eax, eax
je 0x6523960d
mov eax, dword [esi + 0x1e8]
push ebp
push 0x12
push eax
call fcn.65261720
add esp, 0xc
test eax, eax
je 0x65239450
mov ecx, dword [esi + 0x1e8]
push 2
push 0x12
push ecx
call fcn.652617d0
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x65239422
sub eax, edx
mov dword [esp + 0x44], eax
je 0x65239609
mov edx, dword [esi + 0x1e8]
push 1
push 0x12
push edx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x65239609
cmp ebx, ebp
je 0x6523946a
lea eax, [esp + 0x10]
push str.WHERE__
push eax
call fcn.6526d1f0
add esp, 8
xor ebx, ebx
jmp 0x6523947c
lea ecx, [esp + 0x10]
push str.OR__
push ecx
call fcn.6526d1f0
add esp, 8
mov edx, dword [esi + 0x1e8]
push ebp
push 0x12
push edx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x652394c7
lea eax, [esp + 0x10]
push 0x28
push eax
call fcn.6526d220
mov ecx, dword [esi + 0x1e8]
push ebp
push 0x12
push ecx
call fcn.652617d0
push eax
lea edx, [esp + 0x28]
push edx
call fcn.6526d1f0
lea eax, [esp + 0x2c]
push 0x29
push eax
call fcn.6526d220
add esp, 0x24
mov ecx, dword [esi + 0x1e8]
push 2
push 0x12
push ecx
call fcn.652617d0
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x652394e0
sub eax, edx
mov dword [esp + 0x44], eax
je 0x652395df
mov edx, dword [esi + 0x1e8]
push 1
push 0x12
push edx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x652395df
mov eax, dword [esi + 0x1e8]
push ebp
push 0x12
push eax
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x65239536
lea ecx, [esp + 0x10]
push str._AND
push ecx
call fcn.6526d1f0
add esp, 8
lea edx, [esp + 0x10]
push 0x652904bc
push edx
call fcn.6526d1f0
mov eax, dword [esi + 0x1e8]
push 2
push 0x12
push eax
call fcn.652617d0
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.6526d1f0
lea edx, [esp + 0x2c]
push 0x27
push edx
call fcn.6526d220
mov eax, dword [esi + 0x1e8]
add esp, 0x24
push 0x652904b8
push 3
push 0x12
push eax
call fcn.652617d0
add esp, 0xc
push eax
call fcn.652810f2
add esp, 8
test eax, eax
jne 0x652395a0
push str._IN
lea ecx, [esp + 0x14]
push ecx
jmp 0x652395aa
push 0x6528b2f0
lea edx, [esp + 0x14]
push edx
call fcn.6526d1f0
mov eax, dword [esi + 0x1e8]
add esp, 8
push 1
push 0x12
push eax
call fcn.652617d0
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.6526d1f0
lea edx, [esp + 0x24]
push 0x6528b878
push edx
call fcn.6526d1f0
add esp, 0x1c
lea eax, [esp + 0x10]
push 0x652904ac
push eax
call fcn.6526d1f0
mov ecx, dword [esi + 0x1e8]
push 0x12
push ecx
call fcn.65262260
add esp, 0x10
test eax, eax
jne 0x652393f6
jmp 0x6523960d
mov dword [esp + 0x10], ebp
mov edx, dword [esi + 0x1e8]
push 0x12
push edx
call fcn.65261d80
lea eax, [esp + 0x18]
push ebp
push eax
call fcn.6526d220
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x28]
push ecx
push str.SELECT_column_name_FROM_extract_columns_WHERE_table_id___s
push edi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], ebp
call fcn.65237150
mov edx, dword [esi + 0x1e8]
push eax
push 0x12
push edx
call fcn.65261aa0
mov eax, dword [esi + 0x1e8]
push 0x12
push eax
mov edi, 1
call fcn.65262260
add esp, 0x30
test eax, eax
je 0x652396c0
nop
test edi, edi
jne 0x65239686
lea ecx, [esp + 0x34]
push 0x6528b89c
push ecx
call fcn.6526d1f0
add esp, 8
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x1e8]
push edx
push 0
push 0x12
push eax
call fcn.652617d0
add esp, 0xc
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.65234ff0
mov edx, dword [esi + 0x1e8]
push 0x12
xor edi, edi
push edx
inc ebp
call fcn.65262260
add esp, 0x14
test eax, eax
jne 0x65239670
mov eax, dword [esp + 0x58]
mov dword [eax], ebp
mov ecx, dword [esi + 0x1e8]
push 0x12
push ecx
call fcn.65261d80
lea edx, [esp + 0x3c]
push 0
push edx
call fcn.6526d220
mov edi, dword [esp + 0x4c]
add esp, 0x10
xor ebp, ebp
lea eax, [esp + 0x1c]
push str.SELECT
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
call fcn.6526d1f0
add esp, 8
cmp edi, ebp
jne 0x652397f0
mov ecx, dword [esp + 0x50]
push ecx
lea edx, [esi + 0x278]
push str.SELECT_column_name_FROM_SYSCOLUMN_WHERE_table_id___s_ORDER_BY_column_id
push edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
call fcn.65237150
push eax
mov eax, dword [esi + 0x1e8]
push 0x12
push eax
call fcn.65261aa0
mov ecx, dword [esi + 0x1e8]
push 0x12
push ecx
mov edi, 1
call fcn.65262260
add esp, 0x20
test eax, eax
je 0x652397b0
lea ebx, [ebx]
test edi, edi
jne 0x65239776
lea edx, [esp + 0x28]
push 0x6528b89c
push edx
call fcn.6526d1f0
add esp, 8
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x1e8]
push eax
push 0
push 0x12
push ecx
call fcn.652617d0
add esp, 0xc
push eax
lea edx, [esp + 0x30]
push edx
call fcn.65234ff0
mov eax, dword [esi + 0x1e8]
push 0x12
xor edi, edi
push eax
inc ebp
call fcn.65262260
add esp, 0x14
test eax, eax
jne 0x65239760
mov ecx, dword [esp + 0x58]
mov dword [ecx], ebp
mov edx, dword [esi + 0x1e8]
push 0x12
push edx
call fcn.65261d80
lea eax, [esp + 0x30]
push 0
push eax
call fcn.6526d220
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.6526d1f0
mov eax, dword [esp + 0x48]
push eax
call fcn.652440f0
add esp, 0x1c
xor ebp, ebp
jmp 0x652397fe
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.6526d1f0
add esp, 8
lea edx, [esp + 0x1c]
push str._FROM
push edx
call fcn.6526d1f0
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x50]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.65234ff0
lea eax, [esp + 0x30]
push 0x6528b71c
push eax
call fcn.6526d1f0
mov ecx, dword [esi + 0x44]
mov edx, dword [esp + 0x68]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
call fcn.65234ff0
lea ecx, [esp + 0x44]
push 0x20
push ecx
call fcn.6526d220
lea edx, [esp + 0x4c]
push ebx
push edx
call fcn.6526d1f0
mov edi, dword [esp + 0x8c]
mov eax, dword [edi]
add esp, 0x38
cmp eax, ebp
jbe 0x652398ab
mov eax, dword [esi]
test byte [eax + 0x24], 1
jne 0x652398ab
lea ecx, [esp + 0x1c]
push str.ORDER_BY
push ecx
call fcn.6526d1f0
mov edx, dword [edi + 8]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.6526d1f0
mov eax, dword [esp + 0x6c]
add esp, 0x10
cmp eax, ebp
je 0x652398ab
lea ecx, [esp + 0x1c]
push str._FOR_UPDATE
push ecx
call fcn.6526d1f0
add esp, 8
mov edx, dword [esi]
test byte [edx + 0x24], 0x10
pop edi
pop esi
pop ebp
pop ebx
je 0x652398ce
mov eax, dword [esp + 0x2c]
push eax
call fcn.652440f0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.652440f0
add esp, 8
mov eax, dword [esp + 0x14]
add esp, 0x30
ret