Function at 0x65240840
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x10
mov eax, dword [esi]
test byte [eax + 0x24], 0x10
mov dword [esp], 0
mov edx, str.AND_trig.table_id_IN__SELECT_table_id_FROM_extract_tables_
jne 0x6524085d
mov edx, 0x6528b61a
mov eax, dword [esi + 0x68]
test eax, eax
mov ecx, str.trig.source
jne 0x6524086e
mov ecx, 0x6528b704
push edx
mov edx, dword [esp + 0x18]
push edx
push ecx
lea eax, [esi + 0x278]
push str.SELECT_trig.trigger_id__trigger_name__trig.remarks__table_name___s_FROM_SYS.SYSTRIGGER_trig__SYS.SYSTABLE_WHERE_trig.table_id__SYS.SYSTABLE.table_id_AND_foreign_table_id_is_NULL_AND_creator_s__s_ORDER_BY_trigger_id
push eax
call fcn.65237150
push eax
mov eax, dword [esi + 0x1e8]
push 0x10
push eax
call fcn.65261aa0
mov ecx, dword [esi + 0x1e8]
push 0x10
push ecx
call fcn.65262260
add esp, 0x28
test eax, eax
je 0x65240b40
push ebx
push ebp
push edi
mov eax, dword [esi + 0x11c]
test eax, eax
je 0x652408c4
cmp byte [eax], 1
je 0x65240b1a
mov edx, dword [esi + 0x1e8]
push 0
push 0x10
push edx
call fcn.652617d0
mov ebp, eax
mov eax, dword [esi + 0x1e8]
push 1
push 0x10
push eax
mov dword [esp + 0x30], ebp
call fcn.652617d0
mov ecx, dword [esi + 0x1e8]
push 3
mov ebx, eax
push 0x10
push ecx
mov dword [esp + 0x38], ebx
call fcn.652617d0
mov edx, dword [esi + 0x118]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.6527b8f4
add esp, 0x2c
test eax, eax
jne 0x6524094c
mov edi, dword [esi + 0x294]
test edi, edi
je 0x6524094c
mov eax, dword [edi]
test eax, eax
je 0x6524094c
lea esp, [esp]
push ebx
push eax
call fcn.652810f2
add esp, 8
test eax, eax
je 0x65240b01
mov eax, dword [edi + 4]
add edi, 4
test eax, eax
jne 0x65240930
mov ecx, dword [esi]
test byte [ecx + 0x24], 0x20
je 0x6524097b
mov edx, dword [esi + 0x1e8]
push 3
push 0x10
push edx
call fcn.652617d0
push eax
mov eax, dword [esp + 0x34]
push eax
push esi
call fcn.6523edd0
add esp, 0x18
test eax, eax
je 0x65240b01
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x652409a6
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esi + 0x128]
push 0xe
push eax
call fcn.65237220
add esp, 0x10
mov dword [esp + 0xc], 1
push ebp
lea eax, [esi + 0x278]
push str.SELECT_trigger_defn_FROM_SYS.SYSTRIGGER_WHERE_trigger_id_s
push eax
call fcn.65237150
mov ecx, dword [esi + 0x1e8]
push eax
push 0x18
push ecx
call fcn.65261aa0
mov edx, dword [esi + 0x1e8]
push 0x18
push edx
call fcn.65262260
add esp, 0x20
test eax, eax
je 0x652409ef
push 0
push 0
push 0
push 0x18
push 0xe
push esi
call fcn.65238e30
add esp, 0x18
mov eax, dword [esi + 0x1e8]
push 0x18
push eax
call fcn.65261d80
mov ecx, dword [esi + 0x1e8]
push 2
push 0x10
push ecx
call fcn.65261720
add esp, 0x14
test eax, eax
jne 0x65240ab3
call fcn.652379d0
test eax, eax
jne 0x65240ab3
mov edx, dword [esi + 0x1e8]
push 2
push 0x10
push edx
call fcn.652617d0
mov ecx, dword [esp + 0x30]
push ebx
mov ebp, eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push str.COMMENT_ON_TRIGGER___s_.__s_.__s__IS_r_n_t
lea edi, [esi + 0x128]
push 0xe
push edi
call fcn.652371f0
push 0xe
push edi
call fcn.652371e0
add esp, 0x2c
test eax, eax
je 0x65240a9f
mov ecx, ebp
lea ebx, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x65240a70
push eax
push 0x652385e0
xor edx, edx
mov dl, byte [esi + 0x126]
push 1
push 1
sub ecx, ebx
push edx
push str._x_nov
push ecx
push ebp
call fcn.6526d4b0
mov ebx, dword [esp + 0x34]
add esp, 0x20
push 0x6528fa54
push 0xe
push edi
call fcn.652371f0
mov ebp, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [esi + 0x1e8]
push 4
push 0x10
push eax
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x65240b01
call fcn.652379d0
test eax, eax
jne 0x65240b01
push ebp
lea eax, [esi + 0x278]
push str.SELECT_source__locate_source___FROM_SYS.SYSTRIGGER_WHERE_trigger_id_s
push eax
call fcn.65237150
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
push ebx
push ecx
push edx
push str.TRIGGER
push eax
push 0xe
push esi
call fcn.652401d0
add esp, 0x28
mov eax, dword [esi + 0x1e8]
push 0x10
push eax
call fcn.65262260
add esp, 8
test eax, eax
jne 0x652408b1
mov eax, dword [esp + 0xc]
test eax, eax
pop edi
pop ebp
pop ebx
je 0x65240b40
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esi + 0x128]
push 0xe
push eax
call fcn.65237220
add esp, 0x10
mov ecx, dword [esi + 0x1e8]
push 0x10
push ecx
call fcn.65261d80
add esp, 0x18
ret