Function at 0x14009af04
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
movsxd rbp, dword [rsp + 0xb8]
xor ebx, ebx
cmp dword [rcx], ebx
mov r14, r9
mov r12, r8
mov r13, rdx
cmove ebx, dword [rsp + 0xc0]
mov rdi, rcx
test ebp, ebp
jne 0x14009af5a
lea edx, [rbp + 1]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SleepEx]
or eax, 0xffffffff
jmp 0x14009b1b9
mov r15, qword [rsp + 0xb0]
mov r9d, ebx
mov dword [rsp + 0x20], 1
xor r8d, r8d
mov rdx, r15
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
movsxd rsi, eax
cmp esi, 0xc0
jne 0x14009af8f
cmp dword [rdi + 0x4f0], 0
je 0x14009af62
lea rcx, [rsp + 0x90]
call fcn.1400a2d68
cmp esi, 0xc0
je 0x14009b067
test esi, esi
js 0x14009b067
cmp esi, ebp
jge 0x14009b067
lea eax, [rsi + 0x40]
movsxd rdx, eax
mov rbx, qword [r15 + rdx*8]
test rbx, rbx
je 0x14009b067
mov rax, qword [r15 + rsi*8]
mov qword [rdi + 0x900], rax
mov qword [rdi + 0x908], rbx
and qword [r15 + rdx*8], 0
and qword [r15 + rsi*8], 0
mov rax, qword [rbx + 8]
test rax, rax
je 0x14009b057
mov r9, qword [rbx + 0x10]
xor r8d, r8d
mov rdx, qword [rdi + 0x900]
mov rcx, rdi
call rax
test eax, eax
jne 0x14009b057
cmp qword [rdi + 0x900], 0
je 0x14009b03f
mov rcx, rbx
call fcn.14009a6f8
test eax, eax
je 0x14009b03f
mov r8, qword [rdi + 0x900]
lea rdx, str.__ILibChain_WindowsSelect__p___REMOVED_
mov ecx, 1
call fcn.1400a35b0
mov rcx, qword [rbx]
call fcn.1400a1874
jmp 0x14009b057
mov r8, qword [rdi + 0x900]
lea rdx, str.__ILibChain_WindowsSelect__p___________p_
mov ecx, 1
call fcn.1400a35b0
and qword [rdi + 0x900], 0
and qword [rdi + 0x908], 0
cmp esi, 0x102
jne 0x14009b11c
test rbp, rbp
jle 0x14009b18a
mov rbx, qword [rsp + 0x90]
lea r14, [r15 + 0x200]
mov r13d, dword [rsp + 0x94]
mov r12, rbp
mov rcx, qword [r14]
test rcx, rcx
je 0x14009b0fa
mov eax, dword [rcx + 0x18]
test eax, eax
jne 0x14009b0aa
cmp dword [rcx + 0x1c], eax
je 0x14009b0fa
cmp ebx, eax
jl 0x14009b0c0
jne 0x14009b0b6
cmp r13d, dword [rcx + 0x1c]
jl 0x14009b0c0
cmp eax, ebx
jne 0x14009b0fa
cmp dword [rcx + 0x1c], r13d
jg 0x14009b0fa
mov rax, qword [rcx + 8]
test rax, rax
je 0x14009b0e6
mov r9, qword [rcx + 0x10]
mov r8d, 2
mov rdx, qword [r14 - 0x200]
mov rcx, rdi
call rax
test eax, eax
jne 0x14009b0ee
mov rcx, qword [r14]
mov rcx, qword [rcx]
call fcn.1400a1874
and qword [r14 - 0x200], 0
and qword [r14], 0
add r14, 8
sub r12, 1
jne 0x14009b096
mov r14, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x98]
cmp esi, 0xffffffff
jne 0x14009b18a
test rbp, rbp
jle 0x14009b18a
lea rbx, [r15 + 0x200]
cmp qword [rbx], 0
je 0x14009b180
mov rcx, qword [rbx - 0x200]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14009b180
mov r9, qword [rbx]
mov rax, qword [r9 + 8]
test rax, rax
je 0x14009b169
mov r9, qword [r9 + 0x10]
mov r8d, 1
mov rdx, qword [rbx - 0x200]
mov rcx, rdi
call rax
mov rcx, qword [rbx]
mov rcx, qword [rcx]
call fcn.1400a1874
and qword [rbx - 0x200], 0
and qword [rbx], 0
add rbx, 8
sub rbp, 1
jne 0x14009b12d
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
and dword [rsp + 0x34], 0
mov r9, r14
mov r8, r12
mov qword [rsp + 0x20], rax
mov rdx, r13
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
and dword [rdi + 0x4f0], 0
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret