Function at 0x57c690
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x82aea4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ebx
push str.pg_xlog__s
lea eax, [ebp - 0x854]
push 0x400
push eax
call sym.postgres.exe_pg_snprintf
mov edi, dword [sym.postgres.exe_XLogArchiveCommand]
mov byte [ebp - 0x55], 0
mov al, byte [edi]
add esp, 0x10
lea esi, [ebp - 0x454]
test al, al
je 0x57c773
lea esp, [esp]
cmp al, 0x25
jne 0x57c75d
mov al, byte [edi + 1]
cmp al, 0x25
je 0x57c751
cmp al, 0x66
je 0x57c72e
cmp al, 0x70
je 0x57c6ff
lea ecx, [ebp - 0x55]
cmp esi, ecx
jae 0x57c767
mov byte [esi], 0x25
jmp 0x57c766
lea edx, [ebp - 0x55]
sub edx, esi
push edx
lea eax, [ebp - 0x854]
push eax
push esi
inc edi
call sym.postgres.exe_strlcpy
push esi
call sym.postgres.exe_make_native_path
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57c721
sub eax, edx
add esi, eax
jmp 0x57c767
lea ecx, [ebp - 0x55]
sub ecx, esi
push ecx
push ebx
push esi
inc edi
call sym.postgres.exe_strlcpy
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57c744
sub eax, edx
add esi, eax
jmp 0x57c767
lea edx, [ebp - 0x55]
inc edi
cmp esi, edx
jae 0x57c767
mov al, byte [edi]
jmp 0x57c764
lea ecx, [ebp - 0x55]
cmp esi, ecx
jae 0x57c767
mov byte [esi], al
inc esi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x57c6e0
push 0
push str.pgarch_archiveXlog
push 0x248
push str.src_backendpostmasterpgarch.c
push 0xc
mov byte [esi], 0
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57c7af
lea edx, [ebp - 0x454]
push edx
push str.executing_archive_command___s_
call sym.postgres.exe_errmsg_internal
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
push ebx
push str.archiving__s
lea eax, [ebp - 0x54]
push 0x50
push eax
call sym.postgres.exe_pg_snprintf
lea ecx, [ebp - 0x54]
push 0
push ecx
call sym.postgres.exe_set_ps_display
lea edx, [ebp - 0x454]
push edx
call dword [sym.imp.MSVCR100.dll_system]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x57c8d1
mov ecx, esi
and ecx, 0xffffff00
jne 0x57c7fa
lea eax, [ecx + 0xf]
cmp esi, 0x80
jle 0x57c7ff
mov eax, 0x15
push 0
push str.pgarch_archiveXlog
test ecx, ecx
jne 0x57c84f
push 0x263
push str.src_backendpostmasterpgarch.c
push eax
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57c8a0
lea eax, [ebp - 0x454]
push eax
push str.The_failed_archive_command_was:__s
call sym.postgres.exe_errdetail
add esp, 8
push eax
push esi
push str.archive_command_failed_with_exit_code__d
call sym.postgres.exe_errmsg
add esp, 8
push eax
call sym.postgres.exe_errfinish
add esp, 8
jmp 0x57c8a0
push 0x26d
push str.src_backendpostmasterpgarch.c
push eax
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57c8a0
lea ecx, [ebp - 0x454]
push ecx
push str.The_failed_archive_command_was:__s
call sym.postgres.exe_errdetail
add esp, 8
push eax
push str.See_C_include_file__ntstatus.h__for_a_description_of_the_hexadecimal_value.
call sym.postgres.exe_errhint
add esp, 4
push eax
push esi
push str.archive_command_was_terminated_by_exception_0x_X
call sym.postgres.exe_errmsg
add esp, 8
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
push ebx
push str.failed_on__s
lea edx, [ebp - 0x54]
push 0x50
push edx
call sym.postgres.exe_pg_snprintf
lea eax, [ebp - 0x54]
push 0
push eax
call sym.postgres.exe_set_ps_display
add esp, 0x18
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 0
push str.pgarch_archiveXlog
push 0x28c
push str.src_backendpostmasterpgarch.c
push 0xe
call sym.postgres.exe_errstart
add esp, 0x14
test al, al
je 0x57c904
push ebx
push str.archived_transaction_log_file___s_
call sym.postgres.exe_errmsg
push eax
call sym.postgres.exe_errfinish
add esp, 0xc
push ebx
push str.last_was__s
lea ecx, [ebp - 0x54]
push 0x50
push ecx
call sym.postgres.exe_pg_snprintf
lea edx, [ebp - 0x54]
push 0
push edx
call sym.postgres.exe_set_ps_display
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.006a8ca2
mov esp, ebp
pop ebp
ret