Function at 0x140026990
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xbf90]
mov eax, 0xc090
call fcn.1401b4b30
sub rsp, rax
mov rax, qword [0x1402dd5c8]
xor rax, rsp
mov qword [rbp + 0xbf80], rax
movzx eax, byte [rcx + 0x178]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov r13d, edx
mov r15, rcx
test al, al
jne 0x140026dd8
test dword [r15 + 0x194], 0x2000
mov ecx, r14d
mov dword [rsp + 0x50], ecx
mov edi, r14d
mov dword [rbp + 0x7f70], r14d
mov dword [rbp + 0x3f60], r14d
mov qword [rsp + 0x40], 0xffffffffffffffff
je 0x140026a2b
mov rcx, r15
call fcn.140025bd0
mov ecx, dword [rsp + 0x50]
cmp eax, 1
jne 0x140026a2b
test byte [r15 + 0x194], 4
cmove r13d, r14d
mov eax, dword [r15 + 0x194]
and eax, 4
test al, al
jne 0x140026d8a
movzx eax, byte [r15 + 0x178]
mov qword [rsp + 0xc0d0], r12
mov r12d, 1
test al, al
jne 0x140026d6d
mov rdi, qword [r15 + 0x158]
cmp rdi, 0xffffffffffffffff
je 0x140026ac8
movzx eax, byte [r15 + 0x179]
test al, al
jne 0x140026ac8
mov ecx, dword [rsp + 0x50]
cmp ecx, 0x800
jb 0x140026a9b
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov ecx, dword [rsp + 0x50]
test eax, eax
jne 0x140026a9b
mov r12d, r14d
jmp 0x140026acc
mov edx, r14d
test ecx, ecx
je 0x140026ab1
mov eax, edx
cmp rdi, qword [rsp + rax*8 + 0x58]
je 0x140026ab1
inc edx
cmp edx, ecx
jb 0x140026aa2
cmp edx, ecx
jne 0x140026ad1
mov eax, ecx
mov qword [rsp + rax*8 + 0x58], rdi
mov ecx, dword [rsp + 0x50]
inc ecx
mov dword [rsp + 0x50], ecx
jmp 0x140026ad1
mov ecx, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x40]
mov rdx, qword [r15 + 0x18]
mov qword [rsp + 0xc0c8], rsi
test rdx, rdx
je 0x140026d5c
nop word [rax + rax]
mov r8d, dword [rdx + 0x12c]
mov rsi, qword [rdx + 8]
test r8d, r8d
je 0x140026c44
sub r8d, 1
je 0x140026b9b
cmp r8d, 1
jne 0x140026cad
mov rbx, qword [rdx + 0x118]
cmp rbx, 0xffffffffffffffff
je 0x140026caa
cmp dword [rbp + 0x3f60], 0x800
jb 0x140026b51
lea rdx, [rbp + 0x3f60]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov ecx, dword [rsp + 0x50]
test eax, eax
je 0x140026caa
mov edx, r14d
cmp dword [rbp + 0x3f60], r14d
jbe 0x140026b76
nop dword [rax]
mov eax, edx
cmp rbx, qword [rbp + rax*8 + 0x3f68]
je 0x140026b76
inc edx
cmp edx, dword [rbp + 0x3f60]
jb 0x140026b60
mov eax, dword [rbp + 0x3f60]
cmp edx, eax
jne 0x140026c9a
mov qword [rbp + rax*8 + 0x3f68], rbx
inc dword [rbp + 0x3f60]
mov ecx, dword [rsp + 0x50]
jmp 0x140026c9a
mov rbx, qword [rdx + 0x118]
cmp rbx, 0xffffffffffffffff
je 0x140026c33
cmp dword [rbp + 0x7f70], 0x800
jb 0x140026bd0
lea rdx, [rbp + 0x7f70]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov ecx, dword [rsp + 0x50]
test eax, eax
je 0x140026c33
mov edx, r14d
cmp dword [rbp + 0x7f70], r14d
jbe 0x140026bf6
nop dword [rax]
mov eax, edx
cmp rbx, qword [rbp + rax*8 + 0x7f78]
je 0x140026bf6
inc edx
cmp edx, dword [rbp + 0x7f70]
jb 0x140026be0
mov eax, dword [rbp + 0x7f70]
cmp edx, eax
jne 0x140026c12
mov qword [rbp + rax*8 + 0x7f78], rbx
inc dword [rbp + 0x7f70]
mov ecx, dword [rsp + 0x50]
cmp rbx, rdi
ja 0x140026c1d
cmp rdi, 0xffffffffffffffff
jne 0x140026c20
mov rdi, rbx
mov edx, 1
mov eax, r14d
test edx, edx
cmovne eax, r12d
mov r12d, eax
jmp 0x140026cad
mov edx, r14d
mov eax, r14d
test edx, edx
cmovne eax, r12d
mov r12d, eax
jmp 0x140026cad
mov rbx, qword [rdx + 0x118]
cmp rbx, 0xffffffffffffffff
je 0x140026caa
cmp ecx, 0x800
jb 0x140026c6f
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov ecx, dword [rsp + 0x50]
test eax, eax
je 0x140026caa
mov edx, r14d
test ecx, ecx
je 0x140026c85
mov eax, edx
cmp rbx, qword [rsp + rax*8 + 0x58]
je 0x140026c85
inc edx
cmp edx, ecx
jb 0x140026c76
cmp edx, ecx
jne 0x140026c9a
mov eax, ecx
mov qword [rsp + rax*8 + 0x58], rbx
mov ecx, dword [rsp + 0x50]
inc ecx
mov dword [rsp + 0x50], ecx
cmp rbx, rdi
ja 0x140026ca5
cmp rdi, 0xffffffffffffffff
jne 0x140026cad
mov rdi, rbx
jmp 0x140026cad
mov r12d, r14d
mov rdx, rsi
test rsi, rsi
jne 0x140026af0
mov rdx, qword [r15 + 0x18]
test rdx, rdx
je 0x140026d5c
nop word [rax + rax]
mov rbx, qword [rdx + 0x118]
mov rsi, qword [rdx + 8]
cmp rbx, 0xffffffffffffffff
je 0x140026d4c
cmp dword [rbp + 0x3f60], 0x800
jb 0x140026d01
lea rdx, [rbp + 0x3f60]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140026d4c
mov ecx, r14d
cmp dword [rbp + 0x3f60], r14d
jbe 0x140026d26
nop dword [rax]
mov eax, ecx
cmp rbx, qword [rbp + rax*8 + 0x3f68]
je 0x140026d26
inc ecx
cmp ecx, dword [rbp + 0x3f60]
jb 0x140026d10
mov eax, dword [rbp + 0x3f60]
cmp ecx, eax
jne 0x140026d3e
mov qword [rbp + rax*8 + 0x3f68], rbx
inc dword [rbp + 0x3f60]
cmp rbx, rdi
ja 0x140026d49
cmp rdi, 0xffffffffffffffff
jne 0x140026d4c
mov rdi, rbx
mov rdx, rsi
test rsi, rsi
jne 0x140026cd0
mov ecx, dword [rsp + 0x50]
mov rsi, qword [rsp + 0xc0c8]
test r12d, r12d
jne 0x140026e36
lea rdx, str.Could_not_obtain_daemon_fdsets
mov rcx, r15
call fcn.14002fa20
mov ecx, dword [rsp + 0x50]
mov edi, 1
jmp 0x140026e39
mov rbx, qword [r15 + 0x158]
cmp rbx, 0xffffffffffffffff
je 0x140026e41
movzx eax, byte [r15 + 0x179]
mov ecx, dword [rsp + 0x50]
test al, al
jne 0x140026e41
cmp ecx, 0x800
jb 0x140026e05
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140026e01
lea rdx, str.Could_not_add_listen_socket_to_fdset
mov rcx, r15
call fcn.14002fa20
xor eax, eax
mov rcx, qword [rbp + 0xbf80]
xor rcx, rsp
call fcn.1401b48e0
mov rbx, qword [rsp + 0xc0d8]
add rsp, 0xc090
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov ecx, dword [rsp + 0x50]
mov edx, r14d
test ecx, ecx
je 0x140026e1f
nop dword [rax]
mov eax, edx
cmp rbx, qword [rsp + rax*8 + 0x58]
je 0x140026e1f
inc edx
cmp edx, ecx
jb 0x140026e10
cmp edx, ecx
jne 0x140026e41
mov eax, ecx
mov qword [rsp + rax*8 + 0x58], rbx
mov ecx, dword [rsp + 0x50]
inc ecx
mov dword [rsp + 0x50], ecx
jmp 0x140026e41
mov edi, r14d
mov r12, qword [rsp + 0xc0d0]
mov rbx, qword [r15 + 0x168]
cmp rbx, 0xffffffffffffffff
je 0x140026f74
cmp ecx, 0x800
jb 0x140026f46
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x140026f42
mov rdx, qword [r15 + 0x158]
cmp rdx, 0xffffffffffffffff
je 0x140026f3c
movzx eax, byte [r15 + 0x179]
test al, al
jne 0x140026f3c
mov ecx, dword [rsp + 0x50]
mov r8d, r14d
test ecx, ecx
je 0x140026ee5
mov eax, r8d
cmp qword [rsp + rax*8 + 0x58], rdx
je 0x140026eb4
inc r8d
cmp r8d, ecx
jb 0x140026ea0
jmp 0x140026ee5
lea eax, [rcx - 1]
cmp r8d, eax
jae 0x140026edf
nop dword [rax]
mov ecx, r8d
lea edx, [r8 + 1]
mov rax, qword [rsp + rdx*8 + 0x58]
mov r8d, edx
mov qword [rsp + rcx*8 + 0x58], rax
mov ecx, dword [rsp + 0x50]
lea eax, [rcx - 1]
cmp edx, eax
jb 0x140026ec0
dec ecx
mov dword [rsp + 0x50], ecx
mov rbx, qword [r15 + 0x168]
cmp rbx, 0xffffffffffffffff
je 0x140026f28
cmp ecx, 0x800
jb 0x140026f10
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140026f28
mov ecx, dword [rsp + 0x50]
mov edx, r14d
test ecx, ecx
je 0x140026f5f
mov eax, edx
cmp rbx, qword [rsp + rax*8 + 0x58]
je 0x140026f5f
inc edx
cmp edx, ecx
jb 0x140026f17
jmp 0x140026f5f
lea rdx, str.Could_not_add_control_inter_thread_communication_channel_FD_to_fdset
mov rcx, r15
call fcn.14002fa20
mov edi, 1
mov ecx, dword [rsp + 0x50]
jmp 0x140026f74
mov ecx, dword [rsp + 0x50]
mov edx, r14d
test ecx, ecx
je 0x140026f5f
nop dword [rax]
mov eax, edx
cmp rbx, qword [rsp + rax*8 + 0x58]
je 0x140026f5f
inc edx
cmp edx, ecx
jb 0x140026f50
cmp edx, ecx
jne 0x140026f74
mov eax, ecx
mov qword [rsp + rax*8 + 0x58], rbx
mov ecx, dword [rsp + 0x50]
inc ecx
mov dword [rsp + 0x50], ecx
mov rdx, qword [r15 + 0x158]
cmp rdx, 0xffffffffffffffff
je 0x140026ff5
cmp qword [r15 + 0x168], 0xffffffffffffffff
je 0x140026ff5
mov eax, dword [r15 + 0x184]
cmp dword [r15 + 0x180], eax
je 0x140026fa4
cmp byte [r15 + 0x17a], r14b
je 0x140026ff5
mov r8d, r14d
test ecx, ecx
je 0x140026ff5
nop dword [rax + rax]
mov eax, r8d
cmp qword [rsp + rax*8 + 0x58], rdx
je 0x140026fc4
inc r8d
cmp r8d, ecx
jb 0x140026fb0
jmp 0x140026ff5
lea eax, [rcx - 1]
cmp r8d, eax
jae 0x140026fef
nop dword [rax]
mov ecx, r8d
lea edx, [r8 + 1]
mov rax, qword [rsp + rdx*8 + 0x58]
mov r8d, edx
mov qword [rsp + rcx*8 + 0x58], rax
mov ecx, dword [rsp + 0x50]
lea eax, [rcx - 1]
cmp edx, eax
jb 0x140026fd0
dec ecx
mov dword [rsp + 0x50], ecx
cmp edi, 1
mov eax, r14d
mov rbx, r14
cmovne eax, r13d
test eax, eax
jne 0x140027012
mov qword [rsp + 0x30], r14
lea rbx, [rsp + 0x30]
jmp 0x140027081
mov eax, dword [r15 + 0x194]
and eax, 4
test al, al
jne 0x140027081
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.1400266f0
cmp eax, 1
jne 0x14002707d
mov rcx, qword [rsp + 0x48]
lea rbx, [rsp + 0x30]
mov r8, rcx
movabs rax, 0x624dd2f1a9fbe77
mul rcx
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 9
imul eax, r8d, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x34], eax
mov eax, 0x7fffffff
cmp r8, rax
cmova r8d, eax
mov dword [rsp + 0x30], r8d
mov ecx, dword [rsp + 0x50]
test ecx, ecx
jne 0x1400270c6
cmp dword [rbp + 0x7f70], r14d
jne 0x1400270c6
cmp dword [rbp + 0x3f60], r14d
jne 0x1400270c6
test rbx, rbx
jne 0x1400270a1
mov eax, r14d
jmp 0x1400270e6
mov eax, 0x10624dd3
imul dword [rbx + 4]
imul eax, dword [rbx], 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, r14d
jmp 0x1400270e6
lea r9, [rbp + 0x3f60]
mov qword [rsp + 0x20], rbx
lea r8, [rbp + 0x7f70]
xor ecx, ecx
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_select]
movzx ecx, byte [r15 + 0x178]
test cl, cl
jne 0x140026dd8
test eax, eax
jns 0x140027125
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x140027149
mov ecx, eax
call fcn.14002eff0
mov r8, rax
lea rdx, str.select_failed:__s_n
mov rcx, r15
call fcn.14002fa20
jmp 0x140026dd8
lea r9, [rbp + 0x3f60]
mov rcx, r15
lea r8, [rbp + 0x7f70]
lea rdx, [rsp + 0x50]
call fcn.140026820
cmp eax, 1
jne 0x140026dd8
test edi, edi
sete r14b
mov eax, r14d
jmp 0x140026dda