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

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rbx, qword [rbp + 0x260]
mov r14, r9
mov qword [rsp + 0x48], r9
mov r13, r8
movzx r15d, dl
mov r12, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140018bc3
lea rdi, [0x1401fd840]
mov dword [rsp + 0x48], 0x2719
mov qword [rsp + 0x50], rdi
xor eax, eax
mov byte [rsp + 0x4c], 1
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbx], xmm0
jmp 0x140018e1c
cmp byte [rbp + 0x258], 0
mov qword [rsp + 0x338], rsi
je 0x140018bfb
test r15b, 0x10
je 0x140018bfb
xor esi, esi
lea rdi, [0x1401fd840]
mov dword [rsp + 0x48], esi
mov byte [rsp + 0x4c], sil
mov qword [rsp + 0x50], rdi
movups xmm0, xmmword [rsp + 0x48]
jmp 0x140018e0f
lea rdi, [0x1401fd840]
xor esi, esi
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
lea r9, [rsp + 0x40]
mov r8d, r14d
mov qword [rsp + 0x20], rax
mov rdx, r13
mov dword [rsp + 0x40], esi
mov rcx, r12
mov dword [rsp + 0x58], esi
call qword [sym.imp.WS2_32.dll_WSARecv]
mov r14d, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x78], rdi
setne byte [rsp + 0x74]
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbx], xmm0
mov ecx, dword [rbx]
cmp ecx, 0x40
jne 0x140018c7c
mov dword [rbp - 0x80], 0x2746
mov byte [rbp - 0x7c], 1
mov qword [rbp - 0x78], rdi
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rbx], xmm0
jmp 0x140018cac
cmp ecx, 0x4d2
jne 0x140018c9c
mov dword [rbp - 0x70], 0x274d
mov byte [rbp - 0x6c], 1
mov qword [rbp - 0x68], rdi
movups xmm0, xmmword [rbp - 0x70]
movups xmmword [rbx], xmm0
jmp 0x140018cac
cmp ecx, 0x2738
je 0x140018cb8
cmp ecx, 0xea
je 0x140018cb8
test r14d, r14d
je 0x140018cb8
mov eax, 0xffffffff
jmp 0x140018cd7
movsxd rax, dword [rsp + 0x40]
mov dword [rbp - 0x60], esi
mov byte [rbp - 0x5c], sil
mov qword [rbp - 0x58], rdi
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rbx], xmm0
test eax, eax
jg 0x140018e14
test r15b, 0x10
je 0x140018ce5
test eax, eax
je 0x140018db9
test r15b, 1
jne 0x140018e12
mov ecx, dword [rbx]
movabs rdx, 0x8fafd21e25c5e09b
cmp ecx, 0x2733
jne 0x140018d0d
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rdx
je 0x140018d27
cmp ecx, 0x4d5
jne 0x140018e12
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rdx
jne 0x140018e12
xor ecx, ecx
mov qword [rbp - 0x28], r12
mov dword [rbp - 0x30], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r12 + 1]
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
mov r14d, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rbp - 0x50], eax
mov qword [rbp - 0x48], rdi
setne byte [rbp - 0x4c]
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbx], xmm0
test r14d, r14d
jne 0x140018d92
mov r14, qword [rsp + 0x48]
mov dword [rbp - 0x40], esi
mov byte [rbp - 0x3c], sil
mov qword [rbp - 0x38], rdi
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rbx], xmm0
jmp 0x140018c04
jle 0x140018daa
mov dword [rsp + 0x60], esi
mov byte [rsp + 0x64], sil
mov qword [rsp + 0x68], rdi
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
test r14d, r14d
js 0x140018e12
mov r14, qword [rsp + 0x48]
jmp 0x140018c04
call fcn.140017ff0
mov rdi, rax
mov dword [rsp + 0x60], 2
movabs rcx, 0x8fafd21e25c5e09b
mov rax, qword [rax + 8]
cmp rax, rcx
je 0x140018dff
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x140018dff
mov rcx, qword [rdi]
mov edx, 2
mov r8, qword [rcx + 0x30]
mov rcx, rdi
call r8
jmp 0x140018e01
mov al, 1
mov byte [rsp + 0x64], al
mov qword [rsp + 0x68], rdi
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
xor eax, eax
mov rsi, qword [rsp + 0x338]
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140158980
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret