Function at 0x18000ebf0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x18008b0c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r8
mov rdi, rcx
lea r13, [rcx + 0x30]
mov qword [rsp + 0x30], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r15b, 1
mov byte [rsp + 0x38], r15b
cmp byte [rdi + 0x198], 0
jne 0x18000efd5
lea rsi, [rdi + 0x148]
mov rax, qword [rsi]
xor ebp, ebp
mov dword [rax], ebp
mov qword [rsi + 0x10], 0xffffffffffffffff
mov rax, qword [rdi + 0x160]
mov dword [rax], ebp
mov qword [rdi + 0x170], 0xffffffffffffffff
mov rax, qword [r13 + 0x148]
mov dword [rax], ebp
mov qword [r13 + 0x158], 0xffffffffffffffff
mov r15, qword [rdi + 0x58]
mov ecx, ebp
mov rbx, qword [rsi]
mov edx, dword [rbx]
test edx, edx
je 0x18000eca3
nop dword [rax]
mov eax, ecx
cmp qword [rbx + rax*8 + 8], r15
je 0x18000ed19
inc ecx
cmp ecx, edx
jb 0x18000ec90
inc edx
mov ecx, dword [rsi + 8]
cmp edx, ecx
jbe 0x18000ed0d
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.1800624dc
mov rbx, rax
mov rcx, qword [rsi]
mov edx, dword [rcx]
mov dword [rax], edx
mov edx, ebp
mov r8, qword [rsi]
cmp dword [r8], edx
jbe 0x18000ecfe
nop dword [rax + rax]
mov eax, edx
lea rcx, [rax*8]
mov rax, qword [rcx + r8 + 8]
mov qword [rcx + rbx + 8], rax
inc edx
mov r8, qword [rsi]
cmp edx, dword [r8]
jb 0x18000ece0
mov rcx, r8
call fcn.1800625e8
mov qword [rsi], rbx
mov dword [rsi + 8], r12d
mov eax, dword [rbx]
mov qword [rbx + rax*8 + 8], r15
mov rax, qword [rsi]
inc dword [rax]
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x18000ed40
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x18000ed40
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x18000ed25
nop dword [rax + rax]
lea rdx, [rdi + 0x68]
mov rcx, rsi
call fcn.18000d6a0
mov rsi, qword [rdi + 0x158]
test rsi, rsi
cmove rsi, rbp
lea rdx, [rdi + 0xa0]
lea rcx, [rdi + 0x160]
call fcn.18000d6a0
mov rax, qword [rdi + 0x170]
cmp rax, rsi
cmova rsi, rax
lea rdx, [rdi + 0xd8]
lea rcx, [rdi + 0x178]
call fcn.18000d6a0
mov rax, qword [rdi + 0x188]
cmp rax, rsi
cmova rsi, rax
lea rcx, [rdi + 0x160]
lea rdx, [rdi + 0x110]
call fcn.18000d6a0
mov rax, qword [rdi + 0x170]
cmp rax, rsi
cmova rsi, rax
lea rcx, [rdi + 0x178]
lea rdx, [rdi + 0x110]
call fcn.18000d6a0
mov rax, qword [rdi + 0x188]
cmp rax, rsi
cmova rsi, rax
mov ecx, 0x11e1a300
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x18000ee06
nop
mov rax, qword [rbx]
mov edx, ecx
mov rcx, rbx
call qword [rax + 0x18]
mov ecx, eax
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x18000edf0
mov eax, 0x431bde83
imul ecx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [rsp + 0x58], edx
imul eax, edx, 0xf4240
sub ecx, eax
mov dword [rsp + 0x5c], ecx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor r15b, r15b
mov byte [rsp + 0x38], r15b
mov r9, qword [rdi + 0x178]
mov r8, qword [rdi + 0x160]
mov rdx, qword [rdi + 0x148]
test rdx, rdx
jne 0x18000ee8c
test r8, r8
jne 0x18000ee8c
test r9, r9
jne 0x18000ee8c
mov eax, 0x10624dd3
imul dword [rsp + 0x5c]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul eax, dword [rsp + 0x58], 0x3e8
add ecx, eax
mov eax, 1
cmove ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000ef34
cmp dword [rsp + 0x58], ebp
jne 0x18000eeac
mov ecx, dword [rsp + 0x5c]
lea eax, [rcx - 1]
mov r10d, 0x3e8
cmp eax, 0x3e6
cmovbe ecx, r10d
mov dword [rsp + 0x5c], ecx
lea ecx, [rsi + 1]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [rsp + 0x40]
call fcn.18000a460
mov ebp, ebx
test ebx, ebx
jle 0x18000ef34
mov rdx, qword [rdi + 0x148]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x18000ef34
lea rcx, [rdi + 0x58]
call fcn.18000e3b0
test al, al
jne 0x18000ef2c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x38], 1
mov byte [rdi + 0x198], 1
mov rcx, qword [rdi + 0x28]
lock inc dword [rcx + 0x30]
lea rdx, [rdi + 0x1a8]
call fcn.18000cad0
movzx r15d, byte [rsp + 0x38]
mov r13, qword [rsp + 0x30]
lea ebp, [rbx - 1]
test r15b, r15b
jne 0x18000ef45
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r15b, 1
mov byte [rsp + 0x38], r15b
test ebp, ebp
jle 0x18000efab
lea rdx, [rdi + 0x110]
lea rcx, [rdi + 0x178]
mov r8, r14
call fcn.18000d780
lea rdx, [rdi + 0x110]
lea rcx, [rdi + 0x160]
mov r8, r14
call fcn.18000d780
mov ebx, 2
lea rsi, [rdi + 0x178]
lea rbp, [rdi + 0xd8]
nop dword [rax + rax]
mov r8, r14
mov rdx, rbp
mov rcx, rsi
call fcn.18000d780
sub rbp, 0x38
sub rsi, 0x18
sub ebx, 1
jns 0x18000ef90
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x18000efd5
nop word [rax + rax]
mov rax, qword [rbx]
mov rdx, r14
mov rcx, rbx
call qword [rax + 0x20]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x18000efc0
test r15b, r15b
je 0x18000efe3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180061d10
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret