Function at 0x14027cbc8
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 [0x14042f068]
xor rax, rsp
mov qword [rbp + 0x570], rax
xor r12d, r12d
mov esi, edx
mov r15, r8
mov r14, rcx
test rcx, rcx
je 0x14027cc25
mov eax, r12d
test edx, edx
je 0x14027cc25
lea edx, [r12 + 0x10]
cmp qword [rcx], 0xffffffffffffffff
jne 0x14027cc58
inc eax
add rcx, rdx
cmp eax, esi
jb 0x14027cc16
mov rcx, r15
call fcn.14027d06c
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.1402af300
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 ecx, 0x300
mov r10, qword [r11 - 8]
mov word [r11 + 2], r12w
cmp r10, 0xffffffffffffffff
je 0x14027cd86
jae 0x14027cdac
mov eax, 0x710
test word [r11], ax
je 0x14027cd86
cmp r10, rbx
mov rax, r10
cmovbe rax, rbx
mov rbx, rax
test word [r11], cx
je 0x14027ccf5
mov ecx, r12d
test r8d, r8d
je 0x14027ccd6
mov eax, ecx
cmp qword [rsp + rax*8 + 0x48], r10
je 0x14027ccd6
inc ecx
cmp ecx, r8d
jb 0x14027ccc6
cmp ecx, r8d
jne 0x14027ccf5
cmp r8d, 0x40
jae 0x14027ccf5
mov eax, ecx
mov qword [rsp + rax*8 + 0x48], r10
mov r8d, dword [rsp + 0x40]
inc r8d
mov dword [rsp + 0x40], r8d
test byte [r11], 0x10
je 0x14027cd3c
mov ecx, r12d
test r9d, r9d
je 0x14027cd16
mov eax, ecx
cmp qword [rbp + rax*8 + 0x158], r10
je 0x14027cd16
inc ecx
cmp ecx, r9d
jb 0x14027cd03
cmp ecx, r9d
jne 0x14027cd3c
cmp r9d, 0x40
jae 0x14027cd3c
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 0x14027cd81
mov ecx, r12d
test edx, edx
je 0x14027cd60
mov eax, ecx
cmp qword [rbp + rax*8 + 0x368], r10
je 0x14027cd60
inc ecx
cmp ecx, edx
jb 0x14027cd4e
cmp ecx, edx
jne 0x14027cd81
cmp edx, 0x40
jae 0x14027cd81
mov eax, ecx
mov qword [rbp + rax*8 + 0x368], r10
mov edx, dword [rbp + 0x360]
inc edx
mov dword [rbp + 0x360], edx
mov ecx, 0x300
inc edi
add r11, 0x10
cmp edi, esi
jb 0x14027cc83
test r8d, r8d
jne 0x14027cdbf
test r9d, r9d
jne 0x14027cdbf
test edx, edx
jne 0x14027cdbf
mov rcx, r15
call fcn.14027d06c
jmp 0x14027ce15
mov ecx, 0x2726
call qword [sym.imp.ws2_32.dll_WSASetLastError]
or eax, 0xffffffff
jmp 0x14027cc2d
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.140298494
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 0x14027ce36
cmp eax, 0xffffffff
jne 0x14027ce2f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2714
cmove ebx, r12d
mov eax, ebx
jmp 0x14027cc2d
lea rbx, [r14 + 0xa]
mov edi, r12d
mov r14d, 0x200
mov eax, 0x10
mov r15d, 0x400
mov rcx, qword [rbx - 0xa]
mov word [rbx], r12w
cmp rcx, 0xffffffffffffffff
je 0x14027ceee
lea rdx, [rsp + 0x40]
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
je 0x14027ce90
mov eax, 0x100
test word [rbx - 2], ax
je 0x14027ce7c
or word [rbx], ax
movzx eax, word [rbx]
mov ecx, 0x300
test word [rbx - 2], cx
je 0x14027ce90
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 0x14027ceb1
mov eax, 0x10
test byte [rbx - 2], al
je 0x14027ceb1
or word [rbx], ax
mov rcx, qword [rbx - 0xa]
lea rdx, [rbp + 0x360]
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
je 0x14027cee1
test word [rbx - 2], r14w
je 0x14027ced0
or word [rbx], r14w
movzx eax, word [rbx]
test word [rbx - 2], r15w
je 0x14027cee1
or ax, r15w
mov word [rbx], ax
mov eax, 0x10
cmp word [rbx], r12w
je 0x14027ceee
inc edi
add rbx, rax
sub rsi, 1
jne 0x14027ce4e
mov eax, edi
jmp 0x14027cc2d