Function at 0x140003510
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140013460]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.PGAPPNAMEpg_regress
call fcn.1400082a0
cmp byte [0x140013489], 0
je 0x14000358c
lea rcx, str.LC_COLLATE
call fcn.1400083f0
lea rcx, str.LC_CTYPE
call fcn.1400083f0
lea rcx, str.LC_MONETARY
call fcn.1400083f0
lea rcx, str.LC_NUMERIC
call fcn.1400083f0
lea rcx, str.LC_TIME
call fcn.1400083f0
lea rcx, str.LANG
call fcn.1400083f0
lea rcx, str.LANGC
call fcn.1400082a0
lea rcx, str.LANGUAGE
call fcn.1400083f0
lea rcx, str.LC_ALL
call fcn.1400083f0
lea rcx, str.LC_MESSAGESC
call fcn.1400082a0
mov r8, qword [0x1400134a8]
test r8, r8
je 0x1400035d9
lea rdx, str.PGCLIENTENCODING
lea rcx, [0x14000e8bc]
call fcn.140007a10
mov rcx, rax
call fcn.1400082a0
jmp 0x1400035e5
lea rcx, str.PGCLIENTENCODING
call fcn.1400083f0
lea rcx, str.PGTZPST8PDT
call fcn.1400082a0
lea rcx, str.PGDATESTYLEPostgres__MDY
call fcn.1400082a0
lea rcx, str.PGOPTIONS
call qword [sym.imp.MSVCR120.dll_getenv]
lea rdx, [0x14000e68e]
lea r8, str._c_intervalstylepostgres_verbose
test rax, rax
lea rcx, str.PGOPTIONS_s__s
cmovne rdx, rax
call fcn.140007a10
mov rcx, rax
call fcn.1400082a0
cmp qword [0x1400134c0], 0
je 0x14000370a
lea rcx, str.PGDATABASE
call fcn.1400083f0
lea rcx, str.PGUSER
call fcn.1400083f0
lea rcx, str.PGSERVICE
call fcn.1400083f0
lea rcx, str.PGSSLMODE
call fcn.1400083f0
lea rcx, str.PGREQUIRESSL
call fcn.1400083f0
lea rcx, str.PGCONNECT_TIMEOUT
call fcn.1400083f0
lea rcx, str.PGDATA
call fcn.1400083f0
mov r8, qword [0x1400134d0]
lea rdx, str.PGHOST
lea rcx, [0x14000e8bc]
call fcn.140007a10
mov rcx, rax
call fcn.1400082a0
lea rcx, str.PGHOSTADDR
call fcn.1400083f0
mov r8d, dword [0x140013330]
cmp r8d, 0xffffffff
je 0x140003862
lea rdx, [0x14000ea6c]
lea rcx, [rsp + 0x20]
call fcn.1400094e0
lea r8, [rsp + 0x20]
lea rdx, str.PGPORT
lea rcx, [0x14000e8bc]
call fcn.140007a10
mov rcx, rax
call fcn.1400082a0
jmp 0x140003862
mov r8, qword [0x1400134d0]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rdi
test r8, r8
je 0x14000374c
lea rdx, str.PGHOST
lea rcx, [0x14000e8bc]
call fcn.140007a10
mov rcx, rax
call fcn.1400082a0
lea rcx, str.PGHOSTADDR
call fcn.1400083f0
mov r8d, dword [0x140013330]
cmp r8d, 0xffffffff
je 0x14000378a
lea rdx, [0x14000ea6c]
lea rcx, [rsp + 0x20]
call fcn.1400094e0
lea r8, [rsp + 0x20]
lea rdx, str.PGPORT
lea rcx, [0x14000e8bc]
call fcn.140007a10
mov rcx, rax
call fcn.1400082a0
mov r8, qword [0x1400134d8]
test r8, r8
je 0x1400037b1
lea rdx, str.PGUSER
lea rcx, [0x14000e8bc]
call fcn.140007a10
mov rcx, rax
call fcn.1400082a0
lea rcx, str.PGHOST
call qword [sym.imp.MSVCR120.dll_getenv]
lea rcx, str.PGPORT
mov rbx, rax
call qword [sym.imp.MSVCR120.dll_getenv]
test rbx, rbx
lea rsi, str.localhost
mov rdi, rax
cmovne rsi, rbx
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x140003803
lea rcx, str._using_postmaster_on__s__port__s__n
call sub.libintl_8.dll_libintl_gettext
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.1400096a0
test rsi, rsi
je 0x140003826
test rdi, rdi
jne 0x140003858
lea rcx, str._using_postmaster_on__s__default_port__n
call sub.libintl_8.dll_libintl_gettext
mov rdx, rsi
mov rcx, rax
call fcn.1400096a0
jmp 0x140003858
test rdi, rdi
je 0x140003844
lea rcx, str._using_postmaster_on_Unix_socket__port__s__n
call sub.libintl_8.dll_libintl_gettext
mov rdx, rdi
mov rcx, rax
call fcn.1400096a0
jmp 0x140003858
lea rcx, str._using_postmaster_on_Unix_socket__default_port__n
call sub.libintl_8.dll_libintl_gettext
mov rcx, rax
call fcn.1400096a0
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
mov rdx, qword [0x140013018]
lea r9, [0x14000e858]
lea r8, [0x14000e858]
lea rcx, str.input
call fcn.140002c40
mov rdx, qword [0x140013018]
lea r9, [0x14000e864]
lea r8, str.expected
lea rcx, str.output
call fcn.140002c40
call fcn.140003150
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000c8c0
add rsp, 0x48
ret