Function at 0x5953db
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8e30
call fcn.006a8ce0
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x8e08], ecx
movzx ecx, byte [eax + 5]
lea edx, [ebp - 0x8e10]
push edx
mov edx, dword [eax]
push ecx
push edx
mov dword [ebp - 0x8df0], eax
call sym.postgres.exe_do_pg_start_backup
push edx
push eax
mov dword [ebp - 0x8e00], eax
mov dword [ebp - 0x8dfc], edx
call fcn.005941d0
push 0
push 0x593ac0
call sym.postgres.exe_on_shmem_exit
mov eax, dword [sym.postgres.exe_PG_exception_stack]
mov ecx, dword [sym.postgres.exe_error_context_stack]
lea edx, [ebp - 0x8d84]
push 0
push edx
mov dword [ebp - 0x8e04], eax
mov dword [ebp - 0x8e0c], ecx
call sub.MSVCR100.dll__setjmp3
add esp, 0x24
test eax, eax
jne 0x595dce
mov ecx, dword [ebp - 0x8e08]
lea eax, [ebp - 0x8d84]
push str.pg_tblspc
push ecx
mov dword [sym.postgres.exe_PG_exception_stack], eax
xor ebx, ebx
call sym.postgres.exe_ReadDir
add esp, 8
test eax, eax
je 0x59531f
lea esi, [eax + 8]
mov ecx, 0x6c0144
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x595192
test dl, dl
je 0x59518e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x595192
add eax, 2
add ecx, 2
test dl, dl
jne 0x595172
xor eax, eax
jmp 0x595197
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x595303
mov ecx, 0x6c0140
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5951c6
test dl, dl
je 0x5951c2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5951c6
add eax, 2
add ecx, 2
test dl, dl
jne 0x5951a6
xor eax, eax
jmp 0x5951cb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x595303
push esi
push str.pg_tblspc__s
lea edx, [ebp - 0x944]
push 0x400
push edx
call sym.postgres.exe_pg_snprintf
push 0x400
lea eax, [ebp - 0xd44]
push eax
lea ecx, [ebp - 0x944]
push ecx
call sym.postgres.exe_pgreadlink
add esp, 0x1c
test eax, eax
jns 0x595248
push 0
push str.perform_base_backup
push 0x7f
push str.src_backend_replication_basebackup.c
push 0x13
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x595303
lea edx, [ebp - 0x944]
push edx
push str.could_not_read_symbolic_link___s_:__m
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
jmp 0x595303
cmp eax, 0x400
jb 0x59528e
push 0
push str.perform_base_backup
push 0x86
push str.src_backend_replication_basebackup.c
push 0x13
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x595303
lea eax, [ebp - 0x944]
push eax
push str.symbolic_link___s__target_is_too_long
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
jmp 0x595303
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
push 0x10
push ecx
mov byte [ebp + eax - 0xd44], 0
call sym.postgres.exe_MemoryContextAlloc
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
push esi
push edx
mov edi, eax
call sym.postgres.exe_MemoryContextStrdup
mov dword [edi], eax
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
lea eax, [ebp - 0xd44]
push eax
push ecx
call sym.postgres.exe_MemoryContextStrdup
mov edx, dword [ebp - 0x8df0]
add esp, 0x18
mov dword [edi + 4], eax
cmp byte [edx + 4], 0
je 0x5952ec
push 1
lea esi, [ebp - 0x944]
call fcn.00594fb0
add esp, 4
jmp 0x5952f1
or eax, 0xffffffff
or edx, eax
push edi
push ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
call sym.postgres.exe_lappend
add esp, 8
mov ebx, eax
mov eax, dword [ebp - 0x8e08]
push str.pg_tblspc
push eax
call sym.postgres.exe_ReadDir
add esp, 8
test eax, eax
jne 0x595168
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
push 0x10
push ecx
call sym.postgres.exe_MemoryContextAllocZero
mov edx, dword [ebp - 0x8df0]
add esp, 8
cmp byte [edx + 4], 0
mov esi, eax
je 0x595351
push 1
push 1
push 0x6c0144
call fcn.00594a40
add esp, 0xc
jmp 0x595356
or eax, 0xffffffff
or edx, eax
push esi
push ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
call sym.postgres.exe_lappend
mov esi, eax
add esp, 8
mov ecx, esi
call fcn.00593ef0
test esi, esi
je 0x59548b
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x59548b
mov edi, dword [ebx]
lea eax, [ebp - 0x8e30]
push 0x48
push eax
call sym.postgres.exe_pq_beginmessage
lea ecx, [ebp - 0x8e30]
push 0
push ecx
call sym.postgres.exe_pq_sendbyte
push 2
lea edx, [ebp - 0x8e30]
push 0
push edx
call sym.postgres.exe_pq_sendint
lea eax, [ebp - 0x8e30]
push eax
call sym.postgres.exe_pq_endmessage
mov esi, dword [edi + 4]
add esp, 0x20
test esi, esi
jne 0x59545a
mov ecx, dword [ebp - 0x8e10]
push str.backup_label
call fcn.00594650
push esi
push 1
push 0x6c0144
call fcn.00594a40
lea ecx, [ebp - 0x8dcc]
push ecx
push str.global_pg_control
call sym.postgres.exe_pgwin32_safestat
add esp, 0x18
test eax, eax
je 0x59543e
push esi
push str.perform_base_backup
push 0xc0
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x59543e
push str.global_pg_control
push str.could_not_stat_control_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 0
push str.global_pg_control
lea edx, [ebp - 0x8dcc]
mov ecx, str.global_pg_control
call fcn.00594750
add esp, 8
jmp 0x595464
push 0
call fcn.00594fb0
add esp, 4
mov edx, dword [ebp - 0x8df0]
cmp byte [edx + 7], 0
je 0x595476
cmp dword [edi + 4], 0
je 0x595480
push 0x63
call sym.postgres.exe_pq_putemptymessage
add esp, 4
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x595382
push 0
push 0x593ac0
call sym.postgres.exe_cancel_shmem_exit
mov eax, dword [ebp - 0x8e04]
mov ecx, dword [ebp - 0x8e0c]
mov ebx, dword [ebp - 0x8df0]
mov dword [sym.postgres.exe_PG_exception_stack], eax
mov dword [sym.postgres.exe_error_context_stack], ecx
cmp byte [ebx + 6], 0
mov ecx, dword [ebp - 0x8e10]
sete dl
movzx eax, dl
push eax
push ecx
call sym.postgres.exe_do_pg_stop_backup
add esp, 0x10
cmp byte [ebx + 7], 0
mov edi, eax
mov esi, edx
mov dword [ebp - 0x8e18], edi
mov dword [ebp - 0x8e14], esi
je 0x595db3
mov eax, dword [ebp - 0x8dfc]
mov edx, dword [ebp - 0x8e00]
shr eax, 0x18
push eax
push edx
mov dword [ebp - 0x8de8], eax
mov eax, dword [sym.postgres.exe_ThisTimeLineID]
push eax
push str._08X_08X_08X
lea ecx, [ebp - 0x44]
xor ebx, ebx
push 0x40
push ecx
mov dword [ebp - 0x8df8], ebx
mov dword [ebp - 0x8dd0], ebx
call sym.postgres.exe_pg_snprintf
mov edx, dword [sym.postgres.exe_ThisTimeLineID]
dec esi
shr esi, 0x18
push esi
push edi
push edx
push str._08X_08X_08X
lea eax, [ebp - 0x104]
push 0x40
push eax
mov dword [ebp - 0x8de4], esi
call sym.postgres.exe_pg_snprintf
push str.pg_xlog
call sym.postgres.exe_AllocateDir
mov esi, eax
add esp, 0x34
mov dword [ebp - 0x8ddc], esi
cmp esi, ebx
jne 0x595598
push ebx
push str.perform_base_backup
push 0x103
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x595598
push str.pg_xlog
push str.could_not_open_directory___s_:__m
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
push str.pg_xlog
push esi
call sym.postgres.exe_ReadDir
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x595709
lea ebx, [edi + 8]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5955b8
sub eax, edx
cmp eax, 0x18
jne 0x59566b
push 0x6b0514
push ebx
call dword [sym.imp.MSVCR100.dll_strspn]
add esp, 8
cmp eax, 0x18
jne 0x59566b
lea ecx, [ebp - 0x3c]
lea eax, [edi + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x595608
test dl, dl
je 0x595604
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x595608
add eax, 2
add ecx, 2
test dl, dl
jne 0x5955e8
xor eax, eax
jmp 0x59560d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
js 0x59566b
lea ecx, [ebp - 0xfc]
lea eax, [edi + 0x10]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x595640
test dl, dl
je 0x59563c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x595640
add eax, 2
add ecx, 2
test dl, dl
jne 0x595620
xor eax, eax
jmp 0x595645
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x59566b
mov ecx, dword [sym.postgres.exe_CurrentMemoryContext]
push ebx
push ecx
call sym.postgres.exe_MemoryContextStrdup
mov edx, dword [ebp - 0x8dd0]
push eax
push edx
call sym.postgres.exe_lappend
mov dword [ebp - 0x8dd0], eax
jmp 0x5956e8
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x595670
sub eax, edx
cmp eax, 0x10
jne 0x5956eb
push 0x6b0514
push ebx
call dword [sym.imp.MSVCR100.dll_strspn]
add esp, 8
cmp eax, 8
jne 0x5956eb
mov ecx, str..history
lea eax, [edi + 0x10]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5956c0
test dl, dl
je 0x5956bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5956c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5956a0
xor eax, eax
jmp 0x5956c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x5956eb
mov eax, dword [sym.postgres.exe_CurrentMemoryContext]
push ebx
push eax
call sym.postgres.exe_MemoryContextStrdup
mov ecx, dword [ebp - 0x8df8]
push eax
push ecx
call sym.postgres.exe_lappend
mov dword [ebp - 0x8df8], eax
add esp, 0x10
mov edx, dword [ebp - 0x8ddc]
push str.pg_xlog
push edx
call sym.postgres.exe_ReadDir
mov edi, eax
add esp, 8
test edi, edi
jne 0x5955b0
mov eax, dword [ebp - 0x8ddc]
push eax
call sym.postgres.exe_FreeDir
mov ecx, dword [sym.postgres.exe_ThisTimeLineID]
mov edx, dword [ebp - 0x8de8]
mov eax, dword [ebp - 0x8e00]
push ecx
push edx
push eax
call sym.postgres.exe_CheckXLogRemoved
mov eax, dword [ebp - 0x8dd0]
add esp, 0x10
test eax, eax
je 0x595741
mov edi, dword [eax + 4]
jmp 0x595743
xor edi, edi
mov edx, dword [sym.postgres.exe_CurrentMemoryContext]
lea ecx, [edi*4]
push ecx
push edx
mov dword [ebp - 0x8ddc], edi
call sym.postgres.exe_MemoryContextAlloc
mov esi, eax
mov eax, dword [ebp - 0x8dd0]
add esp, 8
mov dword [ebp - 0x8df4], esi
test eax, eax
je 0x59578e
mov eax, dword [eax + 8]
test eax, eax
je 0x59578e
mov ecx, esi
jmp 0x595780
mov edx, dword [eax]
mov dword [ecx], edx
mov eax, dword [eax + 4]
add ecx, 4
test eax, eax
jne 0x595780
push 0x593ad0
push 4
push edi
push esi
call sym.postgres.exe_pg_qsort
lea eax, [ebp - 0x8dd4]
push eax
mov eax, dword [esi]
lea ecx, [ebp - 0x8dd8]
push ecx
lea edx, [ebp - 0x8de0]
push edx
push str._08X_08X_08X
push eax
call dword [sym.imp.MSVCR100.dll_sscanf]
mov eax, dword [ebp - 0x8dd8]
mov edx, dword [ebp - 0x8e00]
add esp, 0x24
cmp eax, edx
jne 0x5957e0
mov ecx, dword [ebp - 0x8dd4]
cmp ecx, dword [ebp - 0x8de8]
je 0x595847
mov ecx, dword [ebp - 0x8de8]
push ecx
push edx
mov edx, dword [sym.postgres.exe_ThisTimeLineID]
push edx
push str._08X_08X_08X
lea eax, [ebp - 0x84]
push 0x40
push eax
call sym.postgres.exe_pg_snprintf
push 0
push str.perform_base_backup
push 0x136
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x2c
test al, al
je 0x59583b
lea ecx, [ebp - 0x84]
push ecx
push str.could_not_find_WAL_file___s_
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
mov eax, dword [ebp - 0x8dd8]
mov ecx, dword [ebp - 0x8dd4]
mov dword [ebp - 0x8dd0], 0
test edi, edi
jle 0x595949
lea esp, [esp]
mov edi, eax
mov dword [ebp - 0x8de8], ecx
mov esi, eax
cmp ecx, 0xfe
jb 0x595879
lea esi, [eax + 1]
xor ebx, ebx
jmp 0x59587c
lea ebx, [ecx + 1]
lea edx, [ebp - 0x8dd4]
push edx
mov edx, dword [ebp - 0x8df4]
lea eax, [ebp - 0x8dd8]
push eax
mov eax, dword [ebp - 0x8dd0]
lea ecx, [ebp - 0x8de0]
push ecx
mov ecx, dword [edx + eax*4]
push str._08X_08X_08X
push ecx
call dword [sym.imp.MSVCR100.dll_sscanf]
mov eax, dword [ebp - 0x8dd8]
mov ecx, dword [ebp - 0x8dd4]
add esp, 0x14
cmp esi, eax
jne 0x5958c3
cmp ebx, ecx
je 0x595930
cmp edi, eax
jne 0x5958cf
cmp dword [ebp - 0x8de8], ecx
je 0x595930
mov edx, dword [sym.postgres.exe_ThisTimeLineID]
push ebx
push esi
push edx
push str._08X_08X_08X
lea eax, [ebp - 0xc4]
push 0x40
push eax
call sym.postgres.exe_pg_snprintf
push 0
push str.perform_base_backup
push 0x147
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x2c
test al, al
je 0x595924
lea ecx, [ebp - 0xc4]
push ecx
push str.could_not_find_WAL_file___s_
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
mov eax, dword [ebp - 0x8dd8]
mov ecx, dword [ebp - 0x8dd4]
mov edx, dword [ebp - 0x8dd0]
inc edx
mov dword [ebp - 0x8dd0], edx
cmp edx, dword [ebp - 0x8ddc]
jl 0x595860
mov edx, dword [ebp - 0x8e18]
cmp eax, edx
jne 0x59595b
cmp ecx, dword [ebp - 0x8de4]
je 0x5959b6
mov eax, dword [ebp - 0x8de4]
mov ecx, dword [sym.postgres.exe_ThisTimeLineID]
push eax
push edx
push ecx
push str._08X_08X_08X
lea edx, [ebp - 0x144]
push 0x40
push edx
call sym.postgres.exe_pg_snprintf
push 0
push str.perform_base_backup
push 0x14f
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x2c
test al, al
je 0x5959b6
lea eax, [ebp - 0x144]
push eax
push str.could_not_find_WAL_file___s_
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
cmp dword [ebp - 0x8ddc], 0
mov dword [ebp - 0x8dd0], 0
jle 0x595ce6
mov esi, dword [ebp - 0x8df4]
mov ebx, dword [ebp - 0x8dd0]
mov ecx, dword [esi + ebx*4]
push ecx
push str.pg_xlog__s
lea edx, [ebp - 0x544]
push 0x400
xor edi, edi
push edx
mov dword [ebp - 0x8de8], edi
call sym.postgres.exe_pg_snprintf
lea eax, [ebp - 0x8dd4]
push eax
mov eax, dword [esi + ebx*4]
lea ecx, [ebp - 0x8dd8]
push ecx
lea edx, [ebp - 0x8de0]
push edx
push str._08X_08X_08X
push eax
call dword [sym.imp.MSVCR100.dll_sscanf]
lea ecx, [ebp - 0x544]
push 0x6bf9bc
push ecx
call sym.postgres.exe_AllocateFile
mov esi, eax
add esp, 0x2c
mov dword [ebp - 0x8de4], esi
test esi, esi
jne 0x595a9a
mov edx, dword [ebp - 0x8de0]
mov eax, dword [ebp - 0x8dd4]
mov ecx, dword [ebp - 0x8dd8]
push edx
push eax
push ecx
call sym.postgres.exe_CheckXLogRemoved
push esi
push str.perform_base_backup
push 0x169
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x20
test al, al
je 0x595a9a
lea edx, [ebp - 0x544]
push edx
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
push esi
call dword [sym.imp.MSVCR100.dll__fileno]
lea ecx, [ebp - 0x8da8]
push ecx
push eax
call dword [sym.imp.MSVCR100.dll__fstat32]
add esp, 0xc
test eax, eax
je 0x595af8
push 0
push str.perform_base_backup
push 0x170
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x595af8
lea edx, [ebp - 0x544]
push edx
push str.could_not_stat_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
cmp dword [ebp - 0x8d94], 0x1000000
je 0x595b63
mov eax, dword [ebp - 0x8de0]
mov ecx, dword [ebp - 0x8dd4]
mov edx, dword [ebp - 0x8dd8]
push eax
push ecx
push edx
call sym.postgres.exe_CheckXLogRemoved
push 0
push str.perform_base_backup
push 0x176
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x20
test al, al
je 0x595b63
mov eax, dword [ebp - 0x8df4]
mov ecx, dword [eax + ebx*4]
push ecx
push str.unexpected_WAL_file_size___s_
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
lea edx, [ebp - 0x8da8]
xor ebx, ebx
lea ecx, [ebp - 0x544]
call fcn.005943d0
mov eax, 0x1000000
sub eax, edi
mov ecx, ebx
sbb ecx, dword [ebp - 0x8de8]
js 0x595b9d
jg 0x595b90
cmp eax, 0x8000
jbe 0x595b9d
mov eax, 0x8000
mov dword [ebp - 0x8e1c], ebx
jmp 0x595ba3
mov dword [ebp - 0x8e1c], ecx
mov edx, dword [ebp - 0x8de4]
push edx
push eax
lea eax, [ebp - 0x8d44]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x595c49
mov ecx, dword [ebp - 0x8de0]
mov edx, dword [ebp - 0x8dd4]
mov eax, dword [ebp - 0x8dd8]
push ecx
push edx
push eax
call sym.postgres.exe_CheckXLogRemoved
push esi
lea ecx, [ebp - 0x8d44]
push ecx
push 0x64
call sym.postgres.exe_pq_putmessage
add esp, 0x18
test eax, eax
je 0x595c29
push 0
push str.perform_base_backup
push 0x181
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x595c29
push str.base_backup_could_not_send_data__aborting_backup
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 8
add edi, esi
adc dword [ebp - 0x8de8], ebx
cmp edi, 0x1000000
jne 0x595b76
cmp dword [ebp - 0x8de8], ebx
jne 0x595b76
cmp edi, 0x1000000
jne 0x595c59
cmp dword [ebp - 0x8de8], ebx
je 0x595cbe
mov edx, dword [ebp - 0x8de0]
mov eax, dword [ebp - 0x8dd4]
mov ecx, dword [ebp - 0x8dd8]
push edx
push eax
push ecx
call sym.postgres.exe_CheckXLogRemoved
push 0
push str.perform_base_backup
push 0x18d
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x20
test al, al
je 0x595cbe
mov edx, dword [ebp - 0x8df4]
mov eax, dword [ebp - 0x8dd0]
mov ecx, dword [edx + eax*4]
push ecx
push str.unexpected_WAL_file_size___s_
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
mov edx, dword [ebp - 0x8de4]
push edx
call sym.postgres.exe_FreeFile
mov eax, dword [ebp - 0x8dd0]
inc eax
add esp, 4
mov dword [ebp - 0x8dd0], eax
cmp eax, dword [ebp - 0x8ddc]
jl 0x5959cd
mov eax, dword [ebp - 0x8df8]
test eax, eax
je 0x595d9d
mov esi, dword [eax + 8]
test esi, esi
je 0x595d9d
nop
mov eax, dword [esi]
push eax
push str.pg_xlog__s
lea ecx, [ebp - 0x544]
push 0x400
push ecx
call sym.postgres.exe_pg_snprintf
lea edx, [ebp - 0x8da8]
push edx
lea eax, [ebp - 0x544]
push eax
call sym.postgres.exe_pgwin32_safestat
add esp, 0x18
test eax, eax
je 0x595d75
push 0
push str.perform_base_backup
push 0x1a5
push str.src_backend_replication_basebackup.c
push 0x14
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x595d75
lea ecx, [ebp - 0x544]
push ecx
push str.could_not_stat_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
lea edx, [ebp - 0x544]
push 0
push edx
lea edx, [ebp - 0x8da8]
lea ecx, [ebp - 0x544]
call fcn.00594750
mov esi, dword [esi + 4]
add esp, 8
test esi, esi
jne 0x595d00
push 0x63
call sym.postgres.exe_pq_putemptymessage
mov esi, dword [ebp - 0x8e14]
mov edi, dword [ebp - 0x8e18]
add esp, 4
push esi
push edi
call fcn.005941d0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x8e04]
mov ecx, dword [ebp - 0x8e0c]
push 0
push 0x593ac0
mov dword [sym.postgres.exe_PG_exception_stack], eax
mov dword [sym.postgres.exe_error_context_stack], ecx
call sym.postgres.exe_cancel_shmem_exit
add esp, 8
call sym.postgres.exe_do_pg_abort_backup
call sym.postgres.exe_pg_re_throw
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3