Function at 0x1401ace40
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f8]
sub rsp, 0x6c0
movaps xmmword [rax - 0x48], xmm6
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
xor r9d, r9d
mov ebx, edx
mov qword [rbp + 0x590], r9
mov edi, r8d
mov dword [rbp + 0x598], r9d
mov r15, rcx
mov r12d, r9d
test rcx, rcx
je 0x1401aceb0
mov eax, r9d
test edx, edx
je 0x1401aceb0
lea edx, [r9 + 0x10]
cmp qword [rcx], 0xffffffffffffffff
jne 0x1401acee6
inc eax
add rcx, rdx
cmp eax, ebx
jb 0x1401acea1
mov ecx, edi
call fcn.1401ad590
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.1401304f0
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test edi, edi
jle 0x1401aceff
lea rcx, [rsp + 0x30]
mov r12d, edi
call fcn.1401b01d0
xor r9d, r9d
movups xmm6, xmmword [rax]
jmp 0x1401acf06
movaps xmm6, xmmword [rbp + 0x590]
mov r10d, r9d
mov dword [rsp + 0x60], r9d
mov r11d, r9d
mov dword [rbp + 0x170], r9d
mov r8d, r9d
mov dword [rbp + 0x380], r9d
or r14, 0xffffffffffffffff
mov rsi, r15
mov r13, rbx
mov ecx, 0x300
mov rdx, qword [rsi]
mov word [rsi + 0xa], r9w
cmp rdx, 0xffffffffffffffff
je 0x1401ad03c
movzx r9d, word [rsi + 8]
mov eax, 0x710
test ax, r9w
je 0x1401ad02f
cmp rdx, r14
mov rax, rdx
cmovbe rax, r14
mov r14, rax
test cx, r9w
je 0x1401acf9c
xor ecx, ecx
test r10d, r10d
je 0x1401acf7f
cmp qword [rsp + rcx*8 + 0x68], rdx
je 0x1401acf7f
inc ecx
cmp ecx, r10d
jb 0x1401acf71
cmp ecx, r10d
jne 0x1401acf9c
cmp r10d, 0x40
jae 0x1401acf9c
mov qword [rsp + rcx*8 + 0x68], rdx
mov r10d, dword [rsp + 0x60]
inc r10d
mov dword [rsp + 0x60], r10d
test r9b, 0x10
je 0x1401acfde
xor ecx, ecx
test r11d, r11d
je 0x1401acfba
cmp qword [rbp + rcx*8 + 0x178], rdx
je 0x1401acfba
inc ecx
cmp ecx, r11d
jb 0x1401acfa9
cmp ecx, r11d
jne 0x1401acfde
cmp r11d, 0x40
jae 0x1401acfde
mov qword [rbp + rcx*8 + 0x178], rdx
mov r11d, dword [rbp + 0x170]
inc r11d
mov dword [rbp + 0x170], r11d
mov eax, 0x600
test ax, r9w
je 0x1401ad034
xor r9d, r9d
mov ecx, r9d
test r8d, r8d
je 0x1401ad007
mov eax, ecx
cmp qword [rbp + rax*8 + 0x388], rdx
je 0x1401ad007
inc ecx
cmp ecx, r8d
jb 0x1401acff4
cmp ecx, r8d
jne 0x1401ad037
cmp r8d, 0x40
jae 0x1401ad037
mov eax, ecx
mov qword [rbp + rax*8 + 0x388], rdx
mov r8d, dword [rbp + 0x380]
inc r8d
mov dword [rbp + 0x380], r8d
jmp 0x1401ad037
xor r9d, r9d
jmp 0x1401ad03c
xor r9d, r9d
mov ecx, 0x300
add rsi, 0x10
sub rbx, 1
jne 0x1401acf31
test r10d, r10d
jne 0x1401ad05d
test r11d, r11d
jne 0x1401ad05d
test r8d, r8d
je 0x1401aceb0
test edi, edi
lea rbx, [rbp + 0x590]
cmovs rbx, r9
test edi, edi
jle 0x1401ad09f
mov eax, 0x10624dd3
mov ecx, r12d
imul r12d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rbp + 0x590], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rbp + 0x594], eax
jmp 0x1401ad0a9
jne 0x1401ad0a9
and qword [rbp + 0x590], 0
neg r8d
mov qword [rsp + 0x20], rbx
lea rax, [rbp + 0x380]
sbb r9, r9
lea ecx, [r14 + 1]
and r9, rax
lea rax, [rbp + 0x170]
neg r11d
sbb r8, r8
and r8, rax
lea rax, [rsp + 0x60]
neg r10d
sbb rdx, rdx
and rdx, rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1401ad157
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor r9d, r9d
test eax, eax
je 0x1401ad108
cmp dword [0x140408bcc], r9d
jne 0x1401ad15d
cmp eax, 0x2714
jne 0x1401ad15d
test edi, edi
jle 0x1401ad13f
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm6
call fcn.1401b01d0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1401b02b0
mov r12d, edi
sub r12d, eax
test r12d, r12d
jle 0x1401ad167
mov r10d, dword [rsp + 0x60]
mov r11d, dword [rbp + 0x170]
mov r8d, dword [rbp + 0x380]
jmp 0x1401ad06a
xor esi, esi
test eax, eax
jns 0x1401ad165
or eax, 0xffffffff
jmp 0x1401aceb7
jne 0x1401ad16e
xor eax, eax
jmp 0x1401aceb7
mov edi, esi
lea rbx, [r15 + 0xa]
mov eax, reloc.WS2_32.dll_recv
mov r14d, 0x300
mov rcx, qword [rbx - 0xa]
mov word [rbx], si
cmp rcx, 0xffffffffffffffff
je 0x1401ad1e5
lea rdx, [rsp + 0x60]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401ad19e
or word [rbx], r14w
mov rcx, qword [rbx - 0xa]
lea rdx, [rbp + 0x170]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401ad1ba
mov eax, reloc.WS2_32.dll_recv
or word [rbx], ax
mov rcx, qword [rbx - 0xa]
lea rdx, [rbp + 0x380]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401ad1d6
mov eax, 0x400
or word [rbx], ax
movzx eax, word [rbx]
test ax, ax
mov eax, reloc.WS2_32.dll_recv
je 0x1401ad1e5
inc edi
add rbx, rax
sub r13, 1
jne 0x1401ad17f
mov eax, edi
jmp 0x1401aceb7