Function at 0x140002530
Capabilities:
Terminate process

Disassembly:
push rbx
push rdi
sub rsp, 0x468
mov rax, qword [0x140010200]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, str.pg_xlog_archive_status
call fcn.140008380
mov rdi, rax
test rax, rax
jne 0x1400025b2
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str._s:_could_not_open_directory___s_:__s_n
mov rbx, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140010358]
lea r9, str.pg_xlog_archive_status
lea rcx, [rax + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140006620
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov qword [rsp + 0x480], rbp
mov qword [rsp + 0x488], rsi
mov qword [rsp + 0x490], r14
mov qword [rsp + 0x460], r15
call qword [sym.imp.MSVCR120.dll__errno]
xor ebp, ebp
mov rcx, rdi
mov dword [rax], ebp
call fcn.1400084f0
mov rbx, rax
test rax, rax
je 0x1400026cb
lea r14, str..ready
lea r15, str..done
nop
lea rsi, [rbx + 8]
lea rdx, str.0123456789ABCDEF
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_strspn]
cmp rax, 0x18
jne 0x1400026af
mov rcx, rbp
movzx eax, byte [rbx + rcx + 0x20]
inc rcx
cmp al, byte [r14 + rcx - 1]
jne 0x140002638
cmp rcx, 7
jne 0x140002621
jmp 0x14000267f
mov rcx, rbp
nop dword [rax + rax]
movzx eax, byte [rbx + rcx + 0x20]
inc rcx
cmp al, byte [r15 + rcx - 1]
jne 0x140002657
cmp rcx, 6
jne 0x140002640
jmp 0x14000267f
lea rdx, str..partial.ready
lea rcx, [rbx + 0x20]
call sub.MSVCR120.dll_strcmp
test eax, eax
je 0x14000267f
lea rdx, str..partial.done
lea rcx, [rbx + 0x20]
call sub.MSVCR120.dll_strcmp
test eax, eax
jne 0x1400026af
lea r9, str.pg_xlog_archive_status
lea r8, str._s__s
lea rcx, [rsp + 0x30]
mov edx, 0x417
mov qword [rsp + 0x20], rsi
call fcn.140006400
lea rcx, [rsp + 0x30]
call fcn.140007cf0
test eax, eax
js 0x14000272b
call qword [sym.imp.MSVCR120.dll__errno]
mov rcx, rdi
mov dword [rax], ebp
call fcn.1400084f0
mov rbx, rax
test rax, rax
jne 0x140002600
call qword [sym.imp.MSVCR120.dll__errno]
cmp dword [rax], ebp
je 0x14000277b
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str._s:_could_not_read_directory___s_:__s_n
mov rbx, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140010358]
lea r9, str.pg_xlog_archive_status
lea rcx, [rax + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140006620
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str._s:_could_not_delete_file___s_:__s_n
mov rbx, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140010358]
lea r9, [rsp + 0x30]
lea rcx, [rax + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140006620
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov rcx, rdi
call fcn.1400085e0
test eax, eax
je 0x1400027d9
call qword [sym.imp.MSVCR120.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.MSVCR120.dll_strerror]
lea rcx, str._s:_could_not_close_directory___s_:__s_n
mov rbx, rax
call qword [sym.imp.libintl.dll_libintl_gettext]
mov rdi, rax
call qword [sym.imp.MSVCR120.dll___iob_func]
mov r8, qword [0x140010358]
lea r9, str.pg_xlog_archive_status
lea rcx, [rax + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call fcn.140006620
mov ecx, 1
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov r14, qword [rsp + 0x490]
mov rsi, qword [rsp + 0x488]
mov rbp, qword [rsp + 0x480]
mov r15, qword [rsp + 0x460]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400096d0
add rsp, 0x468
pop rdi
pop rbx
ret