Function at 0x6523efb0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x3c
push ebx
push ebp
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp]
mov cl, byte [eax + 0x24]
push esi
xor esi, esi
test cl, 0x10
push edi
mov dword [esp + 0x1c], esi
mov ebx, str.AND_table_id_IN__SELECT_table_id_FROM_extract_tables_
jne 0x6523efd6
mov ebx, 0x6528b61a
cmp dword [ebp + 0x40], esi
mov dword [esp + 0x50], str._SELECT_ISNULL__at.attribute_value_____FROM_SYS.SYSATTRIBUTE_at__SYS.SYSATTRIBUTENAME_an_WHERE_at.attribute_id__an.attribute_id_AND_at.object_type__T_AND_an.attribute_name__Clustered_index_AND_at.object_id__table_id_
jne 0x6523efeb
mov dword [esp + 0x50], 0x6528fe34
cmp dword [ebp + 0x80], esi
mov edx, 0x6528b704
mov dword [esp + 0x18], str.primary_hash_limit
jne 0x6523f004
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x60]
cmp eax, esi
mov edi, str.remote_location
jne 0x6523f014
mov edi, edx
jmp 0x6523f019
mov edx, str._select_srvname_from_SYS.SYSSERVERS_where_srvid__SYSTABLE.srvid_
cmp dword [ebp + 0x1c], esi
mov ecx, str.replicate
jne 0x6523f028
mov ecx, 0x6529070c
cmp dword [ebp + 0xc], esi
mov eax, str._SYS.SYSTABLE.remarks
jne 0x6523f037
mov eax, 0x6528b61a
push ebx
mov ebx, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x20]
push ebx
push edi
push edx
push ecx
push str.last_page
push eax
lea ecx, [ebp + 0x278]
push str.SELECT_table_id__table_name__view_def__SYS.SYSTABLE.file_id__dbspace_name___s__user_id__user_name__table_type___s___s___s___s___s___s_FROM_SYS.SYSUSERPERM__SYS.SYSTABLE__SYS.SYSFILE_WHERE_SYS.SYSUSERPERM.user_id__SYS.SYSTABLE.creator_AND_SYS.SYSTABLE.file_id__SYS.SYSFILE.file_id_AND_table_type_IN__BASE_GBL_TEMP_LCL_TEMP__AND_user_id____0__s_ORDER_BY_table_id
push ecx
call fcn.65237150
mov edx, dword [ebp + 0x1e8]
push eax
push 2
push edx
call fcn.65261aa0
push str.SYSCOLSTATS
push 0x65291a20
push ebp
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x7c], esi
call fcn.6523aef0
add esp, 0x40
test eax, eax
je 0x6523f0b7
mov dword [esp + 0x1c], 1
mov eax, dword [ebp + 0x1e8]
push 2
push eax
call fcn.65262260
add esp, 8
test eax, eax
je 0x6523f98d
jmp 0x6523f0d4
xor esi, esi
mov eax, dword [ebp + 0x11c]
cmp eax, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
je 0x6523f0f3
cmp byte [eax], 0
jne 0x6523f98d
mov ecx, dword [ebp + 0x1e8]
push 7
push 2
push ecx
call fcn.652617d0
mov edx, dword [ebp + 0x298]
add esp, 0xc
push edx
mov ebx, eax
mov eax, dword [ebp + 0x1e8]
push 1
push 2
push eax
mov dword [esp + 0x20], ebx
call fcn.652617d0
add esp, 0xc
push eax
call fcn.65240060
add esp, 8
test eax, eax
je 0x6523f22f
cmp dword [ebp + 0x108], esi
jne 0x6523f22f
cmp dword [ebp + 0x6c], esi
jne 0x6523f22f
cmp dword [ebp + 0x10c], esi
jne 0x6523f22f
mov ecx, dword [ebp + 0x1e8]
push 1
push 2
push ecx
call fcn.652617d0
push eax
push ebx
push ebp
call fcn.6523edd0
add esp, 0x18
test eax, eax
je 0x6523f22f
mov edx, dword [ebp]
test byte [edx + 0x77], 2
je 0x6523f1ac
cmp dword [ebp + 0x50], esi
je 0x6523f1ac
mov eax, dword [ebp + 0x1e8]
push esi
push 2
push eax
call fcn.652617d0
add esp, 0xc
mov esi, ebp
call fcn.6523e8b0
test eax, eax
jne 0x6523f974
xor esi, esi
mov edx, dword [ebp + 0x1e8]
lea ecx, [esp + 0x28]
push ecx
push esi
push 2
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push 1
push 2
push eax
call fcn.652617d0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
add esp, 0xc
push eax
push ebx
push ecx
push edx
push ebp
call fcn.6523a160
mov eax, dword [esp + 0x38]
add esp, 0x1c
cmp eax, esi
je 0x6523f974
mov eax, dword [ebp + 0x1e8]
push 0
push 2
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 1
push 2
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push ebx
push ebp
call fcn.6523a1f0
add esp, 0x10
jmp 0x6523f974
mov edx, dword [ebp + 0x118]
push edx
push ebx
call fcn.6527b8f4
add esp, 8
test eax, eax
jne 0x6523f270
mov eax, dword [ebp + 0x290]
mov ecx, dword [ebp + 0x1e8]
push eax
push 1
push 2
push ecx
call fcn.652617d0
add esp, 0xc
push eax
call fcn.65240060
add esp, 8
test eax, eax
jne 0x6523f974
xor esi, esi
push 0x65291ac0
push ebx
call fcn.6527b8f4
add esp, 8
test eax, eax
jne 0x6523f2ad
mov edx, dword [ebp + 0x1e8]
push 0x652a442c
push 1
push 2
push edx
call fcn.652617d0
add esp, 0xc
push eax
call fcn.65240060
add esp, 8
test eax, eax
jne 0x6523f974
xor esi, esi
mov eax, dword [ebp + 0x1e8]
push 6
push 2
push eax
call fcn.652617d0
push str.rs_systabgroup
push ebx
call fcn.6527b8f4
add esp, 0x14
test eax, eax
jne 0x6523f2fc
mov ecx, dword [ebp + 0x290]
mov edx, dword [ebp + 0x1e8]
push ecx
push 1
push 2
push edx
call fcn.652617d0
add esp, 0xc
push eax
call fcn.65240060
add esp, 8
test eax, eax
jne 0x6523f974
xor esi, esi
mov eax, dword [ebp]
test byte [eax + 0x77], 2
je 0x6523f32b
cmp dword [ebp + 0x50], esi
je 0x6523f32b
mov ecx, dword [ebp + 0x1e8]
push esi
push 2
push ecx
call fcn.652617d0
add esp, 0xc
mov esi, ebp
call fcn.6523e8b0
test eax, eax
jne 0x6523f974
mov edx, dword [ebp + 0x1e8]
push 8
push 2
push edx
mov dword [esp + 0x5c], 0x6528b61a
mov dword [esp + 0x20], 0
mov edi, str.GBL_TEMP
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 9
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x6523f372
mov dword [esp + 0x14], 1
mov dword [esp + 0x50], str.GLOBAL_TEMPORARY
jmp 0x6523f3c8
mov ecx, dword [ebp + 0x1e8]
push 8
push 2
push ecx
mov edi, str.LCL_TEMP
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x6523f3a9
mov dword [esp + 0x14], 1
mov dword [esp + 0x50], str.LOCAL_TEMPORARY
jmp 0x6523f3c8
mov eax, dword [ebp + 0x1e8]
push 0xc
push 2
push eax
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523f3c8
mov dword [esp + 0x50], str.EXISTING
mov ecx, dword [ebp + 0x1e8]
push 9
push 2
push ecx
call fcn.652617d0
push eax
call fcn.6527bd0e
mov edx, dword [ebp + 0x1e8]
push 0xb
push 2
push edx
mov edi, eax
call fcn.65261720
add esp, 0x1c
mov esi, eax
mov eax, dword [ebp]
mov cl, byte [eax + 0x23]
neg esi
sbb esi, esi
inc esi
cmp cl, 2
mov dword [esp + 0x20], esi
jne 0x6523f42f
mov ecx, dword [ebp + 0x1e8]
push 1
push 2
push ecx
call fcn.652617d0
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x16]
push ebx
push 0x15d9
push eax
call fcn.652659d0
add esp, 0x1c
mov eax, dword [ebp]
cmp byte [eax + 0x22], 1
je 0x6523f756
test byte [eax + 0x24], 0x20
je 0x6523f465
mov ecx, dword [ebp + 0x1e8]
push 1
push 2
push ecx
call fcn.652617d0
push eax
push ebx
push ebp
call fcn.6523edd0
add esp, 0x18
test eax, eax
je 0x6523f974
mov edx, dword [ebp + 0x1e8]
push 1
push 2
push edx
lea ebx, [ebp + 0x128]
call fcn.652617d0
mov esi, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x60]
push esi
push eax
push str.CREATE__sTABLE___s_.__s__r_n__r_n
push 6
push ebx
call fcn.652371f0
mov edx, dword [esp + 0x44]
add esp, 0x24
lea ecx, [esp + 0x24]
push ecx
push edx
mov edx, dword [ebp + 0x1e8]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0xe
push 2
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push 0
push 2
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 1
push 2
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push esi
lea edx, [esp + 0x54]
push edx
push ebp
call fcn.6523e910
mov eax, dword [esp + 0x50]
add esp, 0x28
test eax, eax
jbe 0x6523f523
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x6523f523
mov eax, dword [ebp + 0x1e8]
push 0xd
push 2
push eax
call fcn.652617d0
push eax
push 6
push ebp
call fcn.652379e0
add esp, 0x18
mov ecx, dword [ebp + 0x1e8]
push 2
push 2
push ecx
call fcn.652617f0
add esp, 0xc
test eax, eax
jne 0x6523f54c
push 0x6528b6e4
push 6
push ebx
call fcn.652371f0
add esp, 0xc
jmp 0x6523f55d
push eax
push str.__r_n_t_s_r_n
push 6
push ebx
call fcn.652371f0
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6523f5a7
mov eax, edi
sub eax, 0
je 0x6523f588
dec eax
je 0x6523f57e
sub eax, 2
jne 0x6523f590
mov dword [esp + 0x18], str.__NOT_TRANSACTIONAL
jmp 0x6523f590
mov dword [esp + 0x18], str.__ON_COMMIT_DELETE_ROWS
jmp 0x6523f590
mov dword [esp + 0x18], str.__ON_COMMIT_PRESERVE_ROWS
mov edx, dword [esp + 0x18]
push edx
push 0x6528c9b0
push 6
push ebx
call fcn.652371f0
add esp, 0x10
jmp 0x6523f5ff
mov eax, dword [ebp + 0x1e8]
push 3
push 2
push eax
mov edi, 0x6528b58c
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x6523f5ef
mov eax, dword [ebp + 0x1e8]
push 4
push 2
push eax
call fcn.652617d0
push eax
push str.__IN___s_
push 6
push ebx
call fcn.652371f0
add esp, 0x1c
jmp 0x6523f5ff
push 0x6528b758
push 6
push ebx
call fcn.652371f0
add esp, 0xc
mov ecx, dword [ebp + 0x1e8]
push 0xc
push 2
push ecx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523f637
mov edx, dword [ebp + 0x1e8]
push 0xc
push 2
push edx
call fcn.652617d0
push eax
push str._AT__s
push 6
push ebx
call fcn.652371f0
add esp, 0x1c
push 0x6528fa54
push 6
push ebx
call fcn.652371f0
lea eax, [esp + 0x40]
push eax
call fcn.6526d270
mov ecx, dword [esp + 0x4c]
push ecx
push 0x6528c9b0
push 6
push ebx
call fcn.652371f0
lea edx, [esp + 0x54]
push 0
push edx
call fcn.6526d090
mov eax, dword [esp + 0x4c]
add esp, 0x28
test eax, eax
je 0x6523f6af
mov eax, dword [ebp + 0x1e8]
push 0
push 2
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 1
push 2
push ecx
call fcn.652617d0
mov esi, dword [esp + 0x20]
add esp, 0xc
push eax
push esi
push ebp
call fcn.6523ee70
add esp, 0x10
jmp 0x6523f6b3
mov esi, dword [esp + 0x10]
mov eax, dword [ebp]
test byte [eax + 0x24], 0x10
je 0x6523f6c2
test byte [eax + 0x49], 2
jne 0x6523f708
mov edx, dword [ebp + 0x1e8]
push 0xe
push 2
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push 0
push 2
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 1
push 2
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push esi
push ebp
call fcn.65238180
add esp, 0x14
mov edx, dword [ebp + 0x1e8]
push 0xe
push 2
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push 0
push 2
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 1
push 2
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push esi
push ebp
call fcn.65237bf0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x34]
add esp, 0x14
mov edx, dword [ebp + 0x1e8]
push 1
push 2
push edx
call fcn.652617d0
push eax
push ebx
push ebp
call fcn.6523edd0
add esp, 0x18
test eax, eax
je 0x6523f829
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x6523f829
test esi, esi
jne 0x6523f829
mov eax, dword [ebp + 0x108]
test eax, eax
jne 0x6523f829
mov eax, dword [ebp + 0x6c]
test eax, eax
jne 0x6523f829
mov eax, dword [ebp + 0x10c]
test eax, eax
jne 0x6523f829
mov ecx, dword [ebp + 0x1e8]
lea eax, [esp + 0x28]
push eax
push esi
push 2
push ecx
call fcn.652617d0
mov edx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 1
push 2
push edx
call fcn.652617d0
mov ecx, dword [esp + 0x68]
add esp, 0xc
push eax
mov eax, dword [esp + 0x64]
push ebx
push eax
push ecx
push ebp
call fcn.6523a160
mov eax, dword [esp + 0x38]
add esp, 0x1c
test eax, eax
je 0x6523f829
mov edx, dword [ebp + 0x1e8]
push esi
push 2
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push 1
push 2
push eax
call fcn.652617d0
add esp, 0xc
push eax
push ebx
push ebp
call fcn.6523a1f0
add esp, 0x10
mov ecx, dword [ebp]
cmp byte [ecx + 0x22], 1
je 0x6523f95c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6523f8e8
mov edx, dword [ebp + 0x1e8]
push 5
push 2
push edx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523f8e8
mov eax, dword [ebp + 0x1e8]
push 5
push 2
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
push 1
push 2
push ecx
mov edi, eax
lea esi, [ebp + 0x128]
call fcn.652617d0
push eax
push ebx
push str.COMMENT_ON_TABLE___s_.__s__IS_r_n_t
push 6
push esi
call fcn.652371f0
mov eax, edi
add esp, 0x2c
lea ecx, [eax + 1]
jmp 0x6523f8a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6523f8a0
sub eax, ecx
push 6
push esi
mov dword [esp + 0x58], eax
call fcn.652371e0
push eax
mov eax, dword [esp + 0x5c]
push 0x652385e0
xor edx, edx
mov dl, byte [ebp + 0x126]
push 1
push 1
push edx
push str._x_nov
push eax
push edi
call fcn.6526d4b0
push 0x6528fa54
push 6
push esi
call fcn.652371f0
add esp, 0x34
mov ecx, dword [ebp + 0x1e8]
push 0xa
push 2
push ecx
call fcn.652617d0
movsx edx, byte [eax]
push edx
call fcn.6527c935
push 0x59
mov esi, eax
call fcn.6527c935
add esp, 0x14
cmp esi, eax
jne 0x6523f939
mov eax, dword [ebp + 0x1e8]
push 1
push 2
push eax
call fcn.652617d0
push eax
push ebx
push str.ALTER_TABLE___s_.__s__REPLICATE_ON_r_ngo_r_n
lea ecx, [ebp + 0x128]
push 6
push ecx
call fcn.652371f0
add esp, 0x20
mov edx, dword [ebp + 0x1e8]
push 0
push 0
push 6
push 0
push 2
push edx
call fcn.652617d0
add esp, 0xc
push eax
push ebp
call fcn.6523a910
add esp, 0x14
mov eax, dword [ebp]
test byte [eax + 0x24], 0x10
jne 0x6523f974
mov ecx, dword [ebp + 0x1e8]
push ecx
call fcn.65262540
add esp, 4
mov edx, dword [ebp + 0x1e8]
push 2
push edx
call fcn.65262260
add esp, 8
test eax, eax
jne 0x6523f0d2
mov eax, dword [esp + 0x48]
push eax
call fcn.652440f0
mov ecx, dword [esp + 0x34]
push ecx
call fcn.652440f0
mov edx, dword [esp + 0x44]
push edx
call fcn.652440f0
mov eax, dword [ebp + 0x1e8]
push 2
push eax
call fcn.65261d80
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret