Function at 0x65240300
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x18
mov eax, dword [esi + 0x118]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push edi
push eax
xor edi, edi
push ebx
mov dword [esp + 0x14], edi
call fcn.652810f2
add esp, 8
test eax, eax
je 0x65240352
push 0x65293d74
push ebp
call fcn.652810f2
add esp, 8
test eax, eax
jne 0x6524034c
push str.rs_systabgroup
push ebx
call fcn.652810f2
add esp, 8
test eax, eax
je 0x65240352
mov dword [esp + 0x10], edi
jmp 0x6524035a
mov dword [esp + 0x10], 1
push 0x65291ac0
push ebx
call fcn.652810f2
mov ecx, dword [esi + 0x1e8]
neg eax
sbb eax, eax
inc eax
push str.CREATE_TABLE_yes_no___i_int_not_null__answer_char_1__not_null__
push ecx
mov dword [esp + 0x28], eax
call fcn.65262b60
mov edx, dword [esi + 0x1e8]
push str.INSERT_INTO_yes_no_values__0__N__
push edx
call fcn.65262b60
mov eax, dword [esi + 0x1e8]
push str.INSERT_INTO_yes_no_values__1__Y__
push eax
call fcn.65262b60
mov ecx, dword [esi]
mov al, byte [ecx + 0x77]
add esp, 0x20
test al, 2
mov ebx, str.AND_proc_defn_NOT_LIKE__EXTERNAL_NAME___LANGUAGE_JAVA_
jne 0x652403b7
mov ebx, 0x6528b61a
cmp dword [esi + 0x74], edi
mov edi, str.AND_proc_name_NOT_LIKE_sp_hook__
jne 0x652403c6
mov edi, 0x6528b61a
mov eax, dword [esi + 0x68]
test eax, eax
mov edx, str.source
jne 0x652403d7
mov edx, 0x6528b704
mov eax, dword [esi + 0x1c]
test eax, eax
mov ecx, str.replicate
jne 0x652403e8
mov ecx, 0x6529070c
push ebx
push edi
push ebp
push edx
push ecx
lea eax, [esi + 0x278]
push str.SELECT_proc_id_proc_name_remarks__s__answer___s_FROM_SYS.SYSPROCEDURE_p__yes_no_WHERE_i__SELECT_count___FROM_SYS.SYSPROCPARM_where_proc_id__p.proc_id_and_parm_type__4__AND_creator_s__s__s
push eax
call fcn.65237150
mov edx, dword [esi + 0x1e8]
push eax
push 0xf
push edx
call fcn.65261aa0
mov eax, dword [esi + 0x1e8]
push 0xf
push eax
call fcn.65262260
add esp, 0x30
test eax, eax
je 0x65240812
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x65240439
cmp byte [eax], 1
je 0x65240812
mov ecx, dword [esi + 0x1e8]
push 1
push 0xf
push ecx
call fcn.652617d0
mov ebp, eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
mov dword [esp + 0x14], ebp
je 0x652404be
mov edi, dword [esi + 0x288]
test edi, edi
je 0x6524048c
mov eax, dword [edi]
test eax, eax
je 0x6524048c
lea ebx, [ebx]
push ebp
push eax
call fcn.652810f2
add esp, 8
test eax, eax
je 0x652407f9
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
jne 0x65240470
mov eax, dword [str.user_name]
test eax, eax
mov edi, 0x652a449c
je 0x652404be
lea ebx, [ebx]
mov edx, dword [edi]
push ebp
push edx
call fcn.652810f2
add esp, 8
test eax, eax
je 0x652407f9
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
jne 0x652404a0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x652404f2
mov eax, dword [str.sp_jdbc_columns]
test eax, eax
mov edi, 0x652a4450
je 0x652404f2
mov eax, dword [edi]
push ebp
push eax
call fcn.652810f2
add esp, 8
test eax, eax
je 0x652407f9
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
jne 0x652404d4
mov ecx, dword [esi + 0x1e8]
push 4
push 0xf
push ecx
call fcn.652617d0
movsx edx, byte [eax]
push edx
call fcn.6527c935
push 0x59
mov edi, eax
call fcn.6527c935
sub edi, eax
mov eax, dword [esi + 0x1e8]
neg edi
sbb edi, edi
push 0
push 0xf
and edi, 3
push eax
add edi, 0xa
call fcn.652617d0
mov ebx, eax
mov eax, dword [esi + 0x5c]
add esp, 0x20
test eax, eax
mov dword [esp + 0x20], ebx
je 0x6524057c
push ebx
push str.proc_defn
push str.proc_id
push str.SYSPROCEDURE
push esi
call fcn.65240100
add esp, 0x14
test eax, eax
je 0x6524057c
mov ecx, dword [esp + 0x2c]
push 0
push ecx
lea edx, [esi + 0x128]
push edi
push edx
mov dword [esp + 0x1c], 1
call fcn.65237220
add esp, 0x10
push ebx
lea eax, [esi + 0x278]
push str.SELECT_proc_defn__user_name_FROM_SYS.SYSPROCEDURE__SYS.SYSUSERPERM_WHERE_SYS.SYSUSERPERM.user_id__SYS.SYSPROCEDURE.creator__AND_proc_id_s
push eax
call fcn.65237150
push eax
mov eax, dword [esi + 0x1e8]
push 0x18
push eax
call fcn.65261aa0
mov ecx, dword [esi + 0x1e8]
push 0x18
push ecx
call fcn.65262260
add esp, 0x20
test eax, eax
je 0x652405c4
push 0
push 0
push 0
push 0x18
push edi
push esi
call fcn.65238e30
add esp, 0x18
mov edx, dword [esi + 0x1e8]
push 0x18
push edx
call fcn.65261d80
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x652405ff
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea edx, [esi + 0x128]
push edi
push edx
call fcn.65237220
add esp, 0x10
mov dword [esp + 0xc], 0
mov eax, dword [esi + 0x1e8]
push 2
push 0xf
push eax
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x652406be
call fcn.652379d0
test eax, eax
jne 0x652406be
mov ecx, dword [esi + 0x1e8]
push 2
push 0xf
push ecx
call fcn.652617d0
mov edx, dword [esi + 0x1e8]
push 1
push 0xf
push edx
mov ebx, eax
lea ebp, [esi + 0x128]
call fcn.652617d0
push eax
mov eax, dword [esp + 0x48]
push eax
push str.COMMENT_ON_PROCEDURE___s_.__s__IS_r_n_t
push edi
push ebp
call fcn.652371f0
push edi
push ebp
call fcn.652371e0
add esp, 0x34
test eax, eax
je 0x652406a7
mov ecx, ebx
lea edx, [ecx + 1]
mov dword [esp + 0x1c], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x65240678
mov edx, dword [esp + 0x1c]
push eax
push 0x652385e0
xor eax, eax
mov al, byte [esi + 0x126]
push 1
push 1
sub ecx, edx
push eax
push str._x_nov
push ecx
push ebx
call fcn.6526d4b0
add esp, 0x20
push 0x6528fa54
push edi
push ebp
call fcn.652371f0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, dword [esi + 0x1e8]
push 5
push 0xf
push ecx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x65240708
call fcn.652379d0
test eax, eax
jne 0x65240708
push ebx
lea eax, [esi + 0x278]
push str.SELECT_source__locate_source___FROM_SYS.SYSPROCEDURE_WHERE_proc_id_s
push eax
call fcn.65237150
mov edx, dword [esp + 0x38]
push 0
push ebp
push edx
push str.PROCEDURE
push eax
push edi
push esi
call fcn.652401d0
add esp, 0x28
mov eax, dword [esi + 0x1e8]
push 3
push 0xf
push eax
call fcn.652617d0
movsx ecx, byte [eax]
push ecx
call fcn.6527c935
push 0x59
mov ebp, eax
call fcn.6527c935
add esp, 0x14
cmp ebp, eax
jne 0x6524075c
mov edx, dword [esi + 0x1e8]
push 1
push 0xf
push edx
call fcn.652617d0
push eax
mov eax, dword [esp + 0x3c]
push eax
push str.ALTER_PROCEDURE___s_.__s__REPLICATE_ON_r_ngo_r_n
lea ecx, [esi + 0x128]
push edi
push ecx
call fcn.652371f0
add esp, 0x20
mov edx, dword [esi]
test byte [edx + 0x24], 0x10
mov eax, str.AND_EXISTS__SELECT_user_id_FROM_extract_users_WHERE_user_id__SYS.SYSPROCPERM.grantee_
jne 0x6524076e
mov eax, 0x6528b61a
push eax
push ebx
lea eax, [esi + 0x278]
push str.SELECT__SELECT_user_name_FROM_SYS.SYSUSERPERM_WHERE_user_id__SYS.SYSPROCPERM.grantee__FROM_SYS.SYSPROCPERM_WHERE_proc_id_s__s
push eax
call fcn.65237150
push eax
mov eax, dword [esi + 0x1e8]
push 0x11
push eax
call fcn.65261aa0
mov ecx, dword [esi + 0x1e8]
push 0x11
push ecx
call fcn.65262260
add esp, 0x24
test eax, eax
je 0x652407e8
mov ebp, dword [esp + 0x14]
lea ebx, [esi + 0x128]
nop
mov edx, dword [esi + 0x1e8]
push 0
push 0x11
push edx
call fcn.652617d0
push eax
mov eax, dword [esp + 0x3c]
push ebp
push eax
push str.GRANT_EXECUTE_ON___s_.__s__TO___s__r_ngo_r_n
push edi
push ebx
call fcn.652371f0
mov ecx, dword [esi + 0x1e8]
push 0x11
push ecx
call fcn.65262260
add esp, 0x2c
test eax, eax
jne 0x652407b0
mov edx, dword [esi + 0x1e8]
push 0x11
push edx
call fcn.65261d80
add esp, 8
mov eax, dword [esi + 0x1e8]
push 0xf
push eax
call fcn.65262260
add esp, 8
test eax, eax
jne 0x65240426
mov ecx, dword [esi + 0x1e8]
push 0xf
push ecx
call fcn.65261d80
mov edx, dword [esi + 0x1e8]
push str.DROP_TABLE_yes_no
push edx
call fcn.65262b60
add esp, 0x10
pop edi
pop ebp
pop ebx
add esp, 0x18
ret