Function at 0x40c6f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
lea eax, [ebp - 0xc]
mov ecx, 0x1a
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.Name
push str.Schema
lea eax, [ebp - 0xc]
push str.SELECT_n.nspname_as___s___n__pg_catalog.format_type_t.oid__NULL__AS___s___n
push eax
call sub.LIBPQ.dll_Ordinal_90
add esp, 0x14
cmp byte [ebp + 0xc], 0
je 0x40c803
push str.Size
push str.Internal_name
lea eax, [ebp - 0xc]
push str.__t.typname_AS___s___n__CASE_WHEN_t.typrelid___0_n______THEN_CAST_tuple_AS_pg_catalog.text__n____WHEN_t.typlen___0_n______THEN_CAST_var_AS_pg_catalog.text__n____ELSE_CAST_t.typlen_AS_pg_catalog.text__n__END_AS___s___n
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0x10
cmp dword [0x456394], 0x139ac
jl 0x40c7a7
lea eax, [ebp - 0xc]
push str.__pg_catalog.array_to_string__n______ARRAY__n_t_t_____SELECT_e.enumlabel_n__________FROM_pg_catalog.pg_enum_e_n__________WHERE_e.enumtypid__t.oid_n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
lea eax, [ebp - 0xc]
cmp dword [0x456394], 0x15ff4
jl 0x40c783
push str.__________ORDER_BY_e.enumsortorder_n
jmp 0x40c788
push str.__________ORDER_BY_e.oid_n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
lea eax, [ebp - 0xc]
push str.Elements
push str._________n______E_n_n____AS___s___n
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
push str.Owner
lea eax, [ebp - 0xc]
push str.__pg_catalog.pg_get_userbyid_t.typowner__AS___s___n
push eax
call sub.LIBPQ.dll_Ordinal_91
mov eax, dword [0x456394]
add esp, 0xc
cmp eax, 0x16058
jl 0x40c803
push str.Access_privileges
cmp eax, 0x138e4
lea eax, [ebp - 0xc]
push str.t.typacl
jl 0x40c7e4
push str.pg_catalog.array_to_string__s__E_n__AS___s_
jmp 0x40c7e9
push str.pg_catalog.array_to_string__s___n__AS___s_
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0x10
lea eax, [ebp - 0xc]
push 0x42f5c8
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
push str.Description
lea eax, [ebp - 0xc]
push str.__pg_catalog.obj_description_t.oid__pg_type__as___s__n
push eax
call sub.LIBPQ.dll_Ordinal_91
lea eax, [ebp - 0xc]
push str.FROM_pg_catalog.pg_type_t_n_____LEFT_JOIN_pg_catalog.pg_namespace_n_ON_n.oid__t.typnamespace_n
push eax
call sub.LIBPQ.dll_Ordinal_75
lea eax, [ebp - 0xc]
push str.WHERE__t.typrelid__0
push eax
call sub.LIBPQ.dll_Ordinal_75
lea eax, [ebp - 0xc]
push str.OR__SELECT_c.relkind__c_FROM_pg_catalog.pg_class_c_WHERE_c.oid__t.typrelid___n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 0x24
lea eax, [ebp - 0xc]
cmp dword [0x456394], 0x139ac
jl 0x40c859
push str.__AND_NOT_EXISTS_SELECT_1_FROM_pg_catalog.pg_type_el_WHERE_el.oid__t.typelem_AND_el.typarray__t.oid__n
jmp 0x40c85e
push str.__AND_t.typname_____n
push eax
call sub.LIBPQ.dll_Ordinal_75
mov esi, dword [ebp + 8]
add esp, 8
cmp byte [ebp + 0x10], 0
jne 0x40c885
test esi, esi
jne 0x40c885
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_type_is_visible_t.oid_
push str.pg_catalog.format_type_t.oid__NULL_
push str.t.typname
push str.n.nspname
push 0
push 1
push esi
lea eax, [ebp - 0xc]
push eax
push dword [0x456300]
call fcn.00401fe0
lea eax, [ebp - 0xc]
push str.ORDER_BY_1__2_
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, 0x34
test esi, esi
jne 0x40c8dd
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push str.List_of_data_types
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
call fcn.004180b0
push esi
call sub.LIBPQ.dll_Ordinal_48
add esp, 0x1c
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret