Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov edi, ecx
mov rbx, rdx
mov rcx, qword [rdx]
call fcn.1400077a0
mov rcx, qword [rbx]
call fcn.1400097a0
mov qword [0x140019be8], rax
lea rdx, str.pg_basebackup_12
mov rcx, qword [rbx]
call fcn.1400069c0
cmp edi, 1
jle 0x140001240
mov rcx, qword [rbx + 8]
lea r8, str.__help
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
inc rdx
cmp al, byte [r8 + rdx - 1]
jne 0x1400011c6
cmp rdx, 7
jne 0x1400011b0
jmp 0x1400011e9
movzx eax, byte [rcx]
cmp al, byte [reloc.LIBPQ.dll_Ordinal_45]
jne 0x1400011f7
movzx eax, byte [rcx + 1]
cmp al, byte [0x1400111dd]
jne 0x1400011f7
movzx eax, byte [rcx + 2]
cmp al, byte [0x1400111de]
jne 0x1400011f7
call fcn.1400021d0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movzx eax, byte [rcx]
cmp al, byte [reloc.LIBPQ.dll_Ordinal_45]
jne 0x14000121a
movzx eax, byte [rcx + 1]
cmp al, byte [0x1400111e1]
jne 0x14000121a
movzx eax, byte [rcx + 2]
cmp al, byte [0x1400111e2]
je 0x14000122a
lea rdx, str.__version
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001240
lea rcx, str.pg_receivewal__PostgreSQL__12.4
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
lea r9, str.help
mov qword [rsp + 0x20], rax
lea r8, str.D:d:E:h:p:U:s:S:nwWvZ:
mov rdx, rbx
mov ecx, edi
call fcn.14000bd80
cmp eax, 0xffffffff
je 0x14000149c
lea rsi, [0x140000000]
nop word [rax + rax]
dec eax
cmp eax, 0x76
ja case.0x14000129f.19
cdqe
movzx eax, byte [rsi + rax + 0x196c]
mov ecx, dword [rsi + rax*4 + 0x1920]
add rcx, rsi
jmp rcx
mov rcx, qword [0x140019c00]
call fcn.140007430
mov qword [0x140017330], rax
jmp 0x140001471
mov rcx, qword [0x140019c00]
call fcn.140007430
mov qword [0x140017b90], rax
jmp 0x140001471
mov rcx, qword [0x140019c00]
call fcn.140007430
mov qword [0x140017b98], rax
jmp 0x140001471
mov rcx, qword [0x140019c00]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jle 0x140001501
mov rcx, qword [0x140019c00]
call fcn.140007430
mov qword [0x140017ba8], rax
jmp 0x140001471
mov rcx, qword [0x140019c00]
call fcn.140007430
mov qword [0x140017ba0], rax
jmp 0x140001471
mov dword [0x140017bb8], 0xffffffff
jmp 0x140001471
mov dword [0x140017bb8], 1
jmp 0x140001471
mov rcx, qword [0x140019c00]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
imul ecx, eax, 0x3e8
mov dword [section..data], ecx
test ecx, ecx
jns 0x140001471
cmp dword [0x140019bf8], 4
jg 0x140001832
mov r8, qword [0x140019c00]
lea rdx, str.invalid_status_interval___s_
mov ecx, 4
call fcn.140007aa0
jmp 0x140001832
mov rcx, qword [0x140019c00]
call fcn.140007430
mov qword [0x140017350], rax
jmp 0x140001471
mov rcx, qword [0x140019c00]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x60]
lea rdx, str._X__X
call fcn.140002170
cmp eax, 2
jne 0x14000152b
mov ecx, dword [rsp + 0x60]
mov eax, dword [rsp + 0x68]
shl rcx, 0x20
or rcx, rax
mov qword [0x140017358], rcx
jmp 0x140001471
mov dword [0x140017340], 1
jmp 0x140001471
inc dword [0x140017338]
jmp 0x140001471
mov rcx, qword [0x140019c00]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [0x14001733c], eax
cmp eax, 9
jbe 0x140001471
cmp dword [0x140019bf8], 4
jg 0x140001832
mov r8, qword [0x140019c00]
lea rdx, str.invalid_compression_level___s_
mov ecx, 4
call fcn.140007aa0
jmp 0x140001832
mov byte [0x140017345], 1
jmp 0x140001471
mov byte [0x140017347], 1
jmp 0x140001471
mov byte [0x140017346], 1
jmp 0x140001471
mov byte [0x140017348], 1
jmp 0x140001471
mov byte [0x140017004], 0
lea rax, [rsp + 0x70]
mov rdx, rbx
lea r9, str.help
mov qword [rsp + 0x20], rax
lea r8, str.D:d:E:h:p:U:s:S:nwWvZ:
mov ecx, edi
call fcn.14000bd80
cmp eax, 0xffffffff
jne 0x140001280
movsxd rax, dword [0x1400172c8]
cmp eax, edi
jge 0x14000158d
cmp dword [0x140019bf8], 4
jg 0x1400014c9
mov r8, qword [rbx + rax*8]
lea rdx, str.too_many_command_line_arguments__first_is___s__
mov ecx, 4
call fcn.140007aa0
lea rcx, str.Try___s___help__for_more_information._n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140019be8]
mov rdx, rbx
mov rcx, rax
call fcn.14000a1f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140019bf8], 4
jg 0x140001832
mov r8, qword [0x140019c00]
lea rdx, str.invalid_port_number___s_
mov ecx, 4
call fcn.140007aa0
jmp 0x140001832
cmp dword [0x140019bf8], 4
jg 0x140001832
mov r8, qword [0x140019c00]
lea rdx, str.could_not_parse_end_position___s_
mov ecx, 4
call fcn.140007aa0
jmp 0x140001832
lea rcx, str.Try___s___help__for_more_information._n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140019be8]
mov rdx, rbx
mov rcx, rax
call fcn.14000a1f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movzx eax, byte [0x140017347]
movzx ecx, byte [0x140017345]
test al, al
je 0x1400015f5
test cl, cl
je 0x1400015f5
cmp dword [0x140019bf8], 4
jg 0x1400015bd
lea rdx, str.cannot_use___create_slot_together_with___drop_slot
mov ecx, 4
call fcn.140007aa0
lea rcx, str.Try___s___help__for_more_information._n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140019be8]
mov rdx, rbx
mov rcx, rax
call fcn.14000a1f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp qword [0x140017350], 0
jne 0x14000166d
test al, al
jne 0x140001607
test cl, cl
je 0x14000166d
cmp dword [0x140019bf8], 4
jg 0x140001635
lea rcx, str.__drop_slot
test al, al
lea r8, str.__create_slot
cmovne r8, rcx
lea rdx, str._s_needs_a_slot_to_be_specified_using___slot
mov ecx, 4
call fcn.140007aa0
lea rcx, str.Try___s___help__for_more_information._n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140019be8]
mov rdx, rbx
mov rcx, rax
call fcn.14000a1f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp byte [0x140017348], 0
je 0x1400016d1
cmp byte [0x140017004], 0
jne 0x1400016d1
cmp dword [0x140019bf8], 4
jg 0x140001699
lea rdx, str.cannot_use___synchronous_together_with___no_sync
mov ecx, 4
call fcn.140007aa0
lea rcx, str.Try___s___help__for_more_information._n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140019be8]
mov rdx, rbx
mov rcx, rax
call fcn.14000a1f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rdx, qword [0x140017330]
test rdx, rdx
jne 0x140001737
test al, al
jne 0x140001756
test cl, cl
jne 0x140001756
cmp dword [0x140019bf8], 4
jg 0x1400016ff
lea rdx, str.no_target_directory_specified
mov ecx, 4
call fcn.140007aa0
lea rcx, str.Try___s___help__for_more_information._n
call sub.libintl_8.dll_libintl_gettext
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, qword [0x140019be8]
mov rdx, rbx
mov rcx, rax
call fcn.14000a1f0
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
test al, al
jne 0x140001756
test cl, cl
jne 0x140001756
mov rcx, rdx
call fcn.140002130
mov rdx, qword [0x140017330]
mov rcx, rax
call fcn.1400020e0
call fcn.140003cc0
mov qword [0x140017bc0], rax
test rax, rax
je 0x140001832
lea rcx, [0x140001140]
call fcn.14000e330
mov rcx, qword [0x140017bc0]
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call fcn.140004610
test al, al
je 0x140001832
mov ecx, dword [0x140019488]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__umask]
mov rcx, qword [0x140017bc0]
call fcn.140004860
test al, al
je 0x140001832
cmp qword [rsp + 0x78], 0
je 0x1400017e4
cmp dword [0x140019bf8], 4
jg 0x140001832
mov r8, qword [0x140017350]
lea rdx, str.replication_connection_using_slot___s__is_unexpectedly_database_specific
mov ecx, 4
call fcn.140007aa0
jmp 0x140001832
cmp byte [0x140017347], 0
je 0x14000183e
cmp dword [0x140017338], 0
je 0x140001817
cmp dword [0x140019bf8], 2
jg 0x140001817
mov r8, qword [0x140017350]
lea rdx, str.dropping_replication_slot___s_
mov ecx, 2
call fcn.140007aa0
mov rdx, qword [0x140017350]
mov rcx, qword [0x140017bc0]
call fcn.1400044f0
test al, al
jne 0x1400018f3
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp byte [0x140017345], 0
je 0x1400018a1
cmp dword [0x140017338], 0
je 0x140001871
cmp dword [0x140019bf8], 2
jg 0x140001871
mov r8, qword [0x140017350]
lea rdx, str.creating_replication_slot___s_
mov ecx, 2
call fcn.140007aa0
movzx eax, byte [0x140017346]
xor r9d, r9d
mov rdx, qword [0x140017350]
xor r8d, r8d
mov rcx, qword [0x140017bc0]
mov byte [rsp + 0x30], al
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 1
call fcn.140004310
jmp 0x14000182a
call fcn.140001ed0
movzx eax, byte [0x140017344]
test al, al
jne 0x1400018f3
cmp dword [0x140017340], 0
jne 0x1400018fc
cmp dword [0x140019bf8], 2
jg 0x1400018d9
mov r8d, 5
lea rdx, str.disconnected__waiting__d_seconds_to_try_again
lea ecx, [r8 - 3]
call fcn.140007aa0
mov ecx, 0x4c4b40
call fcn.140009e90
call fcn.140001ed0
movzx eax, byte [0x140017344]
test al, al
je 0x1400018b1
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp dword [0x140019bf8], 4
jg 0x140001832
lea rdx, str.disconnected
mov ecx, 4
call fcn.140007aa0
jmp 0x140001832