Function at 0x14001e950
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
lea rbp, [rsp - 0x580]
sub rsp, 0x680
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rbp + 0x570], rax
xor r15d, r15d
mov qword [rsp + 0x30], 0x7fffffff
mov rbx, rcx
mov dword [rbp + 0x150], r15d
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x40], r15d
mov dword [rbp + 0x360], r15d
call fcn.14002db90
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov esi, r15d
cmp dword [rbx + 8], r15d
jle 0x14001eb29
mov edi, r15d
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001eb1a
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test eax, eax
je 0x14001ea23
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + rdi]
mov r8, qword [rcx + 8]
test r8, r8
je 0x14001ea23
mov edx, dword [rsp + 0x40]
mov ecx, r15d
test edx, edx
je 0x14001ea0f
nop word [rax + rax]
mov eax, ecx
cmp qword [rsp + rax*8 + 0x48], r8
je 0x14001ea0f
inc ecx
cmp ecx, edx
jb 0x14001ea00
cmp ecx, edx
jne 0x14001ea23
cmp edx, 0x40
jae 0x14001ea23
mov eax, ecx
mov qword [rsp + rax*8 + 0x48], r8
inc dword [rsp + 0x40]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test eax, eax
je 0x14001ea82
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + rdi]
mov r8, qword [rcx + 8]
test r8, r8
je 0x14001ea82
mov edx, dword [rbp + 0x150]
mov ecx, r15d
test edx, edx
je 0x14001ea63
cmp qword [rbp + rcx*8 + 0x158], r8
je 0x14001ea63
inc ecx
cmp ecx, edx
jb 0x14001ea53
cmp ecx, edx
jne 0x14001ea82
cmp edx, 0x40
jae 0x14001ea82
mov rax, qword [rax + rdi]
mov rax, qword [rax + 8]
mov qword [rbp + rcx*8 + 0x158], rax
inc dword [rbp + 0x150]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
mov rax, qword [rcx]
call qword [rax + 0x20]
test eax, eax
je 0x14001eae1
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + rdi]
mov r8, qword [rcx + 8]
test r8, r8
je 0x14001eae1
mov edx, dword [rbp + 0x360]
mov ecx, r15d
test edx, edx
je 0x14001eac2
cmp qword [rbp + rcx*8 + 0x368], r8
je 0x14001eac2
inc ecx
cmp ecx, edx
jb 0x14001eab2
cmp ecx, edx
jne 0x14001eae1
cmp edx, 0x40
jae 0x14001eae1
mov rax, qword [rax + rdi]
mov rax, qword [rax + 8]
mov qword [rbp + rcx*8 + 0x368], rax
inc dword [rbp + 0x360]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
je 0x14001eb1a
mov rax, qword [rbx + 0x10]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rax + rdi]
mov rcx, qword [rcx + 0x10]
call fcn.14002cc00
mov ecx, dword [rsp + 0x30]
cvttsd2si eax, xmm0
cmp eax, ecx
cmovl ecx, eax
mov dword [rsp + 0x30], ecx
inc esi
add rdi, 8
cmp esi, dword [rbx + 8]
jl 0x14001e9c3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
xor ecx, ecx
lea r9, [rbp + 0x360]
cmp dword [rsp + 0x30], 0x7fffffff
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x150]
jne 0x14001eb58
mov qword [rsp + 0x20], r15
jmp 0x14001eb62
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, rbx
mov qword [rsp + 0x6a8], r14
mov esi, eax
mov rax, qword [rbx]
call qword [rax + reloc.WS2_32.dll_htonl]
test esi, esi
jne 0x14001ec1d
lea rcx, [rsp + 0x38]
call fcn.14002db90
mov r14d, r15d
cmp dword [rbx + 8], r15d
jle 0x14001eda1
mov rdi, r15
nop dword [rax]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001ec0b
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
je 0x14001ec0b
mov rax, qword [rbx + 0x10]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rax + rdi]
mov rcx, qword [rcx + 0x10]
call fcn.14002cc00
cvttsd2si eax, xmm0
test eax, eax
jg 0x14001ec0b
mov rax, qword [rbx + 0x10]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rdi + rax]
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jns 0x14001ec0b
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001ec03
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rbx + 0x10]
mov qword [rdi + rax], r15
inc r14d
add rdi, 8
cmp r14d, dword [rbx + 8]
jl 0x14001eba0
jmp 0x14001eda1
mov r14d, r15d
test esi, esi
jle 0x14001eda1
mov rdi, r15
nop dword [rax + rax]
cmp r14d, dword [rbx + 8]
jge 0x14001eda1
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001eccc
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14001eccc
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14001eccc
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
mov rax, qword [rcx]
call qword [rax + gethostname]
test eax, eax
jns 0x14001ec94
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001ec8c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rbx + 0x10]
mov qword [rdi + rax], r15
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001ecca
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
je 0x14001ecca
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001ecc2
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rbx + 0x10]
mov qword [rdi + rax], r15
dec esi
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001ed38
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14001ed38
lea rdx, [rbp + 0x150]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14001ed38
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
mov rax, qword [rcx]
call qword [rax + 0x30]
test eax, eax
js 0x14001ed17
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
je 0x14001ed36
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001ed2e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rbx + 0x10]
mov qword [rdi + rax], r15
dec esi
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001ed92
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x14001ed92
lea rdx, [rbp + 0x360]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14001ed92
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
jns 0x14001ed90
mov rax, qword [rbx + 0x10]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14001ed88
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rax, qword [rbx + 0x10]
mov qword [rdi + rax], r15
dec esi
inc r14d
add rdi, 8
test esi, esi
jg 0x14001ec30
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
mov r14, qword [rsp + 0x6a8]
sar esi, 0x1f
mov eax, esi
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140020e70
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret