Function at 0x140061aaa
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, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rdi, rdx
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x37]
mov r14, rax
mov byte [rax], 0
lea rsi, [rdx + 0x28]
lea rbx, [rdx + 0x10]
lea r15, [rsp + 0x58]
xorps xmm6, xmm6
mov qword [rsp + 0x50], rsi
mov r8d, dword [rdi + 0x38]
cmp r8d, 0x3b9aca01
jne 0x140061c1b
mov r13, qword [rdi]
mov rdx, qword [rdi + 8]
lea rcx, [r13 + 0x30]
mov r8d, dword [rdi + 0x10]
call fcn.140061dbb
test rax, rax
jne 0x140061c2c
mov rcx, r13
call fcn.14006194b
test rdx, rdx
jne 0x140061b92
mov rcx, r15
mov rdx, r13
call fcn.14005fc27
mov eax, dword [rsp + 0x58]
cmp eax, 2
je 0x140061c8e
test eax, eax
je 0x140061b92
cmp qword [r13 + 0xd0], 0
je 0x140061b75
mov rcx, r15
mov rdx, r13
call fcn.14006092f
cmp qword [rsp + 0x58], 0
jne 0x140061c8e
cmp qword [rsp + 0x60], 0
je 0x140061b92
and qword [r13 + 0xd0], 0
mov rcx, r15
mov rdx, r13
call fcn.140060aff
cmp byte [rsp + 0x58], 0
jne 0x140061c8e
cmp byte [rsp + 0x59], 0
je 0x140061b1b
mov rcx, r13
call fcn.14006194b
mov r12, rdx
test rax, rax
je 0x140061cde
mov rsi, rax
xor ebp, ebp
test r12, r12
setne bpl
mov r8d, 1
mov rcx, rbp
mov rdx, r14
call fcn.140060cbc
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x70], rdx
mov rcx, rsi
mov rdx, r12
mov r8, rbp
call fcn.140061938
mov r9, rdx
lea rcx, [0x14008b1d8]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov r8, rax
call fcn.14002dfa4
mov rax, qword [r13 + 0x50]
add rax, rbp
cmp rax, qword [r13 + 0x48]
ja 0x140061da1
mov qword [r13 + 0x50], rax
mov r12, rbp
xor eax, eax
jmp 0x140061ce3
mov rdx, qword [rdi + 0x30]
mov rcx, rsi
call fcn.140061dbb
test rax, rax
je 0x140061c42
mov rbp, rax
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], 1
jmp 0x140061cfc
mov r8, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
cmp rax, rcx
jne 0x140061c79
cmp r8, 2
jae 0x140061c79
movups xmmword [rbx], xmm6
mov rdx, qword [rsi]
mov r9d, 1
lea rcx, [rsp + 0x38]
mov r8, r14
call fcn.140049e40
mov rax, qword [rsp + 0x38]
jmp 0x140061cf2
mov rbp, rax
mov r13, qword [rdi]
sub rbp, rcx
jbe 0x140061c9a
test r13, r13
je 0x140061c2f
jmp 0x140061d46
mov r12, qword [rsp + 0x60]
mov eax, 1
jmp 0x140061ce8
mov rsi, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x28]
mov eax, 0x7fffffff
cmp r8, rax
cmovae r8, rax
mov rdx, r13
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x140061d2a
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
je 0x140061d35
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rsi, qword [rsp + 0x50]
jmp 0x140061c2f
mov eax, 1
mov rsi, qword [rsp + 0x50]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140061d23
mov rbp, qword [rsp + 0x40]
mov rcx, rbp
call fcn.140061110
test al, al
je 0x140061d15
mov rcx, rbp
call fcn.140060792
jmp 0x140061aed
mov rax, qword [rsp + 0x48]
mov byte [rax], 1
mov qword [rax + 8], rbp
jmp 0x140061d85
mov rdx, qword [rsp + 0x40]
jmp 0x140061d67
cdqe
cmp rsi, rax
cmovbe rsi, rax
jmp 0x140061d37
xor eax, eax
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rsi
xor ecx, ecx
xor edx, edx
cmp rax, rcx
setne dl
je 0x140061d5a
mov r8b, byte [r13 + rcx]
mov byte [rsp + 0x37], r8b
add rcx, rdx
cmp rcx, rax
cmovae rcx, rax
mov qword [rbx], rcx
test rdx, rdx
je 0x140061d7d
mov al, byte [rsp + 0x37]
mov rcx, qword [rsp + 0x48]
mov byte [rcx], 0
mov byte [rcx + 1], al
jmp 0x140061d85
mov rax, qword [rsp + 0x48]
mov byte [rax], 2
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str.assertion_failed:_pos___self.dec_in.get_ref__.len___as_u64MidHandshakeTlsStreaminner
lea r8, [0x14008b1d8]
mov edx, 0x3b
call fcn.140009e20
ud2