Function at 0x1400ce230
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 [0x1401f9c78]
test r9d, r9d
je 0x1400ce275
cmp r13d, r9d
jg 0x1400ce33d
mov ecx, 0x10000
call fcn.1400ce030
test rbp, rbp
mov r12, rax
je 0x1400ce28c
mov qword [rdi], rax
jmp 0x1400ce28f
mov rbp, rax
lea rbx, [rax + 8]
lea rsi, [rax + 0x10000]
mov rdi, rax
cmp rbx, rsi
mov qword [rax], 0
jae 0x1400ce326
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 0x1400ce4a3
test eax, eax
je 0x1400ce3e1
cdqe
mov rdi, rbx
add rax, rbx
cmp rbx, rax
jae 0x1400ce2f4
cmp byte [rdi], 0xa
je 0x1400ce356
add rdi, 1
cmp rdi, rax
jb 0x1400ce2e6
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 0x1400ce3c3
cmp rdi, rsi
mov rbx, rdi
jb 0x1400ce2b0
mov rdi, r12
xor r14d, r14d
cmp byte [rsi - 1], 0xd
cmove r14, r12
add r13d, 0xfff8
jmp 0x1400ce260
lea rdx, str._d____d_n
mov r8d, r13d
mov ecx, 0xffff0000
call fcn.1400b3610
jmp 0x1400ce4bd
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 0x1400ce39c
lea r9d, [rsi + 1]
lea rdx, str.ret__d___p_d1__d_n
mov r8d, eax
mov ecx, 0xffff0000
call fcn.1400b3610
jmp 0x1400ce4bd
test r8, r8
je 0x1400ce3b8
lea rax, [rdi - 1]
xor r14d, r14d
cmp byte [rax], 0xd
cmove rdi, rax
mov eax, edi
sub eax, ebx
add r13d, eax
jmp 0x1400ce3e4
test r14, r14
je 0x1400ce3e4
sub r13d, 1
jmp 0x1400ce3e4
sub edi, ebx
lea rdx, str.ret__d___p_d__d_n
mov r8d, eax
mov r9d, edi
mov ecx, 0xffff0000
call fcn.1400b3610
jmp 0x1400ce4bd
mov rdi, rbx
mov r9d, dword [0x1401f9c78]
lea edx, [r13 + 1]
cmp edx, r9d
jle 0x1400ce40d
lea rdx, str.buflen__d__1____d_n
mov r8d, r13d
mov ecx, 0xffff0000
call fcn.1400b3610
jmp 0x1400ce4bd
mov rsi, qword [rsp + 0x68]
cmp edx, dword [rsi + 4]
jle 0x1400ce41f
mov rcx, rsi
call fcn.140175030
mov rsi, qword [rsi + 8]
sub edi, ebx
test rbp, rbp
je 0x1400ce499
nop
nop
mov r12, qword [rbp]
test r12, r12
je 0x1400ce474
cmp r14, rbp
jne 0x1400ce459
lea rdx, [rbp + 8]
mov r8d, 0xfff7
mov rcx, rsi
call fcn.1401a6b10
add rsi, 0xfff7
jmp 0x1400ce489
lea rdx, [rbp + 8]
mov r8d, 0xfff8
mov rcx, rsi
call fcn.1401a6b10
add rsi, 0xfff8
jmp 0x1400ce489
movsxd rbx, edi
lea rdx, [rbp + 8]
mov rcx, rsi
mov r8, rbx
call fcn.1401a6b10
add rsi, rbx
mov rcx, rbp
call fcn.1400ce0b0
test r12, r12
mov rbp, r12
jne 0x1400ce430
mov byte [rsi], 0
mov eax, 1
jmp 0x1400ce4d8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.recv__d_n
mov ecx, 0xffff0000
mov r8d, eax
call fcn.1400b3610
test rbp, rbp
je 0x1400ce4d6
mov rbx, qword [rbp]
mov rcx, rbp
call fcn.1400ce0b0
test rbx, rbx
mov rbp, rbx
jne 0x1400ce4c2
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