Function at 0x1401e3d24
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x580]
sub rsp, 0x680
mov rax, qword [0x140481f48]
xor rax, rsp
mov qword [rbp + 0x570], rax
xor r12d, r12d
mov esi, edx
mov r15, r8
mov r14, rcx
test rcx, rcx
je 0x1401e3d84
mov eax, r12d
test edx, edx
je 0x1401e3d84
mov rdx, rcx
lea ecx, [r12 + 0x10]
cmp qword [rdx], 0xffffffffffffffff
jne 0x1401e3db7
inc eax
add rdx, rcx
cmp eax, esi
jb 0x1401e3d75
mov rcx, r15
call fcn.1401e41cc
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140330e30
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov edx, r12d
mov dword [rsp + 0x40], r12d
mov dword [rbp + 0x360], edx
lea r11, [r14 + 8]
mov r8d, r12d
mov dword [rbp + 0x150], r12d
mov r9d, r12d
or rbx, 0xffffffffffffffff
mov edi, r12d
mov r10, qword [r11 - 8]
mov word [r11 + 2], r12w
cmp r10, 0xffffffffffffffff
je 0x1401e3ee9
jae 0x1401e3f0e
mov eax, 0x710
test word [r11], ax
je 0x1401e3ee4
cmp r10, rbx
mov rax, r10
cmovbe rax, rbx
mov rbx, rax
mov eax, 0x300
test word [r11], ax
je 0x1401e3e59
mov ecx, r12d
test r8d, r8d
je 0x1401e3e35
mov eax, ecx
cmp qword [rsp + rax*8 + 0x48], r10
je 0x1401e3e35
inc ecx
cmp ecx, r8d
jb 0x1401e3e25
cmp ecx, r8d
jne 0x1401e3e54
cmp r8d, 0x40
jae 0x1401e3e54
mov eax, ecx
mov qword [rsp + rax*8 + 0x48], r10
mov r8d, dword [rsp + 0x40]
inc r8d
mov dword [rsp + 0x40], r8d
mov ecx, reloc.WS2_32.dll_recv
test byte [r11], cl
je 0x1401e3e9f
mov ecx, r12d
test r9d, r9d
je 0x1401e3e79
mov eax, ecx
cmp qword [rbp + rax*8 + 0x158], r10
je 0x1401e3e79
inc ecx
cmp ecx, r9d
jb 0x1401e3e66
cmp ecx, r9d
jne 0x1401e3e9f
cmp r9d, 0x40
jae 0x1401e3e9f
mov eax, ecx
mov qword [rbp + rax*8 + 0x158], r10
mov r9d, dword [rbp + 0x150]
inc r9d
mov dword [rbp + 0x150], r9d
mov eax, 0x600
test word [r11], ax
je 0x1401e3ee4
mov ecx, r12d
test edx, edx
je 0x1401e3ec3
mov eax, ecx
cmp qword [rbp + rax*8 + 0x368], r10
je 0x1401e3ec3
inc ecx
cmp ecx, edx
jb 0x1401e3eb1
cmp ecx, edx
jne 0x1401e3ee4
cmp edx, 0x40
jae 0x1401e3ee4
mov eax, ecx
mov qword [rbp + rax*8 + 0x368], r10
mov edx, dword [rbp + 0x360]
inc edx
mov dword [rbp + 0x360], edx
mov ecx, reloc.WS2_32.dll_recv
inc edi
add r11, rcx
cmp edi, esi
jb 0x1401e3ddd
test r8d, r8d
jne 0x1401e3f21
test r9d, r9d
jne 0x1401e3f21
test edx, edx
jne 0x1401e3f21
mov rcx, r15
call fcn.1401e41cc
jmp 0x1401e3f77
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x1401e3d8c
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.1401ff9b0
mov ecx, dword [rbp + 0x360]
neg ecx
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x360]
sbb r9, r9
and r9, rcx
mov ecx, dword [rbp + 0x150]
neg ecx
lea rcx, [rbp + 0x150]
sbb r8, r8
and r8, rcx
mov ecx, dword [rsp + 0x40]
neg ecx
lea rcx, [rsp + 0x40]
sbb rdx, rdx
and rdx, rcx
lea ecx, [rbx + 1]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jg 0x1401e3f98
cmp eax, 0xffffffff
jne 0x1401e3f91
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
cmove ebx, r12d
mov eax, ebx
jmp 0x1401e3d8c
lea rbx, [r14 + 0xa]
mov edi, r12d
mov r14d, 0x200
mov eax, reloc.WS2_32.dll_recv
mov r15d, 0x400
mov rcx, qword [rbx - 0xa]
mov word [rbx], r12w
cmp rcx, 0xffffffffffffffff
je 0x1401e4050
lea rdx, [rsp + 0x40]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401e3ff2
mov eax, 0x100
test word [rbx - 2], ax
je 0x1401e3fde
or word [rbx], ax
movzx eax, word [rbx]
mov ecx, 0x300
test word [rbx - 2], cx
je 0x1401e3ff2
or ax, cx
mov word [rbx], ax
mov rcx, qword [rbx - 0xa]
lea rdx, [rbp + 0x150]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401e4013
mov eax, reloc.WS2_32.dll_recv
test byte [rbx - 2], al
je 0x1401e4013
or word [rbx], ax
mov rcx, qword [rbx - 0xa]
lea rdx, [rbp + 0x360]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401e4043
test word [rbx - 2], r14w
je 0x1401e4032
or word [rbx], r14w
movzx eax, word [rbx]
test word [rbx - 2], r15w
je 0x1401e4043
or ax, r15w
mov word [rbx], ax
mov eax, reloc.WS2_32.dll_recv
cmp word [rbx], r12w
je 0x1401e4050
inc edi
add rbx, rax
sub rsi, 1
jne 0x1401e3fb0
mov eax, edi
jmp 0x1401e3d8c