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

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r13
sub rsp, 0x178
mov rax, qword [0x14002d030]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov qword [r11 + 0x20], rbx
mov r13, r8
mov qword [r11 - 0x28], r12
mov rsi, rdx
mov qword [r11 - 0x38], r15
mov r12d, r9d
mov r15, rcx
mov rcx, rdx
call fcn.140004770
mov edi, eax
cmp eax, 0xffffffff
jne 0x140004012
mov qword [rsp + 0x168], r14
nop dword [rax]
nop dword [rax + rax]
xor bl, bl
nop dword [rax]
nop word [rax + rax]
lea r8, [rsp + 0x34]
movzx edx, bl
mov rcx, rsi
call fcn.140004c90
mov rdi, rax
test rax, rax
jne 0x140003ee3
test bl, bl
je 0x140003ece
cmp dword [0x14002da14], 4
jg 0x140003ec4
lea rdx, str.a_worker_process_died_unexpectedly
lea ecx, [rax + 4]
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov rcx, rsi
call fcn.140004770
cmp eax, 0xffffffff
jne 0x140003ff7
mov bl, 1
jmp 0x140003e90
mov r8d, 3
lea rdx, [0x14002159c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140003fc7
movsxd rax, dword [rsp + 0x34]
lea rdx, [0x14002159c]
mov rbx, rax
mov dword [rsp + 0x30], 0
shl rbx, 6
mov r8d, 3
add rbx, qword [rsi + 0x10]
mov rcx, rdi
lea r14, [rax*8]
mov rax, qword [rsi + 8]
mov rbp, qword [r14 + rax]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x140003f7a
lea rax, [rsp + 0x3c]
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, str.OK__d__d__d_n
call fcn.140005250
mov eax, dword [rsp + 0x38]
add dword [r15 + 0x5c], eax
jmp 0x140003fa1
cmp dword [0x14002da14], 4
jg 0x140003f97
mov r8, rdi
lea rdx, str.invalid_message_received_from_worker:___s_
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov r9, qword [rbx + 0x10]
mov rdx, rbp
mov r8d, dword [rsp + 0x30]
mov rcx, r15
call qword [rbx + reloc.LIBPQ.dll_Ordinal_8]
mov dword [rbx], 1
mov rax, qword [rsi + 8]
mov qword [r14 + rax], 0
jmp 0x140003fee
cmp dword [0x14002da14], 4
jg 0x140003fe4
mov r8, rdi
lea rdx, str.invalid_message_received_from_worker:___s_
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call fcn.140004770
mov edi, eax
cmp eax, 0xffffffff
je 0x140003e80
mov r14, qword [rsp + 0x168]
mov r15, qword [rsp + 0x160]
test r12d, r12d
jne 0x140004028
lea r8, str.DUMP__d
jmp 0x140004035
cmp r12d, 1
jne 0x140004048
lea r8, str.RESTORE__d
mov r9d, dword [r13 + 0x18]
lea rcx, [rsp + 0x50]
mov edx, 0x100
call fcn.140018490
mov r12, qword [rsp + 0x170]
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140004060
mov rax, qword [rsi + 0x10]
lea rdx, [rsp + 0x50]
movsxd rbp, edi
inc ebx
mov rdi, rbp
xor r9d, r9d
shl rdi, 6
mov r8d, ebx
movsxd rcx, dword [rax + rdi + 0x24]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
mov rbx, qword [rsp + 0x1b8]
je 0x1400040bf
cmp dword [0x14002da14], 4
jg 0x1400040b5
lea rdx, str.could_not_write_to_the_communication_channel:__m
mov ecx, 4
call fcn.1400166d0
mov ecx, 1
call fcn.1400133f0
mov rax, qword [rsi + 0x10]
mov dword [rdi + rax], 2
mov rcx, qword [rsi + 0x10]
mov rax, qword [rsp + 0x1c0]
mov qword [rcx + rdi + 8], rax
mov rcx, qword [rsi + 0x10]
mov rax, qword [rsp + 0x1c8]
mov qword [rcx + rdi + 0x10], rax
mov rax, qword [rsi + 8]
mov qword [rax + rbp*8], r13
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14001e2e0
add rsp, 0x178
pop r13
pop rdi
pop rsi
pop rbp
ret