Function at 0x140004980
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push r13
push r14
sub rsp, 0x168
mov rax, qword [0x14002d030]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r14, rcx
mov r13, rdx
mov ecx, dword [rdx]
xor edi, edi
call fcn.1400051a0
mov rbp, rax
test rax, rax
je 0x140004c5d
mov qword [rsp + 0x1a0], rbx
lea rbx, str.BLOBS
mov qword [rsp + 0x158], r12
mov r12d, dword [rsp + 0x38]
mov qword [rsp + 0x150], r15
mov r15, qword [rsp + 0x38]
mov qword [rsp + 0x160], rsi
nop dword [rax]
mov r8d, 5
lea rdx, str.DUMP
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov rcx, rbp
test eax, eax
jne 0x140004a37
lea r9, [rsp + 0x38]
xor r12d, r12d
lea r8, [rsp + 0x30]
lea rdx, str.DUMP__d_n
call fcn.140005250
mov edx, dword [rsp + 0x30]
mov rcx, r14
call fcn.140008560
mov r15, rax
jmp 0x140004aaf
mov r8d, 8
lea rdx, str.RESTORE
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140004a7f
lea r9, [rsp + 0x38]
mov rcx, rbp
lea r8, [rsp + 0x30]
lea rdx, str.RESTORE__d_n
lea r12d, [rax + 1]
call fcn.140005250
mov edx, dword [rsp + 0x30]
mov rcx, r14
call fcn.140008560
mov r15, rax
jmp 0x140004b7f
cmp dword [0x14002da14], 4
jg 0x140004a9c
mov r8, rbp
lea rdx, str.unrecognized_command_received_from_master:___s_
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
test r12d, r12d
jne 0x140004b79
mov rdx, qword [r15 + 0x50]
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rbx + rax - 1]
jne 0x140004ae5
cmp rax, 6
jne 0x140004ac0
mov rdx, r15
mov rcx, r14
call qword [r14 + 0x168]
jmp 0x140004b8c
call sub.LIBPQ.dll_Ordinal_77
mov rdx, qword [r15 + 0x28]
mov rsi, rax
mov rcx, qword [r15 + 0x30]
call fcn.140014a00
mov r8, rax
lea rdx, str.LOCK_TABLE__s_IN_ACCESS_SHARE_MODE_NOWAIT
mov rcx, rsi
mov rdi, rax
call sub.LIBPQ.dll_Ordinal_91
mov rdx, qword [rsi]
mov rcx, qword [r14 + 0x1b8]
call sub.LIBPQ.dll_Ordinal_21
mov rbx, rax
test rax, rax
je 0x140004b33
mov rcx, rax
call sub.LIBPQ.dll_Ordinal_33
cmp eax, 1
je 0x140004b5a
cmp dword [0x14002da14], 4
jg 0x140004b50
mov r8, rdi
lea rdx, str.could_not_obtain_lock_on_relation___s__nThis_usually_means_that_someone_requested_an_ACCESS_EXCLUSIVE_lock_on_the_table_after_the_pg_dump_parent_process_had_gotten_the_initial_ACCESS_SHARE_lock_on_the_table.
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov rcx, rbx
call sub.LIBPQ.dll_Ordinal_48
mov rcx, rsi
call sub.LIBPQ.dll_Ordinal_76
mov rdx, r15
mov rcx, r14
call qword [r14 + 0x168]
jmp 0x140004b8c
cmp r12d, 1
jne 0x140004b8e
mov rdx, r15
mov rcx, r14
call qword [r14 + 0x170]
mov edi, eax
cmp edi, 0xc
jne 0x140004b99
mov eax, dword [r14 + 0x5c]
jmp 0x140004b9b
xor eax, eax
mov r9d, dword [r15 + 0x18]
lea r8, str.OK__d__d__d
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x40]
mov edx, 0x100
mov dword [rsp + 0x20], edi
call fcn.140018490
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140004bd0
movsxd rcx, dword [r13 + 4]
lea rdx, [rsp + 0x40]
inc ebx
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
je 0x140004c18
cmp dword [0x14002da14], 4
jg 0x140004c0e
lea rdx, str.could_not_write_to_the_communication_channel:__m
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [r13]
call fcn.1400051a0
lea rbx, str.BLOBS
mov rbp, rax
test rax, rax
jne 0x1400049f0
mov r15, qword [rsp + 0x150]
mov r12, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x160]
mov rbx, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001e2e0
add rsp, 0x168
pop r14
pop r13
pop rdi
pop rbp
ret