Function at 0x68b0c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edi
test eax, eax
je 0x68b0ea
push eax
call sym.postgres.exe_make_absolute_path
add esp, 4
jmp 0x68b0fe
push str.PGDATA
call dword [sym.imp.MSVCR100.dll_getenv]
push eax
call sym.postgres.exe_make_absolute_path
add esp, 8
mov esi, eax
mov eax, dword [0x867fcc]
test eax, eax
je 0x68b116
push eax
call sym.postgres.exe_make_absolute_path
add esp, 4
mov edi, eax
jmp 0x68b14c
test esi, esi
je 0x68b34b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x68b123
sub eax, edx
add eax, 0x11
push 0x15
call fcn.00683df0
push str.postgresql.conf
push esi
mov edi, eax
push 0x6b04b0
push edi
call sym.postgres.exe_pg_sprintf
add esp, 0x14
push ebx
push 0
push 1
push 0
push 9
push 1
push edi
push str.config_file
call sym.postgres.exe_set_config_option
mov ebx, dword [sym.imp.MSVCR100.dll_free]
push edi
call ebx
mov ecx, dword [0x867fcc]
lea eax, [ebp - 0x28]
push eax
push ecx
call sym.postgres.exe_pgwin32_safestat
add esp, 0x28
test eax, eax
je 0x68b1bf
call dword [sym.imp.MSVCR100.dll__errno]
mov edx, dword [eax]
push edx
call dword [sym.imp.MSVCR100.dll_strerror]
mov ecx, dword [ebp - 0x2c]
push eax
mov eax, dword [0x867fcc]
push eax
push ecx
push str._s_cannot_access_the_server_configuration_file___s_:__s_n
call sym.postgres.exe_write_stderr
push esi
call ebx
add esp, 0x18
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push 1
call sym.postgres.exe_ProcessConfigFile
mov eax, dword [0x867ff0]
add esp, 4
test eax, eax
je 0x68b1d5
push eax
jmp 0x68b1de
test esi, esi
je 0x68b339
push esi
call sym.postgres.exe_SetDataDir
mov edx, dword [sym.postgres.exe_DataDir]
add esp, 4
push 0
push 1
push 0
push 9
push 1
push edx
push str.data_directory
call sym.postgres.exe_set_config_option
push 0
push 1
push 0
push 1
push 1
push str.Default
push str.timezone_abbreviations
call sym.postgres.exe_set_config_option
mov eax, dword [0x867fd0]
add esp, 0x38
test eax, eax
je 0x68b233
push eax
call sym.postgres.exe_make_absolute_path
add esp, 4
mov edi, eax
jmp 0x68b269
test esi, esi
je 0x68b327
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x68b240
sub eax, edx
add eax, 0xd
push 0x15
call fcn.00683df0
push str.pg_hba.conf
push esi
mov edi, eax
push 0x6b04b0
push edi
call sym.postgres.exe_pg_sprintf
add esp, 0x14
push 0
push 1
push 0
push 9
push 1
push edi
push str.hba_file
call sym.postgres.exe_set_config_option
push edi
call ebx
mov eax, dword [0x867fdc]
add esp, 0x20
test eax, eax
je 0x68b29a
push eax
call sym.postgres.exe_make_absolute_path
add esp, 4
mov edi, eax
jmp 0x68b2cc
test esi, esi
je 0x68b2fd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x68b2a3
sub eax, edx
add eax, 0xf
push 0x15
call fcn.00683df0
push str.pg_ident.conf
push esi
mov edi, eax
push 0x6b04b0
push edi
call sym.postgres.exe_pg_sprintf
add esp, 0x14
push 0
push 1
push 0
push 9
push 1
push edi
push str.ident_file
call sym.postgres.exe_set_config_option
push edi
call ebx
push esi
call ebx
add esp, 0x24
pop ebx
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov eax, dword [0x867fcc]
mov ecx, dword [ebp - 0x2c]
push eax
push ecx
push str._s_does_not_know_where_to_find_the__ident__configuration_file._nThis_can_be_specified_as__ident_file__in___s___or_by_the__D_invocation_option__or_by_the_PGDATA_environment_variable._n
call sym.postgres.exe_write_stderr
add esp, 0xc
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov edx, dword [0x867fcc]
mov eax, dword [ebp - 0x2c]
push edx
push eax
push str._s_does_not_know_where_to_find_the__hba__configuration_file._nThis_can_be_specified_as__hba_file__in___s___or_by_the__D_invocation_option__or_by_the_PGDATA_environment_variable._n
jmp 0x68b30c
mov ecx, dword [0x867fcc]
mov edx, dword [ebp - 0x2c]
push ecx
push edx
push str._s_does_not_know_where_to_find_the_database_system_data._nThis_can_be_specified_as__data_directory__in___s___or_by_the__D_invocation_option__or_by_the_PGDATA_environment_variable._n
jmp 0x68b30c
push edi
push str._s_does_not_know_where_to_find_the_server_configuration_file._nYou_must_specify_the___config_file_or__D_invocation_option_or_set_the_PGDATA_environment_variable._n
call sym.postgres.exe_write_stderr
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret