Function at 0x1400a02e4
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b8]
sub rsp, 0x8b8
mov rax, qword [0x140301ed0]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
movsxd r14, dword [rbp + 0x828]
xor ebx, ebx
cmp dword [rcx], ebx
mov r13, r9
mov r12, qword [rbp + 0x820]
mov r15, rcx
cmove ebx, dword [rbp + 0x830]
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x68], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], r12
test r14d, r14d
jne 0x1400a0362
lea edx, [r14 + 1]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SleepEx]
or ecx, 0xffffffff
jmp 0x1400a089d
mov edi, 1
mov r9d, ebx
mov dword [rsp + 0x20], edi
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
movsxd rsi, eax
cmp esi, 0xc0
jne 0x1400a0392
cmp dword [r15 + 0x510], 0
je 0x1400a0367
lea rcx, [rsp + 0x38]
call fcn.1400a87dc
cmp esi, 0xc0
je 0x1400a0467
test esi, esi
js 0x1400a0467
cmp esi, r14d
jge 0x1400a0467
lea eax, [rsi + 0x40]
movsxd rdx, eax
mov rbx, qword [r12 + rdx*8]
test rbx, rbx
je 0x1400a0467
mov rax, qword [r12 + rsi*8]
mov qword [r15 + 0x920], rax
mov qword [r15 + 0x928], rbx
and qword [r12 + rdx*8], 0
and qword [r12 + rsi*8], 0
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400a0457
mov r9, qword [rbx + 0x10]
xor r8d, r8d
mov rdx, qword [r15 + 0x920]
mov rcx, r15
call rax
test eax, eax
jne 0x1400a0457
cmp qword [r15 + 0x920], 0
je 0x1400a0442
mov rcx, rbx
call fcn.14009f5c0
test eax, eax
je 0x1400a0442
mov r8, qword [r15 + 0x920]
lea rdx, str.__ILibChain_WindowsSelect__p___REMOVED_
mov ecx, edi
call fcn.1400a90a0
mov rcx, qword [rbx]
and qword [rbx + 0x10], 0
call fcn.1400a72d4
jmp 0x1400a0457
mov r8, qword [r15 + 0x920]
lea rdx, str.__ILibChain_WindowsSelect__p___________p_
mov ecx, edi
call fcn.1400a90a0
and qword [r15 + 0x920], 0
and qword [r15 + 0x928], 0
mov qword [rsp + 0x58], r14
mov r15, r14
cmp esi, 0x102
jne 0x1400a051a
test r14d, r14d
jle 0x1400a058f
mov rbx, qword [rsp + 0x38]
lea r14, [r12 + 0x200]
mov r12d, dword [rsp + 0x3c]
mov r13, r15
mov r15, qword [rsp + 0x50]
mov rcx, qword [r14]
test rcx, rcx
je 0x1400a0502
mov eax, dword [rcx + 0x18]
test eax, eax
jne 0x1400a04b2
cmp dword [rcx + 0x1c], eax
je 0x1400a0502
cmp ebx, eax
jl 0x1400a04c8
jne 0x1400a04be
cmp r12d, dword [rcx + 0x1c]
jl 0x1400a04c8
cmp eax, ebx
jne 0x1400a0502
cmp dword [rcx + 0x1c], r12d
jg 0x1400a0502
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400a04ee
mov r9, qword [rcx + 0x10]
mov r8d, 2
mov rdx, qword [r14 - 0x200]
mov rcx, r15
call rax
test eax, eax
jne 0x1400a04f6
mov rcx, qword [r14]
mov rcx, qword [rcx]
call fcn.1400a72d4
and qword [r14 - 0x200], 0
and qword [r14], 0
add r14, 8
sub r13, rdi
jne 0x1400a049e
mov r15, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x48]
cmp esi, 0xffffffff
jne 0x1400a058f
test r15, r15
jle 0x1400a058f
mov r13, qword [rsp + 0x50]
lea rbx, [r12 + 0x200]
cmp qword [rbx], 0
je 0x1400a0581
mov rcx, qword [rbx - 0x200]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x1400a0581
mov r9, qword [rbx]
mov rax, qword [r9 + 8]
test rax, rax
je 0x1400a056a
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.1400a72d4
and qword [rbx - 0x200], 0
and qword [rbx], 0
add rbx, 8
sub r15, rdi
jne 0x1400a0531
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x68]
lea rax, [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov r8, r12
and dword [rsp + 0x30], 0
mov rdx, rbx
and dword [rsp + 0x34], 0
mov r9, r13
mov ecx, 0x40
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x38], eax
mov ecx, eax
cmp eax, 0xffffffff
jne 0x1400a0891
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x200
xor r15d, r15d
call fcn.1401dad10
and dword [rsp + 0x70], r15d
xor esi, esi
and dword [rbp + 0x390], r15d
cmp dword [rbx], esi
jle 0x1400a0669
mov r13, qword [rsp + 0x40]
lea r14, [rbp + 0x5a0]
add rbx, 8
mov rax, qword [rbx]
lea r9, [rbp + 0x390]
mov qword [rbp + 0x188], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x30]
mov dword [rbp + 0x180], edi
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400a0653
mov rax, qword [rbx]
add r15d, edi
mov qword [r14], rax
add r14, 8
add esi, edi
add rbx, 8
cmp esi, dword [r13]
jl 0x1400a0609
mov r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
xor r8d, r8d
movsxd r9, r15d
test r15d, r15d
jle 0x1400a06bb
mov edx, dword [rbx]
xor ecx, ecx
test edx, edx
je 0x1400a06b3
mov r10, qword [rbp + r8*8 + 0x5a0]
cmp qword [rbx + rcx*8 + 8], r10
je 0x1400a0693
add ecx, edi
cmp ecx, edx
jb 0x1400a0684
jmp 0x1400a06b3
lea eax, [rdx - 1]
cmp ecx, eax
jae 0x1400a06b1
lea edx, [rcx + 1]
mov rax, qword [rbx + rdx*8 + 8]
mov qword [rbx + rcx*8 + 8], rax
mov eax, dword [rbx]
sub eax, edi
mov ecx, edx
cmp edx, eax
jb 0x1400a069a
dec dword [rbx]
add r8, rdi
cmp r8, r9
jl 0x1400a0674
xor r14d, r14d
xor esi, esi
and dword [rbp + 0x180], r14d
cmp dword [r12], esi
jle 0x1400a072b
lea r15, [rbp + 0x5a0]
lea rbx, [r12 + 8]
mov rax, qword [rbx]
lea r9, [rbp + 0x390]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x70], edi
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400a071f
mov rax, qword [rbx]
add r14d, edi
mov qword [r15], rax
add r15, 8
add esi, edi
add rbx, 8
cmp esi, dword [r12]
jl 0x1400a06d9
xor r8d, r8d
movsxd r9, r14d
test r14d, r14d
jle 0x1400a0783
mov edx, dword [r12]
xor ecx, ecx
test edx, edx
je 0x1400a077b
mov r10, qword [rbp + r8*8 + 0x5a0]
cmp qword [r12 + rcx*8 + 8], r10
je 0x1400a0757
add ecx, edi
cmp ecx, edx
jb 0x1400a0748
jmp 0x1400a077b
lea eax, [rdx - 1]
cmp ecx, eax
jae 0x1400a0777
lea edx, [rcx + 1]
mov rax, qword [r12 + rdx*8 + 8]
mov qword [r12 + rcx*8 + 8], rax
mov eax, dword [r12]
sub eax, edi
mov ecx, edx
cmp edx, eax
jb 0x1400a075e
dec dword [r12]
add r8, rdi
cmp r8, r9
jl 0x1400a0736
xor r14d, r14d
xor esi, esi
and dword [rbp + 0x180], r14d
and dword [rsp + 0x70], r14d
cmp dword [r13], esi
jle 0x1400a07fb
lea r15, [rbp + 0x5a0]
lea rbx, [r13 + 8]
mov rax, qword [rbx]
lea r9, [rbp + 0x390]
mov qword [rbp + 0x398], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x30]
mov dword [rbp + 0x390], edi
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x1400a07ef
mov rax, qword [rbx]
add r14d, edi
mov qword [r15], rax
add r15, 8
add esi, edi
add rbx, 8
cmp esi, dword [r13]
jl 0x1400a07a5
xor r8d, r8d
movsxd r9, r14d
test r14d, r14d
jle 0x1400a0853
mov edx, dword [r13]
xor ecx, ecx
test edx, edx
je 0x1400a084b
mov r10, qword [rbp + r8*8 + 0x5a0]
cmp qword [r13 + rcx*8 + 8], r10
je 0x1400a0827
add ecx, edi
cmp ecx, edx
jb 0x1400a0818
jmp 0x1400a084b
lea eax, [rdx - 1]
cmp ecx, eax
jae 0x1400a0847
lea edx, [rcx + 1]
mov rax, qword [r13 + rdx*8 + 8]
mov qword [r13 + rcx*8 + 8], rax
mov eax, dword [r13]
sub eax, edi
mov ecx, edx
cmp edx, eax
jb 0x1400a082e
dec dword [r13]
add r8, rdi
cmp r8, r9
jl 0x1400a0806
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0
ja 0x1400a086b
cmp dword [r12], 0
ja 0x1400a086b
cmp dword [r13], 0
jbe 0x1400a088d
lea rdx, [rsp + 0x30]
mov r9, r13
mov qword [rsp + 0x20], rdx
mov r8, r12
mov rdx, rax
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
mov ecx, eax
jmp 0x1400a0891
mov ecx, dword [rsp + 0x38]
mov rax, qword [rsp + 0x50]
and dword [rax + 0x510], 0
mov eax, ecx
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1401d9840
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret