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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov r14, rdx
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x140122741
mov r15, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x20]
jmp 0x1401225e7
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.kernel32.dll_HeapFree
dec r12
call sub.kernel32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, r12
call sub.kernel32.dll_HeapFree
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, r14
xor r9d, r9d
call fcn.14011d7f0
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x14012275e
mov r13, qword [rsp + 0x28]
cmp al, 2
je 0x140122777
mov rdx, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
mov r8, rdx
sub r8, rbp
jb 0x140122837
movzx ebx, byte [rsp + 0x30]
mov rdx, qword [rsi]
add rdx, rbp
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov rcx, qword [rsp + 0x20]
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x14012277e
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x1401227bc
mov r12d, eax
test rdi, rdi
sete bpl
shl r12, 0x20
or r12, 2
mov rcx, r12
call fcn.14004f890
cmp al, 0xd
setne al
or al, bpl
jne 0x1401226bb
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
lock inc qword [rax]
jle 0x14012281c
add rcx, 0x10
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
movzx r9d, byte [rdi + 0x18]
call fcn.14004f620
test rax, rax
cmovne r12, rax
mov rcx, r12
call fcn.14008b6c0
cmp al, 0xd
jne 0x1401227a6
and r13d, 0x23
mov rax, qword [r15 + 0x90]
xor r13, 0x2f
mov ecx, ebx
shl ecx, 0x10
nop
mov edx, eax
shr edx, 0x10
cmp bl, dl
jne 0x1401226fc
mov edx, r13d
and edx, eax
or rdx, rcx
lock cmpxchg qword [r15 + 0x90], rdx
jne 0x1401226e0
mov eax, r12d
and eax, 3
cmp eax, 1
jne 0x1401225e7
mov rbp, qword [r12 - 1]
mov rbx, qword [r12 + 7]
mov rax, qword [rbx]
test rax, rax
je 0x140122722
mov rcx, rbp
call rax
cmp qword [rbx + 8], 0
je 0x1401225d2
cmp qword [rbx + 0x10], 0x11
jb 0x1401225c0
mov rbp, qword [rbp - 8]
jmp 0x1401225c0
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x28]
mov r8, r14
xor r9d, r9d
call fcn.14011d7f0
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x140122768
mov eax, 1
mov r12, r13
jmp 0x1401227a8
cmp al, 2
jne 0x14012281e
mov r12, qword [rsp + 0x28]
jmp 0x1401227a6
xor eax, eax
mov r12, r13
jmp 0x1401227a8
movsxd rdx, eax
lea rax, [rdx + rbp]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
jbe 0x140122795
mov qword [rsi + 0x18], rax
mov rcx, rax
add rbp, rdx
jb 0x1401227cd
cmp rax, rcx
ja 0x1401227e5
mov qword [rsi + 0x10], rax
xor r12d, r12d
xor eax, eax
mov rdx, r12
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
lea rax, [rdx + rbp]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
ja 0x14012278e
jmp 0x140122795
lea rcx, str.filled_overflowC:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.41.1_srciopoll_evented.rs
lea r8, [0x140192a58]
mov edx, 0xf
call fcn.14000cb80
lea rax, str.filled_must_not_become_larger_than_initialized
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, [0x140192a58]
lea rcx, [rsp + 0x28]
call fcn.140009c00
ud2
mov rdx, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
cmp rbp, rdx
ja 0x140122837
lea rcx, [0x140192a40]
call fcn.14000cb60
lea r8, str.C:UsersUser.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.41.1_srcio_read_buf.rs
mov rcx, rbp
call fcn.140009a60
int3