Function at 0x14000af2c
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 dil, r13b
mov byte [rbp - 0x28], r13b
cmp byte [rbx + 0x198], 0
jne 0x14000b28d
lea rsi, [rbx + 0x148]
mov rcx, rsi
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 0x14000af84
mov r14, qword [rbx + 0x58]
xor ecx, ecx
mov rdi, qword [rsi]
mov edx, dword [rdi]
test edx, edx
je 0x14000afb5
cmp qword [rdi + rcx*8 + 8], r14
je 0x14000b01c
add ecx, r13d
cmp ecx, edx
jb 0x14000afa7
inc edx
mov ecx, dword [rsi + 8]
cmp edx, ecx
jbe 0x14000b00f
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.140057348
mov rdi, rax
mov rcx, qword [rsi]
mov edx, dword [rcx]
mov dword [rax], edx
xor edx, edx
mov rax, qword [rsi]
cmp dword [rax], edx
jbe 0x14000b000
mov rax, qword [rax + rdx*8 + 8]
mov qword [rdi + rdx*8 + 8], rax
add edx, r13d
mov rax, qword [rsi]
cmp edx, dword [rax]
jb 0x14000afec
mov rcx, rax
call fcn.140057694
mov qword [rsi], rdi
mov dword [rsi + 8], r12d
mov eax, dword [rdi]
mov qword [rdi + rax*8 + 8], r14
mov rax, qword [rsi]
add dword [rax], r13d
xor r14d, r14d
mov rdi, qword [rbx + 0x190]
jmp 0x14000b039
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14000b03e
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x14000b028
lea rdi, [rbx + 0x158]
mov r12, rsi
lea r13, [rbx + 0x68]
mov esi, 3
mov rdx, r13
mov rcx, r12
call fcn.140009ea0
cmp qword [rdi], r14
cmova r14, qword [rdi]
add r13, 0x38
add r12, 0x18
lea rdi, [rdi + 0x18]
sub rsi, 1
jne 0x14000b051
lea rdi, [rbx + 0x110]
lea rcx, [rbx + 0x160]
mov rdx, rdi
call fcn.140009ea0
mov rax, qword [rbx + 0x170]
cmp rax, r14
cmova r14, rax
lea r12, [rbx + 0x178]
mov rdx, rdi
mov rcx, r12
call fcn.140009ea0
mov r13, qword [rbx + 0x188]
cmp r13, r14
cmovbe r13, r14
mov ecx, 0x11e1a300
mov rdi, qword [rbx + 0x190]
lea rsi, [rbx + 0x148]
jmp 0x14000b0df
mov rax, qword [rdi]
mov edx, ecx
mov rcx, rdi
call qword [rax + 0x18]
mov ecx, eax
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x14000b0ce
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], dil
mov r9, qword [r12]
mov r8, qword [rbx + 0x160]
mov rdx, qword [rsi]
test rdx, rdx
jne 0x14000b15c
test r8, r8
jne 0x14000b15c
test r9, r9
jne 0x14000b15c
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, [rdi + 1]
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r14d, r14d
jmp 0x14000b1fc
cmp dword [rbp + 0x40], 0
jne 0x14000b17a
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.1400080a8
test r14d, r14d
jle 0x14000b1fc
mov rdx, qword [rsi]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000b1fc
lea rcx, [rbx + 0x58]
call fcn.14000a8d4
test al, al
jne 0x14000b1f4
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.140009588
mov dil, byte [rbp - 0x28]
mov r15, qword [rbp - 0x30]
dec r14d
test dil, dil
jne 0x14000b210
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
mov dil, al
mov byte [rbp - 0x28], al
mov r13, qword [rbp + 0x50]
test r14d, r14d
jle 0x14000b26f
mov r8, r13
lea rsi, [rbx + 0x110]
mov rdx, rsi
mov rcx, r12
call fcn.140009f60
mov r8, r13
mov rdx, rsi
lea rcx, [rbx + 0x160]
call fcn.140009f60
mov esi, 2
lea r14, [rbx + 0xd8]
lea r15d, [rsi - 1]
mov r8, r13
mov rdx, r14
mov rcx, r12
call fcn.140009f60
sub r14, 0x38
sub r12, 0x18
sub esi, r15d
jns 0x14000b250
mov r15, qword [rbp - 0x30]
mov rbx, qword [rbx + 0x190]
jmp 0x14000b288
mov rax, qword [rbx]
mov rdx, r13
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000b278
test dil, dil
je 0x14000b29b
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