Function at 0x412890
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.MSVCR120.dll_getenv]
push edi
push str.PGUSER
call esi
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4128d7
lea eax, [ebp - 4]
push eax
call fcn.004252b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4128d7
push dword [ebp - 4]
push 0x42b7e0
call fcn.00408fb0
add esp, 8
push 1
call dword [sym.imp.MSVCR120.dll_exit]
xor ecx, ecx
mov eax, 0x456314
cmp word [ebp + 8], cx
cmove eax, ecx
push eax
push 0x3d
call fcn.004179f0
push str.psql_is_the_PostgreSQL_interactive_terminal._n_n
mov edi, eax
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.Usage:_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.__psql__OPTION_...__DBNAME__USERNAME___n_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.General_options:_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.PGDATABASE
call esi
mov esi, eax
test esi, esi
push str.___c____commandCOMMAND____run_only_single_command__SQL_or_internal__and_exit_n
cmove esi, ebx
call sub.libintl_8.dll_libintl_gettext
add esp, 0x40
push eax
push edi
call fcn.00426490
add esp, 8
push esi
push str.___d____dbnameDBNAME______database_name_to_connect_to__default:___s___n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
push edi
call fcn.00426490
push str.___f____fileFILENAME______execute_commands_from_file__then_exit_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___l____list_______________list_available_databases__then_exit_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___v____set____variableNAMEVALUE_n___________________________set_psql_variable_NAME_to_VALUE_n____________________________e.g.___v_ON_ERROR_STOP1__n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___V____version____________output_version_information__then_exit_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___X____no_psqlrc__________do_not_read_startup_file___.psqlrc__n
call sub.libintl_8.dll_libintl_gettext
add esp, 0x40
push eax
push edi
call fcn.00426490
push str.___1___one______single_transaction_n___________________________execute_as_a_single_transaction__if_non_interactive__n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.________help_options______show_this_help__then_exit_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.________helpcommands______list_backslash_commands__then_exit_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.________helpvariables_____list_special_variables__then_exit_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str._nInput_and_output_options:_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
add esp, 0x44
push str.___a____echo_all___________echo_all_input_from_script_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___b____echo_errors________echo_failed_commands_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___e____echo_queries_______echo_commands_sent_to_server_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___E____echo_hidden________display_queries_that_internal_commands_generate_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___L____log_fileFILENAME__send_session_log_to_file_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___n____no_readline________disable_enhanced_command_line_editing__readline__n
call sub.libintl_8.dll_libintl_gettext
add esp, 0x40
push eax
push edi
call fcn.00426490
push str.___o____outputFILENAME____send_query_results_to_file__or_pipe__n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___q____quiet______________run_quietly__no_messages__only_query_output__n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___s____single_step________single_step_mode__confirm_each_query__n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___S____single_line________single_line_mode__end_of_line_terminates_SQL_command__n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str._nOutput_format_options:_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
add esp, 0x44
push str.___A____no_align___________unaligned_table_output_mode_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
add esp, 0xc
push 0x43b300
push str.___F____field_separatorSTRING_n___________________________field_separator_for_unaligned_output__default:___s___n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
push edi
call fcn.00426490
push str.___H____html_______________HTML_table_output_mode_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___P____psetVAR_ARG______set_printing_option_VAR_to_ARG__see_pset_command__n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___R____record_separatorSTRING_n___________________________record_separator_for_unaligned_output__default:_newline__n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___t____tuples_only________print_rows_only_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___T____table_attrTEXT____set_HTML_table_tag_attributes__e.g.__width__border__n
call sub.libintl_8.dll_libintl_gettext
add esp, 0x40
push eax
push edi
call fcn.00426490
push str.___x____expanded___________turn_on_expanded_table_output_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___z____field_separator_zero_n___________________________set_field_separator_for_unaligned_output_to_zero_byte_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___0____record_separator_zero_n___________________________set_record_separator_for_unaligned_output_to_zero_byte_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str._nConnection_options:_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
mov esi, dword [sym.imp.MSVCR120.dll_getenv]
push str.PGHOST
call esi
add esp, 0x3c
test eax, eax
jne 0x412bc8
push str.local_socket
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
push str.___h____hostHOSTNAME______database_server_host_or_socket_directory__default:___s___n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
push edi
call fcn.00426490
push str.PGPORT
call esi
add esp, 0x10
mov ecx, str.5432
test eax, eax
cmovne ecx, eax
push ecx
push str.___p____portPORT__________database_server_port__default:___s___n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
push edi
call fcn.00426490
push str.PGUSER
call esi
add esp, 0x10
test eax, eax
cmove eax, ebx
push eax
push str.___U____usernameUSERNAME__database_user_name__default:___s___n
call sub.libintl_8.dll_libintl_gettext
add esp, 4
push eax
push edi
call fcn.00426490
push str.___w____no_password________never_prompt_for_password_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.___W____password___________force_password_prompt__should_happen_automatically__n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str._nFor_more_information__type______for_internal_commands__or__help___for_SQL_ncommands__from_within_psql__or_consult_the_psql_section_in_the_PostgreSQL_ndocumentation._n_n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push str.Report_bugs_to__pgsql_bugs_postgresql.org_._n
call sub.libintl_8.dll_libintl_gettext
push eax
push edi
call fcn.00426490
push edi
call fcn.00417a70
add esp, 0x40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret