Function at 0x14019d670
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1028]
mov eax, 0x1128
call fcn.140257850
sub rsp, rax
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rbp + 0x1010], rax
mov r12, r9
mov r13, r8
mov dword [rsp + 0x30], edx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov esi, 1
cmp edx, 0xabcd0123
cmovne esi, edx
mov rcx, r8
call fcn.1400fa900
cmp qword [rbx + 0x298], 0xffffffffffffffff
jne 0x14019d6f2
mov rax, qword [r12]
lea rdx, str.Invalid_socket.
mov rcx, r12
call qword [rax + 0x28]
mov byte [r13 + 0x2a], 1
xor al, al
jmp 0x14019d957
xor ebx, ebx
mov r15d, ebx
mov rax, qword [r13 + 8]
test rax, rax
je 0x14019d717
mov r15d, dword [rax + 0xd0]
lea eax, [r15 - 1]
mov ecx, gethostbyname
cmp eax, 0x30
cmovbe r15d, ecx
mov eax, 0xc042c00
test esi, esi
cmove esi, eax
test r15d, r15d
jne 0x14019d739
mov rcx, r13
call fcn.1400fa980
mov ecx, 0x42
test al, al
cmovne r15d, ecx
mov r14d, ebx
mov dil, 1
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x60]
call fcn.1400adcc0
lea rax, vtable.ckFdSet.0
mov qword [rsp + 0x60], rax
mov r8d, 0x3004bc8d
mov dword [rsp + 0x70], r8d
mov dword [rbp + 0x1000], r8d
test esi, esi
je 0x14019d925
mov eax, 0x14d
mov ebx, esi
sub ebx, r14d
test r15d, r15d
jne 0x14019d78a
cmp ebx, eax
cmovae ebx, eax
jmp 0x14019d798
cmp r15d, ebx
cmovbe ebx, r15d
cmp ebx, r15d
cmova ebx, r15d
test dil, dil
je 0x14019d7aa
shr ebx, 1
cmp ebx, 1
mov eax, 1
cmovb ebx, eax
cmp ebx, esi
cmova ebx, esi
mov eax, 0x10624dd3
mul ebx
shr edx, 6
imul eax, edx, 0x3e8
mov ecx, ebx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x44], eax
xor edx, edx
mov dword [rsp + 0x78], edx
xorps xmm0, xmm0
movups xmmword [rbp + 0xf80], xmm0
movups xmmword [rbp + 0xf90], xmm0
movups xmmword [rbp + 0xfa0], xmm0
movups xmmword [rbp + 0xfb0], xmm0
movups xmmword [rbp + 0xfc0], xmm0
movups xmmword [rbp + 0xfd0], xmm0
movups xmmword [rbp + 0xfe0], xmm0
movups xmmword [rbp + 0xff0], xmm0
cmp r8d, 0x3004bc8d
je 0x14019d826
xor ecx, ecx
call fcn.140086740
mov edx, dword [rsp + 0x78]
cmp dword [rbp + 0x1000], 0x3004bc8d
je 0x14019d83d
xor ecx, ecx
call fcn.140086740
mov edx, dword [rsp + 0x78]
mov rax, qword [rsp + 0x38]
movsxd r9, dword [rax + 0x298]
test r9d, r9d
js 0x14019d91e
xor eax, eax
test edx, edx
je 0x14019d865
cmp qword [rbp + rax*8 - 0x80], r9
je 0x14019d865
inc eax
cmp eax, edx
jb 0x14019d858
cmp eax, edx
jne 0x14019d87a
cmp edx, 0x200
jae 0x14019d87a
mov qword [rbp + rax*8 - 0x80], r9
inc dword [rsp + 0x78]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x14019d8ef
jne 0x14019d8eb
cmp dword [rsp + 0x30], 0xabcd0123
je 0x14019d925
add r14d, ebx
lea eax, [r14 + 1]
cmp eax, esi
jae 0x14019d925
mov rdx, r12
mov rcx, r13
call fcn.1400faa80
test al, al
jne 0x14019d8d3
xor dil, dil
cmp r14d, esi
jae 0x14019d925
mov r8d, dword [rsp + 0x70]
jmp 0x14019d774
mov byte [r13 + 0x29], 1
mov rax, qword [r12]
lea rdx, str.socket_operation_aborted_by_application
mov rcx, r12
call qword [rax + 0x28]
jmp 0x14019d92a
mov bl, 1
jmp 0x14019d92c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
lea r8, str.waitReadableSocket
mov rdx, r12
lea rcx, [rsp + 0x48]
call fcn.1400d0c20
lea rcx, [rsp + 0x48]
call fcn.1400d0d40
jmp 0x14019d92a
mov byte [r13 + 0x2a], 1
jmp 0x14019d92a
mov byte [r13 + 0x28], 1
xor bl, bl
lea rax, vtable.ckFdSet.0
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 0
mov dword [rbp + 0x1000], 0
lea rcx, [rsp + 0x60]
call fcn.1400adda0
movzx eax, bl
mov rcx, qword [rbp + 0x1010]
xor rcx, rsp
call fcn.1402577a0
add rsp, 0x1128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret