Function at 0x67ed70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.006a8ce0
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push 0
push 0x8002
push str.postmaster.pid
mov dword [ebp - 0x2008], eax
call sym.postgres.exe_pgwin32_open
mov ebx, eax
add esp, 0xc
test ebx, ebx
jns 0x67edfe
push 0
push 0x767478
push 0x40f
push str.src_backendutilsinitmiscinit.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x67f06b
push str.postmaster.pid
push str.could_not_open_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 ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push 0x1fff
lea ecx, [ebp - 0x2004]
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll__read]
add esp, 0xc
test eax, eax
jns 0x67ee71
push 0
push 0x767478
push 0x418
push str.src_backendutilsinitmiscinit.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x67ee58
push str.postmaster.pid
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
push ebx
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
mov byte [ebp + eax - 0x2004], 0
lea eax, [ebp - 0x2004]
cmp edi, esi
jle 0x67eeaa
lea ecx, [ecx]
push 0xa
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x67efcd
inc esi
inc eax
cmp esi, edi
jl 0x67ee90
mov edx, dword [ebp - 0x2008]
push edx
lea ecx, [ebp - 4]
push 0x6c1514
sub ecx, eax
push ecx
push eax
call sym.postgres.exe_pg_snprintf
lea eax, [ebp - 0x2004]
add esp, 0x10
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x67eed0
mov edi, dword [sym.imp.MSVCR100.dll__errno]
sub eax, edx
mov esi, eax
call edi
push 0
push 0
push ebx
mov dword [eax], 0
call dword [sym.imp.MSVCR100.dll__lseek]
add esp, 0xc
test eax, eax
jne 0x67f010
push esi
lea edx, [ebp - 0x2004]
push edx
push ebx
call dword [sym.imp.MSVCR100.dll__write]
add esp, 0xc
cmp eax, esi
jne 0x67f010
push ebx
call sym.postgres.exe_pg_fsync
add esp, 4
test eax, eax
je 0x67ef66
push 0
push 0x767478
push 0x44b
push str.src_backendutilsinitmiscinit.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x67ef66
push str.postmaster.pid
push str.could_not_write_to_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
push ebx
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
test eax, eax
je 0x67f069
push 0
push 0x767478
push 0x452
push str.src_backendutilsinitmiscinit.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x67f069
push str.postmaster.pid
push str.could_not_write_to_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 edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
push 0x767478
push 0x426
push str.src_backendutilsinitmiscinit.c
call sym.postgres.exe_elog_start
push edi
dec esi
push esi
push str.postmaster.pid
push str.incomplete_data_in___s_:_found_only__d_newlines_while_trying_to_add_line__d
push 0xf
call sym.postgres.exe_elog_finish
push ebx
call dword [sym.imp.MSVCR100.dll__close]
add esp, 0x24
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
call edi
cmp dword [eax], 0
jne 0x67f01f
call edi
mov dword [eax], 0x1c
push 0
push 0x767478
push 0x442
push str.src_backendutilsinitmiscinit.c
push 0xf
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x67f05f
push str.postmaster.pid
push str.could_not_write_to_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
push ebx
call dword [sym.imp.MSVCR100.dll__close]
add esp, 4
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret