Function at 0x40d670
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
lea eax, [ebp - 0xc]
mov ecx, 0x1a
push ebx
push esi
push edi
mov esi, 0x456314
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push eax
call sub.LIBPQ.dll_Ordinal_69
push str.Description
push str.Object
push str.Name
push str.Schema
lea eax, [ebp - 0xc]
push str.SELECT_DISTINCT_tt.nspname_AS___s___tt.name_AS___s___tt.object_AS___s___d.description_AS___s__nFROM___n
push eax
call sub.LIBPQ.dll_Ordinal_91
push 0x4314b0
lea eax, [ebp - 0xc]
push str.__SELECT_pgc.oid_as_oid__pgc.tableoid_AS_tableoid__n__n.nspname_as_nspname__n__CAST_pgc.conname_AS_pg_catalog.text__as_name___CAST__s_AS_pg_catalog.text__as_object_n__FROM_pg_catalog.pg_constraint_pgc_n____JOIN_pg_catalog.pg_class_c_ON_c.oid__pgc.conrelid_n____LEFT_JOIN_pg_catalog.pg_namespace_n_____ON_n.oid__c.relnamespace_n
push eax
call sub.LIBPQ.dll_Ordinal_91
mov bl, byte [ebp + 0xc]
add esp, 0x28
mov esi, dword [ebp + 8]
test bl, bl
jne 0x40d6ed
test esi, esi
jne 0x40d6ed
lea eax, [ebp - 0xc]
push str.WHERE_n.nspname____pg_catalog_n______AND_n.nspname____information_schema_n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
lea eax, [esi + 1]
jmp 0x40d6ef
xor eax, eax
push str.pg_catalog.pg_table_is_visible_c.oid_
push 0
push str.pgc.conname
push str.n.nspname
push 0
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push dword [0x456300]
call fcn.00401fe0
push 0x431644
lea eax, [ebp - 0xc]
push str.UNION_ALL_n__SELECT_pgc.oid_as_oid__pgc.tableoid_AS_tableoid__n__n.nspname_as_nspname__n__CAST_pgc.conname_AS_pg_catalog.text__as_name___CAST__s_AS_pg_catalog.text__as_object_n__FROM_pg_catalog.pg_constraint_pgc_n____JOIN_pg_catalog.pg_type_t_ON_t.oid__pgc.contypid_n____LEFT_JOIN_pg_catalog.pg_namespace_n_____ON_n.oid__t.typnamespace_n
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0x30
test bl, bl
jne 0x40d747
test esi, esi
jne 0x40d747
lea eax, [ebp - 0xc]
push str.WHERE_n.nspname____pg_catalog_n______AND_n.nspname____information_schema_n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
lea eax, [esi + 1]
jmp 0x40d749
xor eax, eax
push str.pg_catalog.pg_type_is_visible_t.oid_
push 0
push str.pgc.conname
push str.n.nspname
push 0
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push dword [0x456300]
call fcn.00401fe0
mov eax, dword [0x456394]
add esp, 0x24
cmp eax, 0x139ac
jl 0x40d7d8
push str.operator_class
lea eax, [ebp - 0xc]
push str.UNION_ALL_n__SELECT_o.oid_as_oid__o.tableoid_as_tableoid__n__n.nspname_as_nspname__n__CAST_o.opcname_AS_pg_catalog.text__as_name__n__CAST__s_AS_pg_catalog.text__as_object_n__FROM_pg_catalog.pg_opclass_o_n____JOIN_pg_catalog.pg_am_am_ON_o.opcmethod__am.oid_n____JOIN_pg_catalog.pg_namespace_n_ON_n.oid__o.opcnamespace_n
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
test bl, bl
jne 0x40d7ab
test esi, esi
jne 0x40d7ab
lea eax, [ebp - 0xc]
push str.______AND_n.nspname____pg_catalog_n______AND_n.nspname____information_schema_n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
push str.pg_catalog.pg_opclass_is_visible_o.oid_
push 0
push str.o.opcname
push str.n.nspname
push 0
push 1
push esi
lea eax, [ebp - 0xc]
push eax
push dword [0x456300]
call fcn.00401fe0
mov eax, dword [0x456394]
add esp, 0x24
cmp eax, 0x16058
jl 0x40d836
push str.operator_family
lea eax, [ebp - 0xc]
push str.UNION_ALL_n__SELECT_opf.oid_as_oid__opf.tableoid_as_tableoid__n__n.nspname_as_nspname__n__CAST_opf.opfname_AS_pg_catalog.text__AS_name__n__CAST__s_AS_pg_catalog.text__as_object_n__FROM_pg_catalog.pg_opfamily_opf_n____JOIN_pg_catalog.pg_am_am_ON_opf.opfmethod__am.oid_n____JOIN_pg_catalog.pg_namespace_n_ON_opf.opfnamespace__n.oid_n
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
test bl, bl
jne 0x40d80e
test esi, esi
jne 0x40d80e
lea eax, [ebp - 0xc]
push str.______AND_n.nspname____pg_catalog_n______AND_n.nspname____information_schema_n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
push str.pg_catalog.pg_opfamily_is_visible_opf.oid_
push 0
push str.opf.opfname
push str.n.nspname
push 0
push 1
push esi
lea eax, [ebp - 0xc]
push eax
push dword [0x456300]
call fcn.00401fe0
add esp, 0x24
push str.rule
lea eax, [ebp - 0xc]
push str.UNION_ALL_n__SELECT_r.oid_as_oid__r.tableoid_as_tableoid__n__n.nspname_as_nspname__n__CAST_r.rulename_AS_pg_catalog.text__as_name___CAST__s_AS_pg_catalog.text__as_object_n__FROM_pg_catalog.pg_rewrite_r_n_______JOIN_pg_catalog.pg_class_c_ON_c.oid__r.ev_class_n_______LEFT_JOIN_pg_catalog.pg_namespace_n_ON_n.oid__c.relnamespace_n__WHERE_r.rulename____RETURN_n
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
test bl, bl
jne 0x40d865
test esi, esi
jne 0x40d865
lea eax, [ebp - 0xc]
push str.______AND_n.nspname____pg_catalog_n______AND_n.nspname____information_schema_n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
push str.pg_catalog.pg_table_is_visible_c.oid_
push 0
push str.r.rulename
push str.n.nspname
push 0
push 1
push esi
lea eax, [ebp - 0xc]
push eax
push dword [0x456300]
call fcn.00401fe0
push str.trigger
lea eax, [ebp - 0xc]
push str.UNION_ALL_n__SELECT_t.oid_as_oid__t.tableoid_as_tableoid__n__n.nspname_as_nspname__n__CAST_t.tgname_AS_pg_catalog.text__as_name___CAST__s_AS_pg_catalog.text__as_object_n__FROM_pg_catalog.pg_trigger_t_n_______JOIN_pg_catalog.pg_class_c_ON_c.oid__t.tgrelid_n_______LEFT_JOIN_pg_catalog.pg_namespace_n_ON_n.oid__c.relnamespace_n
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0x30
test bl, bl
jne 0x40d8be
test esi, esi
jne 0x40d8be
lea eax, [ebp - 0xc]
push str.WHERE_n.nspname____pg_catalog_n______AND_n.nspname____information_schema_n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
lea eax, [esi + 1]
jmp 0x40d8c0
xor eax, eax
push str.pg_catalog.pg_table_is_visible_c.oid_
push 0
push str.t.tgname
push str.n.nspname
push 0
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push dword [0x456300]
call fcn.00401fe0
lea eax, [ebp - 0xc]
push str.__AS_tt_n__JOIN_pg_catalog.pg_description_d_ON__tt.oid__d.objoid_AND_tt.tableoid__d.classoid_AND_d.objsubid__0__n
push eax
call sub.LIBPQ.dll_Ordinal_75
lea eax, [ebp - 0xc]
push str.ORDER_BY_1__2__3_
push eax
call sub.LIBPQ.dll_Ordinal_75
push dword [ebp - 0xc]
call fcn.00409100
mov esi, eax
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_67
add esp, 0x3c
test esi, esi
jne 0x40d923
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push str.Object_descriptions
mov dword [ebp - 0x28], 0
call sub.libintl_8.dll_libintl_gettext
push dword [0x4563b4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x74]
push 0
push dword [0x456308]
mov byte [ebp - 0x18], 1
push eax
push esi
mov dword [ebp - 0x14], 0x42f050
mov dword [ebp - 0x10], 4
call fcn.004180b0
push esi
call sub.LIBPQ.dll_Ordinal_48
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret