Function at 0x140099470
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 0x140099642
mov r15, qword [rcx + 0x10]
mov r12, qword [rcx + 0x20]
jmp 0x1400994d2
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, r13
call fcn.1400a6040
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rbp
call fcn.1400a6040
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, r14
xor r9d, r9d
call fcn.1400a0380
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x14009965f
mov r13, qword [rsp + 0x28]
cmp al, 2
je 0x140099678
mov rdx, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
mov r8, rdx
sub r8, rbp
jb 0x14009972b
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 0x14009967f
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x1400996bc
invalid
mov edi, eax
test r12, r12
sete bpl
shl rdi, 0x20
or rdi, 2
mov rcx, rdi
call fcn.14003dcf0
cmp al, 0xd
setne al
or al, bpl
jne 0x1400995b6
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
lock inc qword [rax]
jle 0x1400996cd
add rcx, 0x10
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
movzx r9d, byte [r12 + 0x18]
call fcn.14003da40
cli
dec dword [rax - 0x77]
invalid
test rax, rax
je 0x1400995b6
mov rcx, rdi
call fcn.14003d140
mov rdi, rbp
mov rcx, rdi
call fcn.1400962e0
cmp al, 0xd
jne 0x1400996a6
and r13d, 0x23
mov rax, qword [r15 + 0x90]
xor r13, 0x2f
mov ecx, ebx
shl ecx, 0x10
nop word [rax + rax]
mov edx, eax
shr edx, 0x10
cmp bl, dl
jne 0x1400995fc
mov edx, r13d
and edx, eax
or rdx, rcx
lock cmpxchg qword [r15 + 0x90], rdx
jne 0x1400995e0
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x1400994d2
lea rbp, [rdi - 1]
mov r13, qword [rdi - 1]
mov rdi, qword [rdi + 7]
mov rax, qword [rdi]
test rax, rax
je 0x140099623
mov rcx, r13
call rax
cmp qword [rdi + 8], 0
je 0x1400994c1
cmp qword [rdi + 0x10], 0x11
jb 0x1400994b0
mov r13, qword [r13 - 8]
jmp 0x1400994b0
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x28]
mov r8, r14
xor r9d, r9d
call fcn.1400a0380
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x140099669
mov eax, 1
mov rdi, r13
jmp 0x1400996a8
cmp al, 2
jne 0x14009971e
mov rdi, qword [rsp + 0x28]
jmp 0x1400996a6
xor eax, eax
mov rdi, r13
jmp 0x1400996a8
movsxd rdx, eax
lea rax, [rdx + rbp]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
jbe 0x140099696
mov qword [rsi + 0x18], rax
mov rcx, rax
add rbp, rdx
jb 0x1400996cf
cmp rax, rcx
ja 0x1400996e7
mov qword [rsi + 0x10], rax
xor edi, edi
xor eax, eax
mov rdx, rdi
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 0x14009968f
jmp 0x140099696
ud2
lea rcx, str.filled_overflow_home_medusa_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.41.0_src_io_poll_evented.rs
lea r8, [0x1400bff50]
mov edx, 0xf
call fcn.140012970
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, [0x1400bff50]
lea rcx, [rsp + 0x28]
call fcn.14000fd10
mov rdx, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
cmp rbp, rdx
jbe 0x14009973a
lea r8, str._home_medusa_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.41.0_src_io_read_buf.rs
mov rcx, rbp
call fcn.14000fb10
lea rcx, [0x1400bff38]
call fcn.140012950
mov rsi, rax
cmp qword [rdi + 8], 0
je 0x14009976c
cmp qword [rdi + 0x10], 0x11
jb 0x14009975b
mov r13, qword [r13 - 8]
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, r13
call fcn.1400a6040
mov rcx, qword [0x1400d3110]
xor edx, edx
mov r8, rbp
call fcn.1400a6040
mov rcx, rsi
call fcn.1400a6610
mov rsi, rax
mov rcx, rdi
call fcn.14003d140
mov rcx, rsi
call fcn.1400a6610
call fcn.140012be0
int3