Function at 0x1400a0a6c
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7a8]
sub rsp, 0x8a8
mov rax, qword [0x14030ef00]
xor rax, rsp
mov qword [rbp + 0x790], rax
movsxd r15, dword [rbp + 0x818]
xor esi, esi
cmp dword [rcx], esi
mov r12, rdx
mov r14, qword [rbp + 0x810]
mov r13, rcx
cmove esi, dword [rbp + 0x820]
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rcx
test r15d, r15d
jne 0x1400a0ae6
lea edx, [r15 + 1]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SleepEx]
or r12d, 0xffffffff
jmp 0x1400a1029
mov edi, 1
mov r9d, esi
mov dword [rsp + 0x20], edi
xor r8d, r8d
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
movsxd rbx, eax
cmp ebx, 0xc0
jne 0x1400a0b16
cmp dword [r13 + 0x510], 0
je 0x1400a0aeb
lea rcx, [rsp + 0x40]
call fcn.1400a9bb0
cmp ebx, 0xc0
je 0x1400a0bed
test ebx, ebx
js 0x1400a0bed
cmp ebx, r15d
jge 0x1400a0bed
mov rsi, qword [r14 + rbx*8 + 0x200]
test rsi, rsi
je 0x1400a0bed
mov rax, qword [r14 + rbx*8]
mov qword [r13 + 0x920], rax
mov qword [r13 + 0x928], rsi
and qword [r14 + rbx*8 + 0x200], 0
and qword [r14 + rbx*8], 0
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400a0bdd
mov r9, qword [rsi + 0x10]
xor r8d, r8d
mov rdx, qword [r13 + 0x920]
mov rcx, r13
call rax
test eax, eax
jne 0x1400a0bdd
cmp qword [r13 + 0x920], 0
je 0x1400a0bc8
mov rcx, rsi
call fcn.14009fd50
test eax, eax
je 0x1400a0bc8
mov r8, qword [r13 + 0x920]
lea rdx, str.__ILibChain_WindowsSelect__p___REMOVED_
mov ecx, edi
call fcn.1400aa50c
mov rcx, qword [rsi]
and qword [rsi + 0x10], 0
call fcn.1400a84d8
jmp 0x1400a0bdd
mov r8, qword [r13 + 0x920]
lea rdx, str.__ILibChain_WindowsSelect__p___________p_
mov ecx, edi
call fcn.1400aa50c
and qword [r13 + 0x920], 0
and qword [r13 + 0x928], 0
mov rsi, r15
cmp ebx, 0x102
jne 0x1400a0c72
test r15d, r15d
jle 0x1400a0ce0
lea rbx, [r14 + 0x200]
mov r14d, dword [rsp + 0x44]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400a0c67
mov edx, dword [rcx + 0x18]
test edx, edx
jne 0x1400a0c21
cmp dword [rcx + 0x1c], edx
je 0x1400a0c67
cmp dword [rsp + 0x40], edx
jl 0x1400a0c2d
jne 0x1400a0c67
cmp r14d, dword [rcx + 0x1c]
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400a0c53
mov r9, qword [rcx + 0x10]
mov r8d, 2
mov rdx, qword [rbx - 0x200]
mov rcx, r13
call rax
test eax, eax
jne 0x1400a0c5b
mov rcx, qword [rbx]
mov rcx, qword [rcx]
call fcn.1400a84d8
and qword [rbx - 0x200], 0
and qword [rbx], 0
add rbx, 8
sub rsi, rdi
jne 0x1400a0c0d
jmp 0x1400a0ce0
or r15d, 0xffffffff
cmp ebx, r15d
jne 0x1400a0ce0
test rsi, rsi
jle 0x1400a0ce0
lea rbx, [r14 + 0x200]
cmp qword [rbx], 0
je 0x1400a0cd7
mov rcx, qword [rbx - 0x200]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, r15d
jne 0x1400a0cd7
mov r9, qword [rbx]
mov rax, qword [r9 + 8]
test rax, rax
je 0x1400a0cc0
mov r9, qword [r9 + 0x10]
mov r8d, edi
mov rdx, qword [rbx - 0x200]
mov rcx, r13
call rax
mov rcx, qword [rbx]
mov rcx, qword [rcx]
call fcn.1400a84d8
and qword [rbx - 0x200], 0
and qword [rbx], 0
add rbx, 8
sub rsi, rdi
jne 0x1400a0c87
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9, qword [rsp + 0x48]
xor esi, esi
mov r8, rbx
mov qword [rsp + 0x30], rsi
mov rdx, r12
mov qword [rsp + 0x20], rax
lea ecx, [rsi + 0x40]
call qword [sym.imp.WS2_32.dll_select]
mov r12d, eax
cmp eax, 0xffffffff
jne 0x1400a1022
xor edx, edx
lea rcx, [rbp + 0x590]
mov r8d, 0x200
mov r15d, esi
call fcn.140211420
mov r11, qword [rsp + 0x50]
mov r14d, esi
mov dword [rsp + 0x60], esi
mov dword [rbp + 0x380], esi
mov ecx, dword [r11]
test ecx, ecx
jle 0x1400a0db6
lea rsi, [rbp + 0x590]
lea rbx, [r11 + 8]
mov rax, qword [rbx]
lea r9, [rbp + 0x380]
mov qword [rbp + 0x178], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x30]
mov dword [rbp + 0x170], edi
lea rdx, [rbp + 0x170]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400a0d9b
mov rax, qword [rbx]
add r15d, edi
mov qword [rsi], rax
add rsi, 8
mov r11, qword [rsp + 0x50]
add r14d, edi
add rbx, 8
mov ecx, dword [r11]
cmp r14d, ecx
jl 0x1400a0d51
mov rbx, qword [rsp + 0x38]
xor esi, esi
movsxd r10, r15d
test r15d, r15d
jle 0x1400a0e17
mov r9, rsi
mov r8d, esi
test ecx, ecx
je 0x1400a0e0f
mov rdx, qword [rbp + r9*8 + 0x590]
mov eax, r8d
cmp qword [r11 + rax*8 + 8], rdx
je 0x1400a0de4
add r8d, edi
cmp r8d, ecx
jb 0x1400a0dd0
jmp 0x1400a0e0f
lea eax, [rcx - 1]
cmp r8d, eax
jae 0x1400a0e0a
mov ecx, r8d
lea edx, [r8 + 1]
mov rax, qword [r11 + rdx*8 + 8]
mov r8d, edx
mov qword [r11 + rcx*8 + 8], rax
mov ecx, dword [r11]
lea eax, [rcx - 1]
cmp edx, eax
jb 0x1400a0dec
dec ecx
mov dword [r11], ecx
add r9, rdi
cmp r9, r10
jl 0x1400a0dc1
mov ecx, dword [rbx]
mov r15d, esi
mov dword [rbp + 0x170], esi
mov r14d, esi
test ecx, ecx
jle 0x1400a0e9b
mov r13, qword [rsp + 0x38]
lea rsi, [rbp + 0x590]
add rbx, 8
mov rax, qword [rbx]
lea r9, [rbp + 0x380]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x60], edi
lea rdx, [rbp + 0x170]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400a0e7f
mov rax, qword [rbx]
add r15d, edi
mov qword [rsi], rax
add rsi, 8
mov ecx, dword [r13]
add r14d, edi
add rbx, 8
cmp r14d, ecx
jl 0x1400a0e39
mov r13, qword [rsp + 0x58]
xor esi, esi
mov rbx, qword [rsp + 0x38]
movsxd r10, r15d
test r15d, r15d
jle 0x1400a0efa
mov r9, rsi
mov r8d, esi
test ecx, ecx
je 0x1400a0ef2
mov rdx, qword [rbp + r9*8 + 0x590]
mov eax, r8d
cmp qword [rbx + rax*8 + 8], rdx
je 0x1400a0ec9
add r8d, edi
cmp r8d, ecx
jb 0x1400a0eb5
jmp 0x1400a0ef2
lea eax, [rcx - 1]
cmp r8d, eax
jae 0x1400a0eee
mov ecx, r8d
lea edx, [r8 + 1]
mov rax, qword [rbx + rdx*8 + 8]
mov r8d, edx
mov qword [rbx + rcx*8 + 8], rax
mov ecx, dword [rbx]
lea eax, [rcx - 1]
cmp edx, eax
jb 0x1400a0ed1
dec ecx
mov dword [rbx], ecx
add r9, rdi
cmp r9, r10
jl 0x1400a0ea6
mov r11, qword [rsp + 0x48]
mov r14d, esi
mov dword [rbp + 0x170], esi
mov r15d, esi
mov dword [rsp + 0x60], esi
mov eax, dword [r11]
test eax, eax
jle 0x1400a0f81
lea rsi, [rbp + 0x590]
lea rbx, [r11 + 8]
mov rax, qword [rbx]
lea r9, [rbp + 0x380]
mov qword [rbp + 0x388], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x30]
mov dword [rbp + 0x380], edi
lea rdx, [rbp + 0x170]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400a0f6b
mov rax, qword [rbx]
add r14d, edi
mov qword [rsi], rax
add rsi, 8
mov r11, qword [rsp + 0x48]
add r15d, edi
add rbx, 8
mov eax, dword [r11]
cmp r15d, eax
jl 0x1400a0f21
xor esi, esi
movsxd r10, r14d
test r14d, r14d
jle 0x1400a0feb
mov r9, rsi
mov ecx, eax
mov r8d, esi
mov eax, ecx
test ecx, ecx
je 0x1400a0fe1
mov rdx, qword [rbp + r9*8 + 0x590]
mov eax, r8d
cmp qword [r11 + rax*8 + 8], rdx
je 0x1400a0fb5
add r8d, edi
cmp r8d, ecx
jb 0x1400a0f9f
mov eax, ecx
jmp 0x1400a0fe1
lea eax, [rcx - 1]
cmp r8d, eax
jae 0x1400a0fdb
mov ecx, r8d
lea edx, [r8 + 1]
mov rax, qword [r11 + rdx*8 + 8]
mov r8d, edx
mov qword [r11 + rcx*8 + 8], rax
mov ecx, dword [r11]
lea eax, [rcx - 1]
cmp edx, eax
jb 0x1400a0fbd
lea eax, [rcx - 1]
mov dword [r11], eax
add r9, rdi
mov ecx, eax
cmp r9, r10
jl 0x1400a0f8e
mov rdx, qword [rsp + 0x50]
cmp dword [rdx], esi
ja 0x1400a1002
mov r8, qword [rsp + 0x38]
cmp dword [r8], esi
ja 0x1400a1002
test eax, eax
je 0x1400a1022
mov r8, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9, r11
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
mov r12d, eax
mov dword [r13 + 0x510], esi
mov eax, r12d
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1401dbdb0
add rsp, 0x8a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret