Function at 0x6523f9d0
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x14
push ebx
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
xor ebx, ebx
mov cx, 1
cmp cx, word [eax + 0x50]
mov eax, dword [esi + 0x68]
push edi
sbb edi, edi
neg edi
cmp eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], edi
mov edx, str.source
jne 0x6523fa03
mov edx, 0x6528b704
cmp dword [esi + 0xc], ebx
mov ecx, str._SYS.SYSTABLE.remarks
jne 0x6523fa12
mov ecx, 0x6528b61a
push edx
push ecx
lea eax, [esi + 0x278]
push str.SELECT_table_id__table_name__SYS.SYSTABLE.file_id__dbspace_name___s__user_id__user_name___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__VIEW_AND_user_id____0_ORDER_BY_table_id
push eax
call fcn.65237150
mov edx, dword [esi + 0x1e8]
push eax
push 2
push edx
call fcn.65261aa0
mov eax, dword [esp + 0x48]
push ebx
push edi
push eax
mov eax, dword [esp + 0x50]
push eax
push eax
push 0xb
push esi
mov dword [esp + 0x5c], ebx
call fcn.6523a3e0
add esp, 0x38
test eax, eax
je 0x6523fa58
mov dword [esp + 0x24], ebx
cmp edi, ebx
je 0x6523fa72
push str.CREATE_VARIABLE_view_not_found_INT_r_ngo_r_n
lea ecx, [esi + 0x128]
push 0x12
push ecx
call fcn.652371f0
add esp, 0xc
mov edx, dword [esi + 0x1e8]
push 2
push edx
call fcn.65262260
add esp, 8
test eax, eax
je 0x6523fd4d
push ebp
lea esp, [esp]
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x6523faa3
cmp byte [eax], 0
jne 0x6523fd4c
mov eax, dword [esi + 0x1e8]
push 6
push 2
push eax
call fcn.652617d0
mov ecx, dword [esi + 0x1e8]
push 1
push 2
push ecx
mov ebp, eax
call fcn.652617d0
mov edx, dword [esi + 0x118]
push edx
mov ebx, eax
push ebp
mov dword [esp + 0x3c], ebx
call fcn.6527b8f4
add esp, 0x20
test eax, eax
jne 0x6523faf7
mov eax, dword [esi + 0x28c]
push eax
push ebx
call fcn.65240060
add esp, 8
test eax, eax
jne 0x6523fd33
mov ecx, dword [esi + 0x1e8]
push 0
push 2
push ecx
call fcn.652617d0
mov edx, dword [esi + 0x1e8]
push 5
push 2
push edx
mov dword [esp + 0x2c], eax
call fcn.652617d0
push str.rs_systabgroup
push ebp
call fcn.6527b8f4
add esp, 0x20
test eax, eax
jne 0x6523fb45
mov eax, dword [esi + 0x28c]
push eax
push ebx
call fcn.65240060
add esp, 8
test eax, eax
jne 0x6523fd33
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x6523fb68
push 0
push ebp
lea ecx, [esi + 0x128]
push 0xb
push ecx
mov dword [esp + 0x28], 1
call fcn.65237220
add esp, 0x10
mov eax, dword [esi]
cmp byte [eax + 0x23], 2
jne 0x6523fb83
mov edx, dword [eax + 0x16]
push ebx
push ebp
push 0x15d9
push edx
call fcn.652659d0
add esp, 0x10
test edi, edi
je 0x6523fbe0
push ebx
push ebp
push ebx
push ebp
push str.if_object_id__s._s__is_null_then_r_n__select_1_into_view_not_found_from___s_.__s__r_nend_if_r_ngo_r_n
lea edi, [esi + 0x128]
push 0x12
push edi
call fcn.652371f0
mov eax, dword [esp + 0x44]
add esp, 0x1c
test eax, eax
jne 0x6523fbdc
mov eax, dword [esi + 0x108]
test eax, eax
jne 0x6523fbdc
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x6523fbdc
mov eax, dword [esi + 0x10c]
test eax, eax
jne 0x6523fbdc
push str.SET_TEMPORARY_OPTION_ON_ERRORCONTINUE_r_ngo_r_n
push 0xb
push edi
call fcn.652371f0
add esp, 0xc
mov dword [esp + 0x28], 1
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
lea eax, [esi + 0x278]
push str.SELECT_view_def__user_name_FROM_SYS.SYSTABLE__SYS.SYSUSERPERM_WHERE_SYS.SYSUSERPERM.user_id__SYS.SYSTABLE.creator_AND_table_id_s
push eax
call fcn.65237150
push eax
push 0xb
push esi
call fcn.652400a0
mov eax, dword [esi + 0xc]
add esp, 0x18
test eax, eax
je 0x6523fcb0
mov ecx, dword [esi + 0x1e8]
push 4
push 2
push ecx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523fcb0
mov edx, dword [esi + 0x1e8]
push 4
push 2
push edx
call fcn.652617d0
mov ebx, eax
mov eax, dword [esp + 0x28]
push eax
push ebp
push str.COMMENT_ON_VIEW___s_.__s__IS_r_n_t
lea edi, [esi + 0x128]
push 0xb
push edi
call fcn.652371f0
mov eax, ebx
add esp, 0x20
lea ecx, [eax + 1]
jmp 0x6523fc60
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x6523fc60
sub eax, ecx
push 0xb
push edi
mov dword [esp + 0x28], eax
call fcn.652371e0
mov edx, dword [esp + 0x28]
push eax
push 0x652385e0
xor ecx, ecx
mov cl, byte [esi + 0x126]
push 1
push 1
push ecx
push str._x_nov
push edx
push ebx
call fcn.6526d4b0
push 0x6528fa54
push 0xb
push edi
call fcn.652371f0
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
add esp, 0x34
mov eax, dword [esi + 0x1e8]
push 7
push 2
push eax
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523fcf2
mov ecx, dword [esp + 0x14]
push ecx
lea eax, [esi + 0x278]
push str.SELECT_source__locate_source___FROM_SYS.SYSTABLE_WHERE_table_id_s
push eax
call fcn.65237150
push 0
push ebx
push ebp
push str.VIEW
push eax
push 0xb
push esi
call fcn.652401d0
add esp, 0x28
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push edi
push 0xb
push eax
push esi
call fcn.6523a910
mov eax, dword [esp + 0x2c]
add esp, 0x14
test eax, eax
je 0x6523fd33
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esi + 0x128]
push 0xb
push eax
call fcn.65237220
add esp, 0x10
mov dword [esp + 0x18], 0
mov ecx, dword [esi + 0x1e8]
push 2
push ecx
call fcn.65262260
add esp, 8
test eax, eax
jne 0x6523fa90
pop ebp
test edi, edi
je 0x6523fd8a
mov eax, dword [esp + 0x24]
test eax, eax
je 0x6523fd8a
mov eax, dword [esi + 0x108]
test eax, eax
jne 0x6523fd8a
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x6523fd8a
mov eax, dword [esi + 0x10c]
test eax, eax
jne 0x6523fd8a
push str.SET_TEMPORARY_OPTION_ON_ERRORPROMPT_r_ngo_r_n
lea edx, [esi + 0x128]
push 0xb
push edx
call fcn.652371f0
add esp, 0xc
mov eax, dword [esi + 0x1e8]
push 2
push eax
call fcn.65261d80
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x14
ret