Function at 0x180017ca4
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov r13, r9
mov rax, r8
mov r14b, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180017d12
call fcn.180015750
mov r8, rax
lea rcx, [rsp + 0x40]
mov edx, 0x2719
call fcn.180016218
mov rax, qword [rbp + 0x220]
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rax], xmm0
movsd qword [rax + 0x10], xmm1
xor eax, eax
jmp 0x180018080
cmp byte [rbp + 0x218], 0
je 0x180017d51
test r14b, 0x10
je 0x180017d51
mov rbx, qword [rbp + 0x220]
mov rcx, rbx
call fcn.180016284
mov r8, rax
lea rcx, [rsp + 0x58]
xor edx, edx
call fcn.180016218
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rbx + 0x10], xmm1
jmp 0x180017d0b
mov rdi, qword [rbp + 0x220]
mov r12b, r14b
and r12b, 0x10
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x1f0]
and qword [rsp + 0x28], 0
lea r9, [rbp + 0x210]
and dword [rbp + 0x210], 0
mov r8d, r13d
and dword [rbp + 0x1f0], 0
mov rdx, rax
mov qword [rsp + 0x20], rcx
mov rcx, r15
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call fcn.180015750
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, eax
call fcn.180016218
movabs r9, 0x4800144005b3
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rdi + 0x10], xmm1
mov r8, qword [rdi + 0x10]
cmp r8, 1
je 0x180017de2
mov eax, dword [rdi]
jmp 0x180017e0c
mov rcx, qword [rdi + 8]
mov rax, r9
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul eax, eax, 0x1ffff7
sub ecx, eax
imul eax, ecx, 0x3e8
add eax, dword [rdi]
cmp eax, 0x40
jne 0x180017e1d
call fcn.180015750
mov edx, 0x2746
jmp 0x180017e62
cmp r8, 1
je 0x180017e27
mov eax, dword [rdi]
jmp 0x180017e51
mov rcx, qword [rdi + 8]
mov rax, r9
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul eax, eax, 0x1ffff7
sub ecx, eax
imul eax, ecx, 0x3e8
add eax, dword [rdi]
cmp eax, 0x4d2
jne 0x180017e84
call fcn.180015750
mov edx, 0x274d
mov r8, rax
lea rcx, [rsp + 0x40]
call fcn.180016218
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
jmp 0x180017efc
cmp r8, 1
je 0x180017e8e
mov eax, dword [rdi]
jmp 0x180017eb8
mov rcx, qword [rdi + 8]
mov rax, r9
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul eax, eax, 0x1ffff7
sub ecx, eax
imul eax, ecx, 0x3e8
add eax, dword [rdi]
cmp eax, 0x2738
je 0x180017efa
cmp r8, 1
je 0x180017ec9
mov eax, dword [rdi]
jmp 0x180017ef3
mov rcx, qword [rdi + 8]
mov rax, r9
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul eax, eax, 0x1ffff7
sub ecx, eax
imul eax, ecx, 0x3e8
add eax, dword [rdi]
cmp eax, 0xea
jne 0x180017efc
xor esi, esi
test esi, esi
je 0x180017f05
or eax, 0xffffffff
jmp 0x180017f32
mov rcx, rdi
call fcn.180016284
mov r8, rax
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.180016218
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movsd xmm1, qword [rax + 0x10]
mov eax, dword [rbp + 0x210]
movsd qword [rdi + 0x10], xmm1
test r12b, r12b
je 0x180017f3f
test eax, eax
je 0x18001804f
test eax, eax
jns 0x18001807e
test r14b, 1
jne 0x180017d0b
call fcn.180015750
mov r8, rax
lea rcx, [rsp + 0x40]
mov edx, 0x2733
call fcn.180016218
movups xmm0, xmmword [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rdi
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rsp + 0x70], xmm0
movsd qword [rbp - 0x80], xmm1
call fcn.180016478
test al, al
jne 0x180017fd0
call fcn.180015750
mov r8, rax
lea rcx, [rsp + 0x40]
mov edx, 0x4d5
call fcn.180016218
movups xmm0, xmmword [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov rcx, rdi
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rsp + 0x58], xmm0
movsd qword [rsp + 0x68], xmm1
call fcn.180016478
test al, al
je 0x180017d0b
and qword [rsp + 0x20], 0
lea ecx, [r15 + 1]
xor r9d, r9d
mov qword [rbp - 0x58], r15
xor r8d, r8d
mov dword [rbp - 0x60], 1
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
test eax, eax
js 0x18001800e
mov rcx, rdi
call fcn.180016284
mov r8, rax
lea rcx, [rbp - 0x78]
xor edx, edx
jmp 0x180018026
call fcn.180015750
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
lea rcx, [rsp + 0x40]
mov edx, eax
call fcn.180016218
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movsd xmm1, qword [rax + 0x10]
movsd qword [rdi + 0x10], xmm1
test esi, esi
js 0x180017d0b
mov rax, qword [rbp + 0x200]
jmp 0x180017d5f
call fcn.1800170a8
mov r8, rax
lea rcx, [rsp + 0x40]
mov edx, 2
call fcn.180016218
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
movups xmmword [rdi], xmm0
movsd qword [rdi + 0x10], xmm1
jmp 0x180017d0b
cdqe
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret