Function at 0x1400cf600
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
xor edi, edi
xor r13d, r13d
xor r14d, r14d
mov r15, rcx
mov qword [rsp + 0x60], r12
nop
nop
nop
mov r9d, dword [0x1401fccec]
test r9d, r9d
je 0x1400cf645
cmp r13d, r9d
jg 0x1400cf70d
mov ecx, 0x10000
call fcn.1400cf3f0
test rbp, rbp
mov r12, rax
je 0x1400cf65c
mov qword [rdi], rax
jmp 0x1400cf65f
mov rbp, rax
lea rbx, [rax + 8]
lea rsi, [rax + 0x10000]
mov rdi, rax
cmp rbx, rsi
mov qword [rax], 0
jae 0x1400cf6f6
nop
nop
mov r8d, esi
mov r9d, 2
mov rdx, rbx
sub r8d, ebx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400cf873
test eax, eax
je 0x1400cf7b1
cdqe
mov rdi, rbx
add rax, rbx
cmp rbx, rax
jae 0x1400cf6c4
cmp byte [rdi], 0xa
je 0x1400cf726
add rdi, 1
cmp rdi, rax
jb 0x1400cf6b6
mov r8d, edi
xor r9d, r9d
mov rdx, rbx
sub r8d, ebx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
mov rdx, rdi
movsxd rcx, eax
sub rdx, rbx
cmp rcx, rdx
jne 0x1400cf793
cmp rdi, rsi
mov rbx, rdi
jb 0x1400cf680
mov rdi, r12
xor r14d, r14d
cmp byte [rsi - 1], 0xd
cmove r14, r12
add r13d, 0xfff8
jmp 0x1400cf630
lea rdx, str._d____d_n
mov r8d, r13d
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400cf88d
mov esi, edi
xor r9d, r9d
mov rdx, rbx
sub esi, ebx
mov rcx, r15
lea r8d, [rsi + 1]
call qword [sym.imp.WS2_32.dll_recv]
mov r8, rdi
sub r8, rbx
movsxd rcx, eax
lea rdx, [r8 + 1]
cmp rcx, rdx
je 0x1400cf76c
lea r9d, [rsi + 1]
lea rdx, str.ret__d___p_d1__d_n
mov r8d, eax
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400cf88d
test r8, r8
je 0x1400cf788
lea rax, [rdi - 1]
xor r14d, r14d
cmp byte [rax], 0xd
cmove rdi, rax
mov eax, edi
sub eax, ebx
add r13d, eax
jmp 0x1400cf7b4
test r14, r14
je 0x1400cf7b4
sub r13d, 1
jmp 0x1400cf7b4
sub edi, ebx
lea rdx, str.ret__d___p_d__d_n
mov r8d, eax
mov r9d, edi
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400cf88d
mov rdi, rbx
mov r9d, dword [0x1401fccec]
lea edx, [r13 + 1]
cmp edx, r9d
jle 0x1400cf7dd
lea rdx, str.buflen__d__1____d_n
mov r8d, r13d
mov ecx, 0xffff0000
call fcn.1400b3ec0
jmp 0x1400cf88d
mov rsi, qword [rsp + 0x68]
cmp edx, dword [rsi + 4]
jle 0x1400cf7ef
mov rcx, rsi
call fcn.140177530
mov rsi, qword [rsi + 8]
sub edi, ebx
test rbp, rbp
je 0x1400cf869
nop
nop
mov r12, qword [rbp]
test r12, r12
je 0x1400cf844
cmp r14, rbp
jne 0x1400cf829
lea rdx, [rbp + 8]
mov r8d, 0xfff7
mov rcx, rsi
call fcn.1401a9000
add rsi, 0xfff7
jmp 0x1400cf859
lea rdx, [rbp + 8]
mov r8d, 0xfff8
mov rcx, rsi
call fcn.1401a9000
add rsi, 0xfff8
jmp 0x1400cf859
movsxd rbx, edi
lea rdx, [rbp + 8]
mov rcx, rsi
mov r8, rbx
call fcn.1401a9000
add rsi, rbx
mov rcx, rbp
call fcn.1400cf470
test r12, r12
mov rbp, r12
jne 0x1400cf800
mov byte [rsi], 0
mov eax, 1
jmp 0x1400cf8a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.recv__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3ec0
test rbp, rbp
je 0x1400cf8a6
mov rbx, qword [rbp]
mov rcx, rbp
call fcn.1400cf470
test rbx, rbx
mov rbp, rbx
jne 0x1400cf892
xor eax, eax
mov r12, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret