Function at 0x1400a70a0
Capabilities:
Get socket status

Disassembly:
push rbp
push rdi
push r14
push r15
lea rbp, [rsp - 0x5fa8]
mov eax, 0x60a8
call fcn.140028080
sub rsp, rax
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rbp + 0x5f80], rax
or edi, 0xffffffff
movsxd r10, edx
xor r14d, r14d
mov qword [rsp + 0x30], rcx
mov r15, r8
test edx, edx
jne 0x1400a7103
mov dword [r8], r14d
test r9, r9
jle 0x1400a70fc
mov rcx, r9
call fcn.1400a12b0
mov eax, 0x11177
jmp 0x1400a73e7
xor eax, eax
jmp 0x1400a73e7
mov qword [rsp + 0x6098], r12
mov qword [rsp + 0x6090], r13
test r9, r9
jns 0x1400a711f
mov qword [rsp + 0x40], r14
jmp 0x1400a7156
movabs rax, 0x431bde82d7b634db
imul r9
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0xf4240
mov dword [rsp + 0x38], edx
sub r9d, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], r9d
mov qword [rsp + 0x60d8], rbx
mov r9d, r14d
mov qword [rsp + 0x60a0], rsi
mov r11d, r14d
mov dword [rsp + 0x50], r14d
mov r8d, r14d
mov dword [rbp + 0x1f60], r14d
mov r13d, r14d
mov dword [rbp + 0x3f70], r14d
mov r12, r10
test r10d, r10d
jle 0x1400a72d9
mov rsi, r14
lea rbx, [rcx + 8]
nop dword [rax + rax]
cmp dword [rbx], 1
mov word [rbx + 6], r14w
jne 0x1400a72bb
mov rax, qword [rbx + 8]
movzx r10d, word [rbx + 4]
mov rdx, qword [rax + 8]
test r10b, 1
je 0x1400a7202
mov ecx, r14d
test r9d, r9d
je 0x1400a71e0
nop dword [rax]
mov eax, ecx
cmp qword [rsp + rax*8 + 0x58], rdx
je 0x1400a71e0
inc ecx
cmp ecx, r9d
jb 0x1400a71d0
cmp ecx, r9d
jne 0x1400a7202
cmp r9d, 0x400
jae 0x1400a7202
mov eax, ecx
mov qword [rsp + rax*8 + 0x58], rdx
mov r9d, dword [rsp + 0x50]
inc r9d
mov dword [rsp + 0x50], r9d
test r10b, 4
je 0x1400a724c
mov ecx, r14d
test r11d, r11d
je 0x1400a7223
mov eax, ecx
cmp qword [rbp + rax*8 + 0x1f68], rdx
je 0x1400a7223
inc ecx
cmp ecx, r11d
jb 0x1400a7210
cmp ecx, r11d
jne 0x1400a724c
cmp r11d, 0x400
jae 0x1400a724c
mov eax, ecx
mov qword [rbp + rax*8 + 0x1f68], rdx
mov r11d, dword [rbp + 0x1f60]
inc r11d
mov dword [rbp + 0x1f60], r11d
test r10b, 0x72
je 0x1400a729c
mov ecx, r14d
test r8d, r8d
je 0x1400a7273
nop word [rax + rax]
mov eax, ecx
cmp qword [rbp + rax*8 + 0x3f78], rdx
je 0x1400a7273
inc ecx
cmp ecx, r8d
jb 0x1400a7260
cmp ecx, r8d
jne 0x1400a729c
cmp r8d, 0x400
jae 0x1400a729c
mov eax, ecx
mov qword [rbp + rax*8 + 0x3f78], rdx
mov r8d, dword [rbp + 0x3f70]
inc r8d
mov dword [rbp + 0x3f70], r8d
cmp edx, edi
cmovg edi, edx
inc r13d
inc rsi
add rbx, 0x20
cmp rsi, r12
jl 0x1400a71a0
mov r13, qword [rsp + 0x30]
jmp 0x1400a72dc
movsxd rax, r13d
mov r13, qword [rsp + 0x30]
shl rax, 5
cmp dword [rax + r13 + 8], 2
jne 0x1400a72dc
mov eax, 9
jmp 0x1400a73c7
mov r13, rcx
mov rax, qword [rsp + 0x40]
lea ecx, [rdi + 1]
lea r9, [rbp + 0x3f70]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x1f60]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_select]
mov dword [r15], eax
test eax, eax
jne 0x1400a7313
mov eax, 0x11177
jmp 0x1400a73c7
jns 0x1400a7334
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1400a732c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r14d, [rax + 0xafc80]
mov eax, r14d
jmp 0x1400a73c7
mov dword [r15], r14d
test r12, r12
jle 0x1400a73c5
mov rdi, r14
lea rbx, [r13 + 0xe]
cmp dword [rbx - 6], 1
jne 0x1400a73b2
mov rax, qword [rbx + 2]
lea rdx, [rsp + 0x50]
mov rsi, qword [rax + 8]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400a736a
or word [rbx], 1
lea rdx, [rbp + 0x1f60]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400a7381
or word [rbx], 4
lea rdx, [rbp + 0x3f70]
mov rcx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1400a7398
or word [rbx], 0x10
cmp word [rbx], 0
je 0x1400a73a1
inc dword [r15]
inc r14d
inc rdi
add rbx, 0x20
cmp rdi, r12
jl 0x1400a7347
jmp 0x1400a73c5
movsxd rax, r14d
shl rax, 5
cmp dword [rax + r13 + 8], 2
je 0x1400a72cf
xor eax, eax
mov rsi, qword [rsp + 0x60a0]
mov rbx, qword [rsp + 0x60d8]
mov r12, qword [rsp + 0x6098]
mov r13, qword [rsp + 0x6090]
mov rcx, qword [rbp + 0x5f80]
xor rcx, rsp
call fcn.140027790
add rsp, 0x60a8
pop r15
pop r14
pop rdi
pop rbp
ret