Function at 0x14002f12b
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x278
movaps xmmword [rsp + 0x260], xmm6
mov r14, r9
mov qword [rsp + 0x38], r8
mov r13, rcx
mov rbp, qword [rsp + 0x2e0]
mov byte [rsp + 0x33], dl
and dl, 4
mov byte [rsp + 0x32], dl
shr dl, 2
mov byte [rsp + 0x31], dl
lea eax, [rcx + 1]
mov dword [rsp + 0x34], eax
movabs r15, 0x595588bd12bf6fe8
lea r12, [0x140098748]
lea rdi, [rsp + 0x58]
xorps xmm6, xmm6
cmp r13, 0xffffffffffffffff
je 0x14002f1b8
test r14, r14
je 0x14002f1f9
mov eax, dword [r14]
mov dword [rsp + 0x58], eax
mov rcx, r13
mov rdx, qword [rsp + 0x38]
mov r8, rdi
call qword [sym.imp.WS2_32.dll_accept]
movsxd rcx, dword [rsp + 0x58]
mov qword [r14], rcx
jmp 0x14002f20a
mov rax, qword [0x140098750]
shr rax, 1
cmp rax, r15
je 0x14002f1e2
mov rax, qword [0x140098748]
mov rcx, r12
mov edx, 0x2719
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14002f1e7
mov ecx, 3
mov qword [rbp], 0x2719
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], rcx
jmp 0x14002f239
mov rcx, r13
mov rdx, qword [rsp + 0x38]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_accept]
cmp rax, 0xffffffffffffffff
jne 0x14002f4be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov r8, r12
call fcn.14000689a
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbp], xmm0
mov rax, qword [rsp + 0x68]
mov qword [rbp + 0x10], rax
mov rax, qword [0x140098750]
shr rax, 1
cmp rax, r15
je 0x14002f25a
mov rax, qword [0x140098748]
mov rcx, r12
mov edx, 0x2733
call qword [rax + 0x30]
mov rax, qword [rbp + 0x10]
mov ecx, dword [rbp]
cmp rax, 1
je 0x14002f2a5
cmp ecx, 0x2733
jne 0x14002f2a5
mov rdi, r12
test rax, rax
je 0x14002f27b
mov rdi, qword [rbp + 8]
mov rdx, qword [0x140098750]
xor esi, esi
cmp rdi, r12
sete sil
xor ebx, ebx
cmp qword [rdi + 8], rdx
sete bl
test rdx, rdx
cmove ebx, esi
test bl, bl
lea rdi, [rsp + 0x58]
je 0x14002f2ac
jmp 0x14002f311
mov rdx, qword [0x140098750]
shr rdx, 1
cmp rdx, r15
je 0x14002f2cd
mov rax, qword [0x140098748]
mov rcx, r12
mov edx, 0x4d5
call qword [rax + 0x30]
mov rax, qword [rbp + 0x10]
mov ecx, dword [rbp]
cmp rax, 1
je 0x14002f321
cmp ecx, 0x4d5
jne 0x14002f321
mov rdx, r12
test rax, rax
je 0x14002f2e7
mov rdx, qword [rbp + 8]
mov rcx, qword [0x140098750]
xor ebx, ebx
cmp rdx, r12
sete bl
xor edi, edi
cmp qword [rdx + 8], rcx
sete dil
test rcx, rcx
cmove edi, ebx
cmp dil, 1
lea rdi, [rsp + 0x58]
jne 0x14002f328
test byte [rsp + 0x33], 1
je 0x14002f3e0
jmp 0x14002f49b
mov rcx, qword [0x140098750]
shr rcx, 1
cmp rcx, r15
je 0x14002f346
mov rax, qword [0x140098748]
mov rcx, r12
mov edx, 0x2745
call qword [rax + 0x30]
mov rax, qword [rbp + 0x10]
mov esi, dword [rbp]
cmp rax, 1
jne 0x14002f385
mov rcx, qword [rbp + 8]
mov rax, rcx
movabs rdx, 0x4800144005b3
mul rdx
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 esi, eax
jmp 0x14002f3c2
cmp esi, 0x2745
jne 0x14002f3c2
mov rcx, r12
test rax, rax
je 0x14002f399
mov rcx, qword [rbp + 8]
mov rax, qword [0x140098750]
xor edx, edx
cmp rcx, r12
setne dl
xor ebx, ebx
cmp qword [rcx + 8], rax
setne bl
test rax, rax
cmove ebx, edx
or bl, byte [rsp + 0x31]
je 0x14002f3e0
jmp 0x14002f49b
mov rax, 0xffffffffffffffff
cmp esi, 0x86
jne 0x14002f4a2
cmp byte [rsp + 0x32], 0
jne 0x14002f4a2
cmp r13, 0xffffffffffffffff
je 0x14002f424
mov qword [rsp + 0x60], r13
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x20], 0
mov ecx, dword [rsp + 0x34]
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14002f470
movups xmmword [rbp], xmm6
mov qword [rbp + 0x10], 0
jmp 0x14002f18b
mov rax, qword [0x140098750]
shr rax, 1
cmp rax, r15
je 0x14002f452
mov rax, qword [0x140098748]
lea rcx, [0x140098748]
mov edx, 0x2719
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14002f457
mov ecx, 3
mov qword [rbp], 0x2719
lea rax, [0x140098748]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rcx
jmp 0x14002f49b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, [0x140098748]
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov edx, eax
call fcn.14000689a
movups xmm0, xmmword [rsi]
movups xmmword [rbp], xmm0
mov rax, qword [rsi + 0x10]
mov qword [rbp + 0x10], rax
mov rax, 0xffffffffffffffff
movaps xmm6, xmmword [rsp + 0x260]
add rsp, 0x278
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
jmp 0x14002f4a2