Function at 0x14000b02c
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 0x14000b38d
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 0x14000b084
mov r14, qword [rbx + 0x58]
xor ecx, ecx
mov rdi, qword [rsi]
mov edx, dword [rdi]
test edx, edx
je 0x14000b0b5
cmp qword [rdi + rcx*8 + 8], r14
je 0x14000b11c
add ecx, r13d
cmp ecx, edx
jb 0x14000b0a7
inc edx
mov ecx, dword [rsi + 8]
cmp edx, ecx
jbe 0x14000b10f
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.1400598e8
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 0x14000b100
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 0x14000b0ec
mov rcx, rax
call fcn.140059c34
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 0x14000b139
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14000b13e
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x14000b128
lea rdi, [rbx + 0x158]
mov r12, rsi
lea r13, [rbx + 0x68]
mov esi, 3
mov rdx, r13
mov rcx, r12
call fcn.140009fa0
cmp qword [rdi], r14
cmova r14, qword [rdi]
add r13, 0x38
add r12, 0x18
lea rdi, [rdi + 0x18]
sub rsi, 1
jne 0x14000b151
lea rdi, [rbx + 0x110]
lea rcx, [rbx + 0x160]
mov rdx, rdi
call fcn.140009fa0
mov rax, qword [rbx + 0x170]
cmp rax, r14
cmova r14, rax
lea r12, [rbx + 0x178]
mov rdx, rdi
mov rcx, r12
call fcn.140009fa0
mov r13, qword [rbx + 0x188]
cmp r13, r14
cmovbe r13, r14
mov ecx, 0x11e1a300
mov rdi, qword [rbx + 0x190]
lea rsi, [rbx + 0x148]
jmp 0x14000b1df
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 0x14000b1ce
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 0x14000b25c
test r8, r8
jne 0x14000b25c
test r9, r9
jne 0x14000b25c
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 0x14000b2fc
cmp dword [rbp + 0x40], 0
jne 0x14000b27a
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.1400081b4
test r14d, r14d
jle 0x14000b2fc
mov rdx, qword [rsi]
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000b2fc
lea rcx, [rbx + 0x58]
call fcn.14000a9d4
test al, al
jne 0x14000b2f4
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.140009694
mov dil, byte [rbp - 0x28]
mov r15, qword [rbp - 0x30]
dec r14d
test dil, dil
jne 0x14000b310
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 0x14000b36f
mov r8, r13
lea rsi, [rbx + 0x110]
mov rdx, rsi
mov rcx, r12
call fcn.14000a060
mov r8, r13
mov rdx, rsi
lea rcx, [rbx + 0x160]
call fcn.14000a060
mov esi, 2
lea r14, [rbx + 0xd8]
lea r15d, [rsi - 1]
mov r8, r13
mov rdx, r14
mov rcx, r12
call fcn.14000a060
sub r14, 0x38
sub r12, 0x18
sub esi, r15d
jns 0x14000b350
mov r15, qword [rbp - 0x30]
mov rbx, qword [rbx + 0x190]
jmp 0x14000b388
mov rax, qword [rbx]
mov rdx, r13
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000b378
test dil, dil
je 0x14000b39b
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