Function at 0x14000d850
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 [0x140070040]
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 0x14000dc35
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 0x14000d903
nop dword [rax]
mov eax, ecx
cmp qword [rbx + rax*8 + 8], r15
je 0x14000d979
inc ecx
cmp ecx, edx
jb 0x14000d8f0
inc edx
mov ecx, dword [rsi + 8]
cmp edx, ecx
jbe 0x14000d96d
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.14005248c
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 0x14000d95e
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 0x14000d940
mov rcx, r8
call fcn.1400527d8
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 0x14000d9a0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test al, al
je 0x14000d9a0
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000d985
nop dword [rax + rax]
lea rdx, [rdi + 0x68]
mov rcx, rsi
call fcn.14000c300
mov rsi, qword [rdi + 0x158]
test rsi, rsi
cmove rsi, rbp
lea rdx, [rdi + 0xa0]
lea rcx, [rdi + 0x160]
call fcn.14000c300
mov rax, qword [rdi + 0x170]
cmp rax, rsi
cmova rsi, rax
lea rdx, [rdi + 0xd8]
lea rcx, [rdi + 0x178]
call fcn.14000c300
mov rax, qword [rdi + 0x188]
cmp rax, rsi
cmova rsi, rax
lea rcx, [rdi + 0x160]
lea rdx, [rdi + 0x110]
call fcn.14000c300
mov rax, qword [rdi + 0x170]
cmp rax, rsi
cmova rsi, rax
lea rcx, [rdi + 0x178]
lea rdx, [rdi + 0x110]
call fcn.14000c300
mov rax, qword [rdi + 0x188]
cmp rax, rsi
cmova rsi, rax
mov ecx, 0x11e1a300
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x14000da66
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 0x14000da50
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 0x14000daec
test r8, r8
jne 0x14000daec
test r9, r9
jne 0x14000daec
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 0x14000db94
cmp dword [rsp + 0x58], ebp
jne 0x14000db0c
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.140009080
mov ebp, ebx
test ebx, ebx
jle 0x14000db94
mov rdx, qword [rdi + 0x148]
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000db94
lea rcx, [rdi + 0x58]
call fcn.14000d010
test al, al
jne 0x14000db8c
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.14000b730
movzx r15d, byte [rsp + 0x38]
mov r13, qword [rsp + 0x30]
lea ebp, [rbx - 1]
test r15b, r15b
jne 0x14000dba5
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r15b, 1
mov byte [rsp + 0x38], r15b
test ebp, ebp
jle 0x14000dc0b
lea rdx, [rdi + 0x110]
lea rcx, [rdi + 0x178]
mov r8, r14
call fcn.14000c3e0
lea rdx, [rdi + 0x110]
lea rcx, [rdi + 0x160]
mov r8, r14
call fcn.14000c3e0
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.14000c3e0
sub rbp, 0x38
sub rsi, 0x18
sub ebx, 1
jns 0x14000dbf0
mov rbx, qword [rdi + 0x190]
test rbx, rbx
je 0x14000dc35
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 0x14000dc20
test r15b, r15b
je 0x14000dc43
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140052030
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret