Function at 0x180139f90
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 rbx, qword [rcx + 0x10]
mov r14, qword [rcx + 0x18]
cmp r14, 0xffffffffffffffff
je 0x18013a1c5
mov rax, qword [rdx]
mov qword [rsp + 0x20], rax
mov r12, qword [rcx + 0x20]
jmp 0x180139ff4
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180246f98]
xor edx, edx
mov r8, r13
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rsp + 0x28]
mov rdx, rbx
mov r8, qword [rsp + 0x20]
xor r9d, r9d
call fcn.180139af0
movzx eax, byte [rsp + 0x31]
cmp al, 3
je 0x18013a1e1
mov r13, qword [rsp + 0x28]
cmp al, 2
je 0x18013a235
mov rdx, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
mov r8, rdx
sub r8, rbp
jb 0x18013a2b2
movzx edi, byte [rsp + 0x30]
mov rdx, qword [rsi]
add rdx, rbp
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
mov rcx, r14
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x18013a1f7
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
je 0x18013a221
mov r15, rax
shl r15, 0x20
or r15, 2
mov ecx, eax
call fcn.18011b850
cmp al, 0xd
jne 0x18013a0e0
test r12, r12
je 0x18013a0e0
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
lock inc qword [rax]
jle 0x18013a24b
add rcx, 0x10
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
movzx r9d, byte [r12 + 0x18]
call fcn.18007ed70
test rax, rax
cmovne r15, rax
mov ebp, r15d
and ebp, 3
lea rcx, [0x18013a2e0]
movsxd rax, dword [rcx + rbp*4]
add rax, rcx
jmp rax
mov ebp, r15d
and ebp, 3
lea rcx, [0x18013a2e0]
movsxd rax, dword [rcx + rbp*4]
add rax, rcx
jmp rax
movzx eax, byte [r15 + 0x10]
cmp al, 0xd
je 0x18013a150
jmp 0x18013a232
movzx eax, byte [r15 + 0xf]
cmp al, 0xd
je 0x18013a150
jmp 0x18013a232
mov rcx, r15
shr rcx, 0x20
call fcn.18011b850
cmp al, 0xd
je 0x18013a150
jmp 0x18013a232
mov rax, r15
shr rax, 0x20
cmp eax, 0xd
jne 0x18013a232
movzx ecx, dil
and r13d, 3
mov rax, qword [rbx + 0x40]
shl rcx, 0x10
xor r13, 0x7f00000f
nop word [rax + rax]
mov rdx, rax
shr rdx, 0x10
cmp dil, dl
jne 0x18013a18c
mov edx, eax
and edx, r13d
or rdx, rcx
lock cmpxchg qword [rbx + 0x40], rdx
jne 0x18013a170
cmp ebp, 1
jne 0x180139ff4
lea r13, [r15 - 1]
mov rbp, qword [r15 - 1]
mov rdi, qword [r15 + 7]
mov rcx, rbp
call qword [rdi]
cmp qword [rdi + 8], 0
je 0x180139fe2
cmp qword [rdi + 0x10], 0x11
jb 0x180139fd0
mov rbp, qword [rbp - 8]
jmp 0x180139fd0
mov r8, qword [rdx]
lea rcx, [rsp + 0x28]
mov rdx, rbx
xor r9d, r9d
call fcn.180139af0
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x18013a1e8
mov eax, 1
jmp 0x18013a237
cmp al, 2
jne 0x18013a2a5
mov r13, qword [rsp + 0x28]
jmp 0x18013a235
movsxd rdx, eax
lea rax, [rdx + rbp]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
jbe 0x18013a20e
mov qword [rsi + 0x18], rax
mov rcx, rax
add rdx, rbp
jb 0x18013a24f
cmp rax, rcx
ja 0x18013a269
mov qword [rsi + 0x10], rax
xor r13d, r13d
jmp 0x18013a235
xor edx, edx
lea rax, [rdx + rbp]
mov rcx, qword [rsi + 0x18]
cmp rax, rcx
ja 0x18013a207
jmp 0x18013a20e
mov r13, r15
xor eax, eax
mov rdx, r13
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rcx, str.filled_overflowfilled_must_not_become_larger_than_initialized
lea r8, str.C:UsersDadoodze.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.28.1_srciopoll_evented.rs
mov edx, 0xf
call fcn.18019b120
ud2
lea rax, [0x18020cef0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, [0x180234e18]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str.C:UsersDadoodze.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.28.1_srciopoll_evented.rs
lea rcx, [rsp + 0x28]
call fcn.18019abc0
ud2
mov rdx, qword [rsi + 8]
mov rbp, qword [rsi + 0x10]
cmp rdx, rbp
jae 0x18013a2c3
lea r8, str.C:UsersDadoodze.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.28.1_srcio_read_buf.rs
mov rcx, rbp
call fcn.18019ac80
ud2
lea rcx, [0x1802343c7]
lea r8, str.C:UsersDadoodze.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.28.1_srciopoll_evented.rs
mov edx, 0x2b
call fcn.18019ad80
ud2