Function at 0x40d310
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.foreign_table
push str.sequence
push str.materialized_view
push str.view
push str.table
push str.Name
push str.Schema
lea eax, [ebp - 0xc]
push str.SELECT_n.nspname_as___s___n__c.relname_as___s___n__CASE_c.relkind_WHEN_r_THEN__s_WHEN_v_THEN__s_WHEN_m_THEN__s_WHEN_S_THEN__s_WHEN_f_THEN__s_END_as___s___n
push eax
call sub.LIBPQ.dll_Ordinal_90
add esp, 0x2c
lea eax, [ebp - 0xc]
cmp dword [0x456394], 0x138e4
push str.Access_privileges
push str.c.relacl
jl 0x40d389
push str.pg_catalog.array_to_string__s__E_n__AS___s_
jmp 0x40d38e
push str.pg_catalog.array_to_string__s___n__AS___s_
push eax
call sub.LIBPQ.dll_Ordinal_91
mov eax, dword [0x456394]
add esp, 0x10
cmp eax, 0x13a10
jl 0x40d3be
push str.Column_privileges
lea eax, [ebp - 0xc]
push str.__n__pg_catalog.array_to_string_ARRAY__n____SELECT_attname__E:_n____pg_catalog.array_to_string_attacl__E_n____n____FROM_pg_catalog.pg_attribute_a_n____WHERE_attrelid__c.oid_AND_NOT_attisdropped_AND_attacl_IS_NOT_NULL_n_____E_n__AS___s_
push eax
call sub.LIBPQ.dll_Ordinal_91
mov eax, dword [0x456394]
add esp, 0xc
cmp eax, 0x16184
jl 0x40d3db
push str.Policies
lea eax, [ebp - 0xc]
push str.__n__pg_catalog.array_to_string_ARRAY__n____SELECT_polname_n_____CASE_WHEN_polcmd____THEN_n___________E____polcmd__E_:_n_______ELSE_E:__n_______END_n_____CASE_WHEN_polqual_IS_NOT_NULL_THEN_n___________E_n___u_:___pg_catalog.pg_get_expr_polqual__polrelid__n_______ELSE_E_n_______END_n_____CASE_WHEN_polwithcheck_IS_NOT_NULL_THEN_n___________E_n___c_:___pg_catalog.pg_get_expr_polwithcheck__polrelid__n_______ELSE_E_n_______END_____CASE_WHEN_polroles____0_THEN_n___________E_n__to:___pg_catalog.array_to_string__n_______________ARRAY__n___________________SELECT_rolname_n___________________FROM_pg_catalog.pg_roles_n___________________WHERE_oid__ANY__polroles__n___________________ORDER_BY_1_n__________________E____n_______ELSE_E_n_______END_n____FROM_pg_catalog.pg_policy_pol_n____WHERE_polrelid__c.oid___E_n__n____AS___s_
push eax
call sub.LIBPQ.dll_Ordinal_91
add esp, 0xc
lea eax, [ebp - 0xc]
push str._nFROM_pg_catalog.pg_class_c_n_____LEFT_JOIN_pg_catalog.pg_namespace_n_ON_n.oid__c.relnamespace_nWHERE_c.relkind_IN__r__v__m__S__f__n
push eax
call sub.LIBPQ.dll_Ordinal_75
push str.n.nspname___pg__AND_pg_catalog.pg_table_is_visible_c.oid_
push 0
push str.c.relname
push str.n.nspname
push 0
push 1
push dword [ebp + 8]
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
add esp, 0x38
test esi, esi
jne 0x40d443
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_67
add esp, 4
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Access_privileges
mov dword [ebp - 0x28], 0
call sub.libintl_8.dll_libintl_gettext
push eax
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_90
push dword [0x4563b4]
mov eax, dword [ebp - 0xc]
push 0
push dword [0x456308]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x74]
push eax
push esi
mov byte [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x42f044
mov dword [ebp - 0x10], 6
call fcn.004180b0
lea eax, [ebp - 0xc]
push eax
call sub.LIBPQ.dll_Ordinal_67
push esi
call sub.LIBPQ.dll_Ordinal_48
add esp, 0x28
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret