Function at 0x18008d6f0
Capabilities:
Get socket status

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x670
xor edi, edi
mov esi, r9d
mov r12, r8
mov rbp, rdx
mov r15, rcx
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov r13d, edi
cmp rcx, 0xffffffffffffffff
jne 0x18008d73a
cmp rdx, rcx
jne 0x18008d73a
cmp r8, rcx
jne 0x18008d73a
mov ecx, r9d
call fcn.18008d6c0
jmp 0x18008da33
mov qword [rsp + 0x6a8], rbx
mov qword [rsp + 0x6b0], r14
test r9d, r9d
jle 0x18008d75c
mov r13d, r9d
call fcn.180097f10
mov rbx, rax
jmp 0x18008d764
mov rbx, qword [rsp + 0x6a0]
or r8, 0xffffffffffffffff
mov ecx, edi
mov r9d, edi
lea eax, [r8 + 2]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x250], edi
cmp r15, r8
je 0x18008d7a1
mov qword [rsp + 0x258], r15
mov r9d, eax
mov dword [rsp + 0x250], eax
mov qword [rsp + 0x48], r15
mov ecx, eax
mov dword [rsp + 0x40], eax
mov r8, r15
cmp rbp, 0xffffffffffffffff
je 0x18008d834
mov eax, edi
test r9d, r9d
je 0x18008d7d0
lea rdx, [rsp + 0x258]
nop word [rax + rax]
cmp qword [rdx], rbp
je 0x18008d7d0
inc eax
add rdx, 8
cmp eax, r9d
jb 0x18008d7c0
cmp eax, r9d
jne 0x18008d7f6
cmp r9d, 0x40
jae 0x18008d7f6
mov qword [rsp + rax*8 + 0x258], rbp
mov r9d, dword [rsp + 0x250]
inc r9d
mov dword [rsp + 0x250], r9d
mov eax, edi
test ecx, ecx
je 0x18008d810
lea rdx, [rsp + 0x48]
cmp qword [rdx], rbp
je 0x18008d810
inc eax
add rdx, 8
cmp eax, ecx
jb 0x18008d801
cmp eax, ecx
jne 0x18008d828
cmp ecx, 0x40
jae 0x18008d828
mov qword [rsp + rax*8 + 0x48], rbp
mov ecx, dword [rsp + 0x40]
inc ecx
mov dword [rsp + 0x40], ecx
cmp rbp, r8
mov eax, 1
cmova r8, rbp
mov dword [rsp + 0x460], edi
cmp r12, 0xffffffffffffffff
je 0x18008d888
mov dword [rsp + 0x460], eax
mov qword [rsp + 0x468], r12
mov eax, edi
test ecx, ecx
je 0x18008d86f
lea rdx, [rsp + 0x48]
nop dword [rax + rax]
cmp qword [rdx], r12
je 0x18008d86f
inc eax
add rdx, 8
cmp eax, ecx
jb 0x18008d860
cmp eax, ecx
jne 0x18008d881
cmp ecx, 0x40
jae 0x18008d881
mov qword [rsp + rax*8 + 0x48], r12
inc dword [rsp + 0x40]
cmp r12, r8
cmova r8, r12
lea r14, [rsp + 0x30]
lea ecx, [r8 + 1]
test esi, esi
cmovs r14, rdi
mov dword [rsp + 0x6a0], ecx
nop
test esi, esi
jle 0x18008d8d1
mov eax, 0x10624dd3
imul r13d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r13d
mov dword [rsp + 0x30], edx
imul edx, edx, 0x3e8
sub eax, edx
imul eax, eax, 0x3e8
mov dword [rsp + 0x34], eax
jmp 0x18008d8dd
test esi, esi
jne 0x18008d8dd
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], edi
cmp dword [rsp + 0x460], edi
lea r8, [rsp + 0x460]
lea rdx, [rsp + 0x250]
cmove r8, rdi
test r9d, r9d
lea r9, [rsp + 0x40]
cmove rdx, rdi
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x18008d974
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x18008d92d
cmp dword [0x18010d854], edi
jne 0x18008d978
cmp eax, 0x2714
jne 0x18008d978
test esi, esi
jg 0x18008d945
mov r9d, dword [rsp + 0x250]
mov ecx, dword [rsp + 0x6a0]
jmp 0x18008d8a0
call fcn.180097f10
mov rdx, rbx
mov rcx, rax
call fcn.180097f50
mov r13d, esi
sub r13d, eax
test r13d, r13d
jle 0x18008d984
mov r9d, dword [rsp + 0x250]
mov ecx, dword [rsp + 0x6a0]
jmp 0x18008d8a0
test eax, eax
jns 0x18008d980
or eax, 0xffffffff
jmp 0x18008da23
test eax, eax
jne 0x18008d98b
xor eax, eax
jmp 0x18008da23
cmp r15, 0xffffffffffffffff
je 0x18008d9bf
lea rdx, [rsp + 0x250]
mov rcx, r15
call sub.WS2_32.dll___WSAFDIsSet
lea rdx, [rsp + 0x40]
mov rcx, r15
test eax, eax
mov eax, 1
cmovne edi, eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18008d9bf
or edi, 4
cmp rbp, 0xffffffffffffffff
je 0x18008d9f0
lea rdx, [rsp + 0x250]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18008d9dc
or edi, 8
lea rdx, [rsp + 0x40]
mov rcx, rbp
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18008d9f0
or edi, 4
cmp r12, 0xffffffffffffffff
je 0x18008da21
lea rdx, [rsp + 0x460]
mov rcx, r12
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18008da0d
or edi, 2
lea rdx, [rsp + 0x40]
mov rcx, r12
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x18008da21
or edi, 4
mov eax, edi
mov rbx, qword [rsp + 0x6a8]
mov r14, qword [rsp + 0x6b0]
mov rbp, qword [rsp + 0x6b8]
add rsp, 0x670
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret