Function at 0x14009b404
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 [0x1402e0ed0]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
movsxd r14, dword [rbp + 0x828]
xor r15d, r15d
cmp dword [rcx], r15d
mov ebx, r15d
mov r12, qword [rbp + 0x820]
mov r13, rcx
cmove ebx, dword [rbp + 0x830]
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], r12
test r14d, r14d
jne 0x14009b484
lea edx, [r15 + 1]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SleepEx]
or eax, 0xffffffff
jmp 0x14009b9ae
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 0x14009b4b3
cmp dword [r13 + 0x4f0], r15d
je 0x14009b489
lea rcx, [rsp + 0x40]
call fcn.1400a3680
cmp esi, 0xc0
je 0x14009b57e
test esi, esi
js 0x14009b57e
cmp esi, r14d
jge 0x14009b57e
lea eax, [rsi + 0x40]
movsxd rdx, eax
mov rbx, qword [r12 + rdx*8]
test rbx, rbx
je 0x14009b57e
mov rax, qword [r12 + rsi*8]
mov qword [r13 + 0x900], rax
mov qword [r13 + 0x908], rbx
mov qword [r12 + rdx*8], r15
mov qword [r12 + rsi*8], r15
mov rax, qword [rbx + 8]
test rax, rax
je 0x14009b570
mov r9, qword [rbx + 0x10]
xor r8d, r8d
mov rdx, qword [r13 + 0x900]
mov rcx, r13
call rax
test eax, eax
jne 0x14009b570
cmp qword [r13 + 0x900], r15
je 0x14009b55b
mov rcx, rbx
call fcn.14009abf8
test eax, eax
je 0x14009b55b
mov r8, qword [r13 + 0x900]
lea rdx, str.__ILibChain_WindowsSelect__p___REMOVED_
mov ecx, edi
call fcn.1400a3ec8
mov rcx, qword [rbx]
call fcn.1400a218c
jmp 0x14009b570
mov r8, qword [r13 + 0x900]
lea rdx, str.__ILibChain_WindowsSelect__p___________p_
mov ecx, edi
call fcn.1400a3ec8
mov qword [r13 + 0x900], r15
mov qword [r13 + 0x908], r15
mov qword [rsp + 0x58], r14
mov r15, r14
cmp esi, 0x102
jne 0x14009b631
test r14d, r14d
jle 0x14009b69c
mov rbx, qword [rsp + 0x40]
lea r14, [r12 + 0x200]
mov r12d, dword [rsp + 0x44]
mov r13, r15
mov r15, qword [rsp + 0x50]
mov rcx, qword [r14]
test rcx, rcx
je 0x14009b619
mov eax, dword [rcx + 0x18]
test eax, eax
jne 0x14009b5c9
cmp dword [rcx + 0x1c], eax
je 0x14009b619
cmp ebx, eax
jl 0x14009b5df
jne 0x14009b5d5
cmp r12d, dword [rcx + 0x1c]
jl 0x14009b5df
cmp eax, ebx
jne 0x14009b619
cmp dword [rcx + 0x1c], r12d
jg 0x14009b619
mov rax, qword [rcx + 8]
test rax, rax
je 0x14009b605
mov r9, qword [rcx + 0x10]
mov r8d, 2
mov rdx, qword [r14 - 0x200]
mov rcx, r15
call rax
test eax, eax
jne 0x14009b60d
mov rcx, qword [r14]
mov rcx, qword [rcx]
call fcn.1400a218c
and qword [r14 - 0x200], 0
and qword [r14], 0
add r14, 8
sub r13, rdi
jne 0x14009b5b5
mov r15, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x50]
cmp esi, 0xffffffff
jne 0x14009b69c
test r15, r15
jle 0x14009b69c
lea rbx, [r12 + 0x200]
cmp qword [rbx], 0
je 0x14009b693
mov rcx, qword [rbx - 0x200]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x14009b693
mov r9, qword [rbx]
mov rax, qword [r9 + 8]
test rax, rax
je 0x14009b67c
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.1400a218c
and qword [rbx - 0x200], 0
and qword [rbx], 0
add rbx, 8
sub r15, rdi
jne 0x14009b643
mov r12, qword [rsp + 0x68]
lea rax, [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r9, r12
mov rdx, qword [rsp + 0x48]
mov r8, rbx
and dword [rsp + 0x38], 0
mov ecx, 0x40
and dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
jne 0x14009b9a6
xor edx, edx
lea rcx, [rbp + 0x5a0]
mov r8d, 0x200
xor r15d, r15d
call fcn.1401ce320
mov r11, qword [rsp + 0x48]
xor esi, esi
and dword [rsp + 0x70], r15d
and dword [rbp + 0x390], r15d
cmp dword [r11], esi
jle 0x14009b776
lea r14, [rbp + 0x5a0]
lea rbx, [r11 + 8]
mov rax, qword [rbx]
lea r9, [rbp + 0x390]
mov qword [rbp + 0x188], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x38]
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 0x14009b761
mov rax, qword [rbx]
add r15d, edi
mov qword [r14], rax
add r14, 8
mov r11, qword [rsp + 0x48]
add esi, edi
add rbx, 8
cmp esi, dword [r11]
jl 0x14009b717
mov rbx, qword [rsp + 0x30]
xor r8d, r8d
movsxd r9, r15d
test r15d, r15d
jle 0x14009b7cb
mov edx, dword [r11]
xor ecx, ecx
test edx, edx
je 0x14009b7c3
mov r10, qword [rbp + r8*8 + 0x5a0]
cmp qword [r11 + rcx*8 + 8], r10
je 0x14009b7a1
add ecx, edi
cmp ecx, edx
jb 0x14009b792
jmp 0x14009b7c3
lea eax, [rdx - 1]
cmp ecx, eax
jae 0x14009b7c0
lea edx, [rcx + 1]
mov rax, qword [r11 + rdx*8 + 8]
mov qword [r11 + rcx*8 + 8], rax
mov eax, dword [r11]
sub eax, edi
mov ecx, edx
cmp edx, eax
jb 0x14009b7a8
dec dword [r11]
add r8, rdi
cmp r8, r9
jl 0x14009b781
xor r14d, r14d
xor esi, esi
and dword [rbp + 0x180], r14d
cmp dword [rbx], esi
jle 0x14009b847
mov r13, qword [rsp + 0x30]
lea r15, [rbp + 0x5a0]
add rbx, 8
mov rax, qword [rbx]
lea r9, [rbp + 0x390]
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x38]
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 0x14009b831
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 0x14009b7eb
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x30]
xor r8d, r8d
movsxd r9, r14d
test r14d, r14d
jle 0x14009b899
mov edx, dword [rbx]
xor ecx, ecx
test edx, edx
je 0x14009b891
mov r10, qword [rbp + r8*8 + 0x5a0]
cmp qword [rbx + rcx*8 + 8], r10
je 0x14009b871
add ecx, edi
cmp ecx, edx
jb 0x14009b862
jmp 0x14009b891
lea eax, [rdx - 1]
cmp ecx, eax
jae 0x14009b88f
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 0x14009b878
dec dword [rbx]
add r8, rdi
cmp r8, r9
jl 0x14009b852
xor r14d, r14d
xor esi, esi
and dword [rbp + 0x180], r14d
and dword [rsp + 0x70], r14d
cmp dword [r12], esi
jle 0x14009b912
lea r15, [rbp + 0x5a0]
lea rbx, [r12 + 8]
mov rax, qword [rbx]
lea r9, [rbp + 0x390]
mov qword [rbp + 0x398], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x38]
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 0x14009b906
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 0x14009b8bc
xor r8d, r8d
movsxd r9, r14d
test r14d, r14d
jle 0x14009b96a
mov edx, dword [r12]
xor ecx, ecx
test edx, edx
je 0x14009b962
mov r10, qword [rbp + r8*8 + 0x5a0]
cmp qword [r12 + rcx*8 + 8], r10
je 0x14009b93e
add ecx, edi
cmp ecx, edx
jb 0x14009b92f
jmp 0x14009b962
lea eax, [rdx - 1]
cmp ecx, eax
jae 0x14009b95e
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 0x14009b945
dec dword [r12]
add r8, rdi
cmp r8, r9
jl 0x14009b91d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x30]
cmp dword [rdx], 0
ja 0x14009b985
cmp dword [rax], 0
ja 0x14009b985
cmp dword [r12], 0
jbe 0x14009b9a2
lea r8, [rsp + 0x38]
mov r9, r12
mov qword [rsp + 0x20], r8
mov ecx, 0x40
mov r8, rax
call qword [sym.imp.WS2_32.dll_select]
jmp 0x14009b9a6
mov eax, dword [rsp + 0x40]
and dword [r13 + 0x4f0], 0
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1401cce50
add rsp, 0x8b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret