Function at 0x140004120
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400163a0]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.PGAPPNAMEpg_regress
call fcn.140009280
cmp byte [0x140016438], 0
je 0x14000419c
lea rcx, str.LC_COLLATE
call fcn.1400093a0
lea rcx, str.LC_CTYPE
call fcn.1400093a0
lea rcx, str.LC_MONETARY
call fcn.1400093a0
lea rcx, str.LC_NUMERIC
call fcn.1400093a0
lea rcx, str.LC_TIME
call fcn.1400093a0
lea rcx, str.LANG
call fcn.1400093a0
lea rcx, str.LANGC
call fcn.140009280
lea rcx, str.LANGUAGE
call fcn.1400093a0
lea rcx, str.LC_ALL
call fcn.1400093a0
lea rcx, str.LC_MESSAGESC
call fcn.140009280
mov r8, qword [0x140016410]
test r8, r8
je 0x1400041e9
lea rdx, str.PGCLIENTENCODING
lea rcx, [0x14000f9a4]
call fcn.140007d20
mov rcx, rax
call fcn.140009280
jmp 0x1400041f5
lea rcx, str.PGCLIENTENCODING
call fcn.1400093a0
lea rcx, str.PGTZPST8PDT
call fcn.140009280
lea rcx, str.PGDATESTYLEPostgres__MDY
call fcn.140009280
lea rcx, str.PGOPTIONS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
lea rdx, [0x14000f77e]
lea r8, str._c_intervalstylepostgres_verbose
cmovne rdx, rax
lea rcx, str.PGOPTIONS_s__s
call fcn.140007d20
mov rcx, rax
call fcn.140009280
cmp qword [0x140016428], 0
je 0x14000431a
lea rcx, str.PGDATABASE
call fcn.1400093a0
lea rcx, str.PGUSER
call fcn.1400093a0
lea rcx, str.PGSERVICE
call fcn.1400093a0
lea rcx, str.PGSSLMODE
call fcn.1400093a0
lea rcx, str.PGREQUIRESSL
call fcn.1400093a0
lea rcx, str.PGCONNECT_TIMEOUT
call fcn.1400093a0
lea rcx, str.PGDATA
call fcn.1400093a0
mov r8, qword [0x140016440]
lea rdx, str.PGHOST
lea rcx, [0x14000f9a4]
call fcn.140007d20
mov rcx, rax
call fcn.140009280
lea rcx, str.PGHOSTADDR
call fcn.1400093a0
mov r8d, dword [0x140016030]
cmp r8d, 0xffffffff
je 0x140004472
lea rdx, [0x14000fb54]
lea rcx, [rsp + 0x20]
call fcn.14000a6e0
lea r8, [rsp + 0x20]
lea rdx, str.PGPORT
lea rcx, [0x14000f9a4]
call fcn.140007d20
mov rcx, rax
call fcn.140009280
jmp 0x140004472
mov r8, qword [0x140016440]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rdi
test r8, r8
je 0x14000435c
lea rdx, str.PGHOST
lea rcx, [0x14000f9a4]
call fcn.140007d20
mov rcx, rax
call fcn.140009280
lea rcx, str.PGHOSTADDR
call fcn.1400093a0
mov r8d, dword [0x140016030]
cmp r8d, 0xffffffff
je 0x14000439a
lea rdx, [0x14000fb54]
lea rcx, [rsp + 0x20]
call fcn.14000a6e0
lea r8, [rsp + 0x20]
lea rdx, str.PGPORT
lea rcx, [0x14000f9a4]
call fcn.140007d20
mov rcx, rax
call fcn.140009280
mov r8, qword [0x140016448]
test r8, r8
je 0x1400043c1
lea rdx, str.PGUSER
lea rcx, [0x14000f9a4]
call fcn.140007d20
mov rcx, rax
call fcn.140009280
lea rcx, str.PGHOST
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, str.PGPORT
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rbx, rbx
lea rsi, str.localhost
mov rdi, rax
cmovne rsi, rbx
mov rbx, qword [rsp + 0x50]
test rax, rax
je 0x140004413
lea rcx, str._using_postmaster_on__s__port__s__n
call sub.libintl_8.dll_libintl_gettext
mov rcx, rax
mov r8, rdi
mov rdx, rsi
call fcn.14000a8f0
test rsi, rsi
je 0x140004436
test rdi, rdi
jne 0x140004468
lea rcx, str._using_postmaster_on__s__default_port__n
call sub.libintl_8.dll_libintl_gettext
mov rcx, rax
mov rdx, rsi
call fcn.14000a8f0
jmp 0x140004468
test rdi, rdi
je 0x140004454
lea rcx, str._using_postmaster_on_Unix_socket__port__s__n
call sub.libintl_8.dll_libintl_gettext
mov rcx, rax
mov rdx, rdi
call fcn.14000a8f0
jmp 0x140004468
lea rcx, str._using_postmaster_on_Unix_socket__default_port__n
call sub.libintl_8.dll_libintl_gettext
mov rcx, rax
call fcn.14000a8f0
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
mov rdx, qword [0x140016018]
lea r9, [0x14000f940]
lea r8, [0x14000f940]
lea rcx, str.input
call fcn.140003240
mov rdx, qword [0x140016018]
lea r9, [0x14000f94c]
lea r8, str.expected
lea rcx, str.output
call fcn.140003240
call fcn.1400044d0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000e240
add rsp, 0x48
ret