Function at 0x6523e910
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp]
test byte [eax + 0x24], 0x10
push esi
push edi
mov byte [esp + 0x24], 0
mov dword [esp + 0x10], str.AND_column_id_IN__SELECT_ec.column_id_FROM_extract_columns_ec_WHERE_ec.table_id__c.table_id_
jne 0x6523e939
mov dword [esp + 0x10], 0x6528b61a
mov eax, dword [ebp + 0x60]
test eax, eax
mov ecx, 0x6528b704
mov dword [esp + 0x14], str.remote_type
jne 0x6523ea9d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 0x30]
test eax, eax
mov dword [esp + 0x1c], str._SELECT_Y_FROM_SYS.SYSUSERTYPE____WHERE_type_idisnull_c.user_type__1_____AND___domain_idc.domain_id____AND___widthc.width____AND___scalec.scale____AND___nullsc.nulls____AND___isnull__default___isnull_c._default_______AND___isnull__check___isnull_c._check_______
jne 0x6523e96c
mov dword [esp + 0x1c], ecx
mov edx, dword [ebp + 0x14]
test edx, edx
mov ebx, str.column_type
jne 0x6523e97a
mov ebx, ecx
test eax, eax
mov esi, str._SELECT_type_name_FROM_SYS.SYSUSERTYPE____WHERE_type_idisnull_c.user_type__1__
jne 0x6523e985
mov esi, ecx
mov eax, dword [ebp + 0x2c]
test eax, eax
mov edx, str._check_
jne 0x6523e993
mov edx, ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6523e99f
mov ecx, str.remarks
mov eax, dword [ebp + 0x10]
test eax, eax
mov eax, str.scale
jne 0x6523e9b0
mov eax, str._precision_
mov edi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x2c]
push edi
push ebx
push esi
push edx
push ecx
push eax
lea eax, [ebp + 0x278]
push str.SELECT_column_name__domain_name__width___s__nulls__pkey__column_id___default____s___s___s___s___s___s___s_FROM_SYS.SYSCOLUMN_c__SYS.SYSDOMAIN_WHERE__c.domain_id__SYS.SYSDOMAIN.domain_id_AND_table_id___s__s_ORDER_BY_column_id
push eax
call fcn.65237150
mov ecx, dword [ebp + 0x1e8]
push eax
push 3
push ecx
call fcn.65261aa0
mov edx, dword [esp + 0x84]
mov dword [edx], 0
mov eax, dword [ebp + 0x1e8]
push 3
push eax
call fcn.65262260
add esp, 0x44
test eax, eax
je 0x6523ed3f
mov ecx, dword [ebp + 0x1e8]
push 5
push 3
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
mov esi, dword [esp + 0x40]
je 0x6523ea45
mov esi, dword [esp + 0x3c]
cmp dword [esi], 0
mov eax, 0x6528b89c
ja 0x6523ea54
mov eax, 0x6528b61a
push eax
push esi
call fcn.6526d1f0
mov eax, dword [ebp + 0x44]
mov ecx, dword [ebp + 0x1e8]
add esp, 8
push eax
push 0
push 3
push ecx
call fcn.652617d0
add esp, 0xc
push eax
push esi
call fcn.65234ff0
mov eax, dword [ebp + 0x2c]
add esp, 0xc
test eax, eax
je 0x6523eaaa
mov edx, dword [ebp + 0x1e8]
push 9
push 3
push edx
call fcn.652617f0
add esp, 0xc
mov edi, eax
jmp 0x6523eaac
mov dword [esp + 0x18], str.remote_name
jmp 0x6523e959
xor edi, edi
mov al, byte [esp + 0x24]
test al, al
je 0x6523eaca
push 0x652922f8
lea eax, [ebp + 0x128]
push 6
push eax
call fcn.652371f0
add esp, 0xc
mov eax, dword [ebp + 0x1e8]
push 0
push 3
push eax
mov byte [esp + 0x30], 1
call fcn.652617d0
push eax
push str._t__s_
lea eax, [ebp + 0x128]
push 6
push eax
call fcn.652371f0
mov ecx, dword [ebp + 0x1e8]
push 0
push 3
push ecx
call fcn.652617d0
add esp, 0x28
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6523eb10
sub eax, ecx
mov ebx, 0x1d
sub ebx, eax
test ebx, ebx
jle 0x6523eb59
test bl, 7
lea eax, [ebp + 0x128]
je 0x6523eb42
push 0x6528b730
push 6
push eax
call fcn.652371f0
add esp, 0xc
dec ebx
jmp 0x6523eb55
push 0x652922ec
push 6
push eax
call fcn.652371f0
add esp, 0xc
sub ebx, 8
test ebx, ebx
jg 0x6523eb24
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x6523ebed
mov edx, dword [ebp + 0x1e8]
push 0xa
push 3
push edx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523eb85
mov eax, dword [esp + 0x48]
mov dword [eax], 1
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x6523ebed
mov ecx, dword [ebp + 0x1e8]
push 0xc
push 3
push ecx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523ebcf
mov edx, dword [ebp + 0x1e8]
push 0xa
push 3
push edx
call fcn.652617d0
push eax
push 0x6528c9b0
lea eax, [ebp + 0x128]
push 6
push eax
call fcn.652371f0
add esp, 0x1c
jmp 0x6523ec76
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x6523ebed
mov eax, dword [ebp + 0x1e8]
push 0xa
push 3
push eax
call fcn.652617f0
add esp, 0xc
mov ebx, eax
jmp 0x6523ebef
xor ebx, ebx
mov ecx, dword [ebp + 0x1e8]
push 7
push 3
push ecx
call fcn.652617f0
mov edx, dword [ebp + 0x1e8]
add esp, 0xc
push edi
push 0xb
push 3
push edx
mov esi, eax
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push esi
push 3
push 3
push eax
call fcn.652617d0
mov ecx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 2
push 3
push ecx
call fcn.652617d0
mov edx, dword [ebp + 0x1e8]
add esp, 0xc
push eax
push 4
push 3
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push ebx
push 1
push 3
push eax
call fcn.652617d0
add esp, 0xc
push eax
push 6
push ebp
call fcn.6523e720
add esp, 0x28
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6523ed26
mov ecx, dword [ebp + 0x1e8]
push 8
push 3
push ecx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523ed26
mov edx, dword [ebp + 0x1e8]
push 8
push 3
push edx
call fcn.652617d0
push 0
mov esi, eax
mov eax, dword [ebp + 0x1e8]
push 3
push eax
call fcn.652617d0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push eax
push ecx
push edx
lea eax, [ebp + 0x278]
push str.COMMENT_ON_COLUMN___s_.__s_.__s__IS_r_n_t
push eax
call fcn.65237150
mov edi, dword [esp + 0x54]
push eax
push edi
call fcn.6526d1f0
mov eax, esi
add esp, 0x34
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6523ecf0
push edi
sub eax, ecx
push 0x6523e890
xor ecx, ecx
mov cl, byte [ebp + 0x126]
push 1
push 1
push ecx
push str._x_nov
push eax
push esi
call fcn.6526d4b0
push str._r_ngo_r_n_r_n
push edi
call fcn.6526d1f0
add esp, 0x28
mov edx, dword [ebp + 0x1e8]
push 3
push edx
call fcn.65262260
add esp, 8
test eax, eax
jne 0x6523ea14
mov ebx, dword [esp + 0x40]
cmp dword [ebx], 0
jbe 0x6523edb4
mov esi, dword [esp + 0x3c]
cmp dword [esi], 0
mov eax, 0x6528b89c
ja 0x6523ed5b
mov eax, 0x6528b61a
mov ecx, dword [ebx + 8]
push ecx
push eax
lea eax, [ebp + 0x278]
push str._s_s
push eax
call fcn.65237150
push eax
push esi
call fcn.6526d1f0
mov esi, dword [esp + 0x50]
add esp, 0x18
mov edi, 0x6528b58c
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov eax, str.CLUSTERED
je 0x6523ed99
mov eax, 0x6528b61a
mov ecx, dword [ebx + 8]
push ecx
push eax
push str.__r_n_tPRIMARY_KEY__s__s_
lea edx, [ebp + 0x128]
push 6
push edx
call fcn.652371f0
add esp, 0x14
mov eax, dword [ebp + 0x1e8]
push 3
push eax
call fcn.65261d80
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret