Function at 0x40e620
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.Type
push str.Name
push str.Schema
lea eax, [ebp - 0xc]
push str.SELECT_n.nspname_as___s___n_______t.typname_as___s___n_______pg_catalog.format_type_t.typbasetype__t.typtypmod__as___s___n_______TRIM_LEADING_n
push eax
call sub.LIBPQ.dll_Ordinal_90
add esp, 0x18
cmp dword [0x456394], 0x15ff4
jl 0x40e67d
lea eax, [ebp - 0xc]
push str.____________COALESCE__SELECT__collate___c.collname_FROM_pg_catalog.pg_collation_c__pg_catalog.pg_type_bt_n______________________WHERE_c.oid__t.typcollation_AND_bt.oid__t.typbasetype_AND_t.typcollation____bt.typcollation______n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
push ebx
push str.Check
push str.Modifier
lea eax, [ebp - 0xc]
push str.____________CASE_WHEN_t.typnotnull_THEN__not_null_ELSE__END__n____________CASE_WHEN_t.typdefault_IS_NOT_NULL_THEN__default___t.typdefault_ELSE__END_n_________as___s___n_______pg_catalog.array_to_string_ARRAY__n_________SELECT_pg_catalog.pg_get_constraintdef_r.oid__true__FROM_pg_catalog.pg_constraint_r_WHERE_t.oid__r.contypid_n_____________as___s_
push eax
call sub.LIBPQ.dll_Ordinal_91
mov bl, byte [ebp + 0xc]
add esp, 0x10
test bl, bl
je 0x40e701
cmp dword [0x456394], 0x16058
jl 0x40e6eb
lea eax, [ebp - 0xc]
push 0x42f5c8
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
lea eax, [ebp - 0xc]
cmp dword [0x456394], 0x138e4
push str.Access_privileges
push str.t.typacl
jl 0x40e6dd
push str.pg_catalog.array_to_string__s__E_n__AS___s_
jmp 0x40e6e2
push str.pg_catalog.array_to_string__s___n__AS___s_
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0x10
push str.Description
lea eax, [ebp - 0xc]
push str.__n_______d.description_as___s_
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
lea eax, [ebp - 0xc]
push str._nFROM_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
add esp, 8
test bl, bl
pop ebx
je 0x40e728
lea eax, [ebp - 0xc]
push str._____LEFT_JOIN_pg_catalog.pg_description_d_ON_d.classoid__t.tableoid_AND_d.objoid__t.oid_AND_d.objsubid__0_n
push eax
call sub.LIBPQ.dll_Ordinal_75
add esp, 8
lea eax, [ebp - 0xc]
push str.WHERE_t.typtype__d_n
push eax
call sub.LIBPQ.dll_Ordinal_75
mov esi, dword [ebp + 8]
add esp, 8
cmp byte [ebp + 0x10], 0
jne 0x40e757
test esi, esi
jne 0x40e757
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 0
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 0x40e7ac
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push str.List_of_domains
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