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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rdi, rdx
xor r15d, r15d
mov edx, dword [rdx + 0x58]
mov r14, rcx
btr edx, 0x11
mov rsi, r8
mov ecx, 0x80000
mov dword [rdi + 0x58], edx
cmp dword [r8 + 0x40], r15d
jge 0x180015d9a
mov eax, edx
and eax, 0x80100
cmp eax, ecx
je 0x180015f80
btr edx, 8
sub dword [rdi + 0x7c], 1
mov r8d, edx
mov dword [rdi + 0x58], edx
jne 0x180015d4a
mov eax, edx
and al, 0x41
cmp al, 0x40
jne 0x180015d4a
and edx, 0xffffffbf
mov dword [rdi + 0x58], edx
mov r8d, edx
test dl, 0x20
je 0x180015d4a
mov rax, qword [rdi + 8]
dec dword [rax + 8]
mov r8d, dword [rdi + 0x58]
test ecx, r8d
je 0x180015d5d
mov qword [rbp - 0x18], r15
lea rax, [rbp - 0x20]
mov dword [rbp - 0x20], r15d
jmp 0x180015d64
lea rax, [rdi + 0x120]
movups xmm0, xmmword [rax]
mov ecx, dword [rsi + 0x40]
movdqu xmmword [rbp - 0x20], xmm0
call fcn.1800176c4
mov ecx, 0x2746
cmp eax, 0x2745
cmove eax, ecx
mov ecx, eax
call fcn.180012840
movsxd rdx, eax
lea r8, [rbp - 0x20]
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
jmp 0x180015f80
mov r12d, 0x100
test ecx, edx
jne 0x180015dd1
cmp qword [r8 + 0x48], r15
jbe 0x180015e77
mov rdx, qword [rsi + 0x48]
lea rbx, [rdi + 0x120]
mov r8, rbx
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rbx]
cmp qword [rsi + 0x48], rax
jb 0x180015f68
mov edx, dword [rdi + 0x58]
test r12d, edx
je 0x180015f68
mov qword [rbp - 8], r15
lea r8, [rbp - 0x20]
mov dword [rbp - 0x10], r15d
mov edx, 0x10000
movaps xmm0, xmmword [rbp - 0x10]
mov rcx, rdi
movdqa xmmword [rbp - 0x20], xmm0
call qword [rdi + 0x68]
cmp qword [rbp - 0x18], r15
je 0x180015f57
cmp dword [rbp - 0x20], r15d
je 0x180015f57
mov rcx, qword [rdi + 0x110]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], r15
lea r9, [rbp + 0x38]
mov qword [rsp + 0x28], r15
lea rdx, [rbp - 0x20]
mov r8d, 1
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x40], r15d
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x180015f00
mov eax, dword [rbp + 0x38]
test eax, eax
je 0x180015ecb
mov edx, eax
lea r8, [rbp - 0x20]
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rbp - 0x20]
cmp dword [rbp + 0x38], eax
jb 0x180015f68
test dword [rdi + 0x58], r12d
jne 0x180015dda
jmp 0x180015f68
test r12d, edx
je 0x180015ea9
btr edx, 8
sub dword [rdi + 0x7c], 1
mov ecx, edx
jne 0x180015ea7
mov eax, edx
and al, 0x41
cmp al, 0x40
jne 0x180015ea7
and edx, 0xffffffbf
mov dword [rdi + 0x58], edx
mov ecx, edx
test dl, 0x20
je 0x180015ea7
mov rax, qword [rdi + 8]
dec dword [rax + 8]
mov ecx, dword [rdi + 0x58]
mov edx, ecx
btr edx, 0xf
mov qword [rbp - 0x18], r15
mov dword [rdi + 0x58], edx
lea r8, [rdi + 0x120]
mov rdx, 0xfffffffffffff001
mov dword [rbp - 0x20], r15d
jmp 0x180015f62
mov ecx, dword [rdi + 0x58]
and ecx, 0xffff7eff
sub dword [rdi + 0x7c], 1
mov dword [rdi + 0x58], ecx
jne 0x180015ef7
mov eax, ecx
and al, 0x41
cmp al, 0x40
jne 0x180015ef7
and ecx, 0xffffffbf
mov dword [rdi + 0x58], ecx
test cl, 0x20
je 0x180015ef7
mov rax, qword [rdi + 8]
dec dword [rax + 8]
mov rdx, 0xfffffffffffff001
jmp 0x180015f5e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
cmp eax, 0x2733
jne 0x180015f13
xor edx, edx
jmp 0x180015f5e
mov ecx, dword [rdi + 0x58]
btr ecx, 8
sub dword [rdi + 0x7c], 1
mov dword [rdi + 0x58], ecx
jne 0x180015f3d
mov eax, ecx
and al, 0x41
cmp al, 0x40
jne 0x180015f3d
and ecx, 0xffffffbf
mov dword [rdi + 0x58], ecx
test cl, 0x20
je 0x180015f3d
mov rax, qword [rdi + 8]
dec dword [rax + 8]
mov ecx, 0x2746
cmp edx, 0x2745
cmove edx, ecx
mov ecx, edx
call fcn.180012840
movsxd rdx, eax
jmp 0x180015f5e
mov rdx, 0xfffffffffffff024
lea r8, [rbp - 0x20]
mov rcx, rdi
call qword [rdi + reloc.WS2_32.dll_WSASetLastError]
mov eax, dword [rdi + 0x58]
and eax, 0x20100
cmp eax, r12d
jne 0x180015f80
mov rdx, rdi
mov rcx, r14
call fcn.180015584
mov ecx, dword [rdi + 0x78]
mov eax, dword [rdi + 0x58]
dec ecx
mov dword [rdi + 0x78], ecx
test al, 1
je 0x180015fa9
test ecx, ecx
jne 0x180015fa9
test al, 8
jne 0x180015fa9
or eax, 8
mov dword [rdi + 0x58], eax
mov rax, qword [r14 + 0x50]
mov qword [rdi + 0x50], rax
mov qword [r14 + 0x50], rdi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret