Function at 0x689500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x6b2698
push str.global_config_exec_params
call sym.postgres.exe_AllocateFile
mov esi, eax
add esp, 8
test esi, esi
jne 0x689576
call dword [sym.imp.MSVCR100.dll__errno]
cmp dword [eax], 2
je 0x689735
push esi
push 0x76f414
push 0x1de2
push str.src_backendutilsmiscguc.c
push 0x15
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x689735
push str.global_config_exec_params
push str.could_not_read_from_file___s_:__m
call sym.postgres.exe_errmsg
add esp, 8
push eax
call sym.postgres.exe_errcode_for_file_access
push eax
call sym.postgres.exe_errfinish
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.00685070
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x68972b
push edi
jmp 0x689590
push 0x15
push 1
push ebx
call fcn.00687610
add esp, 0xc
test eax, eax
jne 0x6895c5
push 0x76f414
push 0x1dee
push str.src_backendutilsmiscguc.c
call sym.postgres.exe_elog_start
push ebx
push str.failed_to_locate_variable___s__in_exec_config_params_file
push 0x15
call sym.postgres.exe_elog_finish
add esp, 0x18
push esi
call fcn.00685070
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x6895f8
push 0x76f414
push 0x1df1
push str.src_backendutilsmiscguc.c
call sym.postgres.exe_elog_start
push str.invalid_format_of_exec_config_params_file
push 0x15
call sym.postgres.exe_elog_finish
add esp, 0x14
push esi
call fcn.00685070
mov edi, eax
add esp, 4
test edi, edi
jne 0x68962a
push 0x76f414
push 0x1df3
push str.src_backendutilsmiscguc.c
call sym.postgres.exe_elog_start
push str.invalid_format_of_exec_config_params_file
push 0x15
call sym.postgres.exe_elog_finish
add esp, 0x14
push esi
push 4
lea eax, [ebp - 0x10]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x689664
push 0x76f414
push 0x1df5
push str.src_backendutilsmiscguc.c
call sym.postgres.exe_elog_start
push str.invalid_format_of_exec_config_params_file
push 0x15
call sym.postgres.exe_elog_finish
add esp, 0x14
push esi
push 4
lea ecx, [ebp - 8]
push 1
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x68969e
push 0x76f414
push 0x1df7
push str.src_backendutilsmiscguc.c
call sym.postgres.exe_elog_start
push str.invalid_format_of_exec_config_params_file
push 0x15
call sym.postgres.exe_elog_finish
add esp, 0x14
push esi
push 4
lea edx, [ebp - 0xc]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 4
je 0x6896d8
push 0x76f414
push 0x1df9
push str.src_backendutilsmiscguc.c
call sym.postgres.exe_elog_start
push str.invalid_format_of_exec_config_params_file
push 0x15
call sym.postgres.exe_elog_finish
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
push 0
push 1
push 0
push eax
push ecx
push edx
push ebx
call sym.postgres.exe_set_config_option
add esp, 0x1c
cmp byte [edi], 0
je 0x689705
mov eax, dword [ebp - 0x10]
push eax
push edi
call fcn.00688d10
add esp, 8
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_free]
call ebx
mov ecx, dword [ebp - 4]
push ecx
call ebx
push edi
call ebx
push esi
call fcn.00685070
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x689590
pop edi
push esi
call sym.postgres.exe_FreeFile
add esp, 4
pop ebx
pop esi
mov esp, ebp
pop ebp
ret