Function at 0x14019bf60
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
lea r15, [rcx + 0x30]
mov qword [rbp - 0x30], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r13d, 1
mov sil, r13b
mov byte [rbp - 0x28], r13b
cmp byte [rbx + 0x198], 0
jne 0x14019c2c1
lea rdi, [rbx + 0x148]
mov rcx, rdi
lea edx, [r13 + 2]
mov rax, qword [rcx]
and dword [rax], 0
or qword [rcx + 0x10], 0xffffffffffffffff
lea rcx, [rcx + 0x18]
sub rdx, r13
jne 0x14019bfb8
mov r14, qword [rbx + 0x58]
xor ecx, ecx
mov rsi, qword [rdi]
mov edx, dword [rsi]
test edx, edx
je 0x14019bfe9
cmp qword [rsi + rcx*8 + 8], r14
je 0x14019c050
add ecx, r13d
cmp ecx, edx
jb 0x14019bfdb
inc edx
mov ecx, dword [rdi + 8]
cmp edx, ecx
jbe 0x14019c043
mov eax, ecx
shr eax, 1
add ecx, eax
cmp ecx, edx
cmovae edx, ecx
mov r12d, edx
lea rcx, [rdx*8 + 8]
call fcn.140cba3f8
mov rsi, rax
mov rcx, qword [rdi]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov rax, qword [rdi]
cmp dword [rax], edx
jbe 0x14019c034
mov rax, qword [rax + rdx*8 + 8]
mov qword [rsi + rdx*8 + 8], rax
add edx, r13d
mov rax, qword [rdi]
cmp edx, dword [rax]
jb 0x14019c020
mov rcx, rax
call fcn.14012a618
mov qword [rdi], rsi
mov dword [rdi + 8], r12d
mov eax, dword [rsi]
mov qword [rsi + rax*8 + 8], r14
mov rax, qword [rdi]
add dword [rax], r13d
xor r14d, r14d
mov rsi, qword [rbx + 0x190]
jmp 0x14019c06d
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14019c072
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x14019c05c
lea rsi, [rbx + 0x158]
lea r12, [rbx + 0x68]
mov r13, rdi
mov edi, 3
mov rdx, r12
mov rcx, r13
call fcn.14019aecc
cmp qword [rsi], r14
cmova r14, qword [rsi]
add r13, 0x18
add r12, 0x38
lea rsi, [rsi + 0x18]
sub rdi, 1
jne 0x14019c085
lea rcx, [rbx + 0x160]
lea rdi, [rbx + 0x110]
mov rdx, rdi
call fcn.14019aecc
mov rax, qword [rbx + 0x170]
cmp rax, r14
cmova r14, rax
lea r12, [rbx + 0x178]
mov rdx, rdi
mov rcx, r12
call fcn.14019aecc
mov r13, qword [rbx + 0x188]
cmp r13, r14
cmovbe r13, r14
mov ecx, 0x11e1a300
mov rsi, qword [rbx + 0x190]
lea rdi, [rbx + 0x148]
jmp 0x14019c113
mov rax, qword [rsi]
mov edx, ecx
mov rcx, rsi
call qword [rax + 0x18]
mov ecx, eax
mov rsi, qword [rsi + 8]
test rsi, rsi
jne 0x14019c102
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rbp + 0x40], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rbp + 0x44], ecx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbp - 0x28], sil
mov r9, qword [r12]
mov r8, qword [rbx + 0x160]
mov rdx, qword [rdi]
test rdx, rdx
jne 0x14019c190
test r8, r8
jne 0x14019c190
test r9, r9
jne 0x14019c190
mov eax, 0x10624dd3
imul dword [rbp + 0x44]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rbp + 0x40], 0x3e8
add ecx, eax
lea eax, [rsi + 1]
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r14d, r14d
jmp 0x14019c230
cmp dword [rbp + 0x40], 0
jne 0x14019c1ae
mov ecx, dword [rbp + 0x44]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rbp + 0x44], ecx
lea ecx, [r13 + 1]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov r14d, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rbp - 0x20]
call fcn.14019925c
test r14d, r14d
jle 0x14019c230
mov rdx, qword [rdi]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14019c230
lea rcx, [rbx + 0x58]
call fcn.14019b904
test al, al
jne 0x14019c228
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
mov byte [rbp - 0x28], al
mov byte [rbx + 0x198], al
mov rcx, qword [rbx + 0x28]
lock add dword [rcx + 0x30], eax
lea rdx, [rbx + 0x1a8]
call fcn.14019a5c4
mov sil, byte [rbp - 0x28]
mov r15, qword [rbp - 0x30]
dec r14d
test sil, sil
jne 0x14019c244
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
mov sil, al
mov byte [rbp - 0x28], al
mov r13, qword [rbp + 0x50]
test r14d, r14d
jle 0x14019c2a3
mov r8, r13
lea rdi, [rbx + 0x110]
mov rdx, rdi
mov rcx, r12
call fcn.14019af8c
mov r8, r13
mov rdx, rdi
lea rcx, [rbx + 0x160]
call fcn.14019af8c
mov edi, 2
lea r14, [rbx + 0xd8]
lea r15d, [rdi - 1]
mov r8, r13
mov rdx, r14
mov rcx, r12
call fcn.14019af8c
sub r12, 0x18
sub r14, 0x38
sub edi, r15d
jns 0x14019c284
mov r15, qword [rbp - 0x30]
mov rbx, qword [rbx + 0x190]
jmp 0x14019c2bc
mov rax, qword [rbx]
mov rdx, r13
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14019c2ac
test sil, sil
je 0x14019c2cf
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret