Function at 0x65238180
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0x1c
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp]
test byte [eax + 0x24], 0x10
push esi
push edi
mov edi, str.AND_primary_table.table_id_IN__SELECT_table_id_FROM_extract_tables_
jne 0x6523819d
mov edi, 0x6528b61a
mov eax, dword [ebp + 0x80]
xor esi, esi
cmp eax, esi
mov edx, str.hash_limit
jne 0x652381b3
mov edx, 0x6528b704
cmp dword [ebp + 0xc], esi
mov ecx, str.fkey.remarks
jne 0x652381c2
mov ecx, 0x6528b704
push edi
mov edi, dword [esp + 0x3c]
push edi
push edx
push ecx
lea eax, [ebp + 0x278]
push str.SELECT__role___foreign_key_id__primary_table.table_name__primary_table.table_id__user_name__check_on_commit___s___s_FROM_SYS.SYSUSERPERM__SYS.SYSTABLE_primary_table__SYS.SYSFOREIGNKEY_fkey_WHERE_SYS.SYSUSERPERM.user_id__primary_table.creator_AND_primary_table.table_id__fkey.primary_table_id_AND_foreign_table_id___s__s
push eax
call fcn.65237150
mov ecx, dword [ebp + 0x1e8]
push eax
push 4
push ecx
call fcn.65261aa0
mov edx, dword [ebp + 0x1e8]
push 4
push edx
call fcn.65262260
add esp, 0x2c
test eax, eax
je 0x652385c8
push ebx
lea ebx, [ebp + 0x128]
jmp 0x65238210
xor esi, esi
mov edi, edi
mov ecx, dword [ebp + 0x1e8]
lea eax, [esp + 0x14]
push eax
push 3
push 4
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
call fcn.652617d0
mov edx, dword [ebp + 0x1e8]
push 1
push 4
push edx
mov esi, eax
call fcn.652617d0
mov edx, dword [esp + 0x58]
mov ecx, eax
mov eax, esi
add esp, 0x18
lea edi, [esp + 0x24]
mov esi, ebp
call fcn.652380b0
lea eax, [esp + 0x18]
push eax
call fcn.6526d270
lea ecx, [esp + 0x28]
push ecx
call fcn.6526d270
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
push str._r_nALTER_TABLE___s_.__s__r_n_tADD_FOREIGN_KEY
push 9
push ebx
call fcn.652371f0
mov ecx, dword [ebp + 0x1e8]
push 1
push 4
push ecx
call fcn.652617d0
mov ecx, dword [esp + 0x6c]
add esp, 0x2c
mov esi, eax
lea esp, [esp]
mov dl, byte [ecx]
mov al, dl
cmp dl, byte [esi]
jne 0x652382d4
test al, al
je 0x652382d0
mov dl, byte [ecx + 1]
mov al, dl
cmp dl, byte [esi + 1]
jne 0x652382d4
add ecx, 2
add esi, 2
test al, al
jne 0x652382b0
xor eax, eax
jmp 0x652382d9
sbb eax, eax
sbb eax, 0xffffffff
mov edx, dword [ebp + 0x1e8]
xor ecx, ecx
test eax, eax
sete cl
push 0
push 4
push edx
mov dword [esp + 0x1c], ecx
call fcn.65261720
add esp, 0xc
test eax, eax
je 0x65238302
mov esi, 0x6528b61a
jmp 0x65238317
mov eax, dword [ebp + 0x1e8]
push 0
push 4
push eax
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0x1e8]
push ecx
push 2
push 4
push edx
call fcn.652617d0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x1e8]
push 4
push 4
push eax
call fcn.652617d0
mov ecx, dword [esp + 0x30]
add esp, 0xc
push eax
push ecx
push esi
push str.__s____s___r_n_tREFERENCES___s_.__s____s_
push 9
push ebx
call fcn.652371f0
mov eax, dword [ebp + 0x38]
add esp, 0x20
test eax, eax
je 0x65238466
mov edx, dword [ebp + 0x1e8]
push 1
push 4
push edx
call fcn.652617d0
push eax
mov eax, dword [esp + 0x4c]
push eax
lea eax, [ebp + 0x278]
push str.SELECT_event__referential_action_FROM_SYS.SYSTRIGGER_WHERE_foreign_table_id_s_AND_foreign_key_id_s
push eax
call fcn.65237150
mov ecx, dword [ebp + 0x1e8]
push eax
push 0x10
push ecx
call fcn.65261aa0
mov edx, dword [ebp + 0x1e8]
push 0x10
push edx
call fcn.65262260
add esp, 0x30
test eax, eax
je 0x65238455
mov eax, dword [ebp + 0x1e8]
push 0
push 0x10
push eax
mov edi, 0x65290118
call fcn.652617d0
add esp, 0xc
mov esi, eax
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x652383e0
push str._on_update
jmp 0x652383e5
push str._on_delete
push 9
push ebx
call fcn.652371f0
mov eax, dword [ebp + 0x1e8]
add esp, 0xc
push 1
push 0x10
push eax
call fcn.652617d0
movsx eax, byte [eax]
add esp, 0xc
sub eax, 0x43
je 0x65238427
dec eax
je 0x6523841d
sub eax, 0xa
jne 0x6523842f
mov dword [esp + 0x30], str.set_null
jmp 0x6523842f
mov dword [esp + 0x30], str.set_default
jmp 0x6523842f
mov dword [esp + 0x30], str.cascade
mov ecx, dword [esp + 0x30]
push ecx
push 9
push ebx
call fcn.652371f0
mov edx, dword [ebp + 0x1e8]
push 0x10
push edx
call fcn.65262260
add esp, 0x14
test eax, eax
jne 0x652383b4
mov eax, dword [ebp + 0x1e8]
push 0x10
push eax
call fcn.65261d80
add esp, 8
mov ecx, dword [ebp + 0x1e8]
push 5
push 4
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 0x6523849f
push str._CHECK_ON_COMMIT
push 9
push ebx
call fcn.652371f0
add esp, 0xc
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x652384c5
mov eax, dword [ebp + 0x1e8]
push 7
push 4
push eax
call fcn.652617d0
push eax
push 9
push ebp
call fcn.652379e0
add esp, 0x18
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, str._CLUSTERED
jne 0x652384d7
mov eax, 0x6528b61a
push eax
push 9
push ebx
call fcn.652371f0
push 0x6528fa54
push 9
push ebx
call fcn.652371f0
mov eax, dword [ebp + 0xc]
add esp, 0x18
test eax, eax
je 0x6523859a
mov ecx, dword [ebp + 0x1e8]
push 6
push 4
push ecx
call fcn.65261720
add esp, 0xc
test eax, eax
jne 0x6523859a
mov edx, dword [ebp + 0x1e8]
push 6
push 4
push edx
call fcn.652617d0
push 0
mov esi, eax
mov eax, dword [ebp + 0x1e8]
push 4
push eax
call fcn.652617d0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
push str.COMMENT_ON_FOREIGN_KEY___s_.__s_.__s__IS_r_n_t
push 9
push ebx
call fcn.652371f0
mov eax, esi
add esp, 0x30
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x65238558
sub eax, edi
push 9
push ebx
mov edi, eax
call fcn.652371e0
push eax
push 0x652385e0
xor eax, eax
mov al, byte [ebp + 0x126]
push 1
push 1
push eax
push str._x_nov
push edi
push esi
call fcn.6526d4b0
push 0x6528fa54
push 9
push ebx
call fcn.652371f0
add esp, 0x34
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.652440f0
mov edx, dword [esp + 0x2c]
push edx
call fcn.652440f0
mov eax, dword [ebp + 0x1e8]
push 4
push eax
call fcn.65262260
add esp, 0x10
test eax, eax
jne 0x6523820c
pop ebx
mov ecx, dword [ebp + 0x1e8]
push 4
push ecx
call fcn.65261d80
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x1c
ret