Function at 0x14009ff9c
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 [0x1402feed0]
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 0x1400a001a
lea edx, [r14 + 1]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SleepEx]
or ecx, 0xffffffff
jmp 0x1400a0555
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 0x1400a004a
cmp dword [r15 + 0x510], 0
je 0x1400a001f
lea rcx, [rsp + 0x38]
call fcn.1400a8494
cmp esi, 0xc0
je 0x1400a011f
test esi, esi
js 0x1400a011f
cmp esi, r14d
jge 0x1400a011f
lea eax, [rsi + 0x40]
movsxd rdx, eax
mov rbx, qword [r12 + rdx*8]
test rbx, rbx
je 0x1400a011f
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 0x1400a010f
mov r9, qword [rbx + 0x10]
xor r8d, r8d
mov rdx, qword [r15 + 0x920]
mov rcx, r15
call rax
test eax, eax
jne 0x1400a010f
cmp qword [r15 + 0x920], 0
je 0x1400a00fa
mov rcx, rbx
call fcn.14009f278
test eax, eax
je 0x1400a00fa
mov r8, qword [r15 + 0x920]
lea rdx, str.__ILibChain_WindowsSelect__p___REMOVED_
mov ecx, edi
call fcn.1400a8d58
mov rcx, qword [rbx]
and qword [rbx + 0x10], 0
call fcn.1400a6f8c
jmp 0x1400a010f
mov r8, qword [r15 + 0x920]
lea rdx, str.__ILibChain_WindowsSelect__p___________p_
mov ecx, edi
call fcn.1400a8d58
and qword [r15 + 0x920], 0
and qword [r15 + 0x928], 0
mov qword [rsp + 0x58], r14
mov r15, r14
cmp esi, 0x102
jne 0x1400a01d2
test r14d, r14d
jle 0x1400a0247
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 0x1400a01ba
mov eax, dword [rcx + 0x18]
test eax, eax
jne 0x1400a016a
cmp dword [rcx + 0x1c], eax
je 0x1400a01ba
cmp ebx, eax
jl 0x1400a0180
jne 0x1400a0176
cmp r12d, dword [rcx + 0x1c]
jl 0x1400a0180
cmp eax, ebx
jne 0x1400a01ba
cmp dword [rcx + 0x1c], r12d
jg 0x1400a01ba
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400a01a6
mov r9, qword [rcx + 0x10]
mov r8d, 2
mov rdx, qword [r14 - 0x200]
mov rcx, r15
call rax
test eax, eax
jne 0x1400a01ae
mov rcx, qword [r14]
mov rcx, qword [rcx]
call fcn.1400a6f8c
and qword [r14 - 0x200], 0
and qword [r14], 0
add r14, 8
sub r13, rdi
jne 0x1400a0156
mov r15, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x48]
cmp esi, 0xffffffff
jne 0x1400a0247
test r15, r15
jle 0x1400a0247
mov r13, qword [rsp + 0x50]
lea rbx, [r12 + 0x200]
cmp qword [rbx], 0
je 0x1400a0239
mov rcx, qword [rbx - 0x200]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x1400a0239
mov r9, qword [rbx]
mov rax, qword [r9 + 8]
test rax, rax
je 0x1400a0222
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.1400a6f8c
and qword [rbx - 0x200], 0
and qword [rbx], 0
add rbx, 8
sub r15, rdi
jne 0x1400a01e9
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 0x1400a0549
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x200
xor r15d, r15d
call fcn.1401da3e0
and dword [rsp + 0x70], r15d
xor esi, esi
and dword [rbp + 0x390], r15d
cmp dword [rbx], esi
jle 0x1400a0321
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 0x1400a030b
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 0x1400a02c1
mov r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
xor r8d, r8d
movsxd r9, r15d
test r15d, r15d
jle 0x1400a0373
mov edx, dword [rbx]
xor ecx, ecx
test edx, edx
je 0x1400a036b
mov r10, qword [rbp + r8*8 + 0x5a0]
cmp qword [rbx + rcx*8 + 8], r10
je 0x1400a034b
add ecx, edi
cmp ecx, edx
jb 0x1400a033c
jmp 0x1400a036b
lea eax, [rdx - 1]
cmp ecx, eax
jae 0x1400a0369
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 0x1400a0352
dec dword [rbx]
add r8, rdi
cmp r8, r9
jl 0x1400a032c
xor r14d, r14d
xor esi, esi
and dword [rbp + 0x180], r14d
cmp dword [r12], esi
jle 0x1400a03e3
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 0x1400a03d7
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 0x1400a0391
xor r8d, r8d
movsxd r9, r14d
test r14d, r14d
jle 0x1400a043b
mov edx, dword [r12]
xor ecx, ecx
test edx, edx
je 0x1400a0433
mov r10, qword [rbp + r8*8 + 0x5a0]
cmp qword [r12 + rcx*8 + 8], r10
je 0x1400a040f
add ecx, edi
cmp ecx, edx
jb 0x1400a0400
jmp 0x1400a0433
lea eax, [rdx - 1]
cmp ecx, eax
jae 0x1400a042f
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 0x1400a0416
dec dword [r12]
add r8, rdi
cmp r8, r9
jl 0x1400a03ee
xor r14d, r14d
xor esi, esi
and dword [rbp + 0x180], r14d
and dword [rsp + 0x70], r14d
cmp dword [r13], esi
jle 0x1400a04b3
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 0x1400a04a7
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 0x1400a045d
xor r8d, r8d
movsxd r9, r14d
test r14d, r14d
jle 0x1400a050b
mov edx, dword [r13]
xor ecx, ecx
test edx, edx
je 0x1400a0503
mov r10, qword [rbp + r8*8 + 0x5a0]
cmp qword [r13 + rcx*8 + 8], r10
je 0x1400a04df
add ecx, edi
cmp ecx, edx
jb 0x1400a04d0
jmp 0x1400a0503
lea eax, [rdx - 1]
cmp ecx, eax
jae 0x1400a04ff
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 0x1400a04e6
dec dword [r13]
add r8, rdi
cmp r8, r9
jl 0x1400a04be
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0
ja 0x1400a0523
cmp dword [r12], 0
ja 0x1400a0523
cmp dword [r13], 0
jbe 0x1400a0545
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 0x1400a0549
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.1401d8f10
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret