Function at 0x140010200
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x560]
sub rsp, 0x660
mov rdi, rdx
mov dword [rbp + 0x590], 1
mov rbx, r8
mov rsi, rcx
mov rcx, rdi
lea r8, [rbp + 0x590]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rbx + 0x10]
mov rcx, rdi
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140010410
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400103ff
mov rax, qword [rsi + 0x10]
lea rcx, [rbp + 0x140]
mov edx, 4
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 1
mov r8, qword [rax]
mov rax, qword [rsi + 8]
lea r10d, [rdx + 0x7c]
mov r9, qword [rax]
lea rax, [rsp + 0x30]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
add rax, r10
movups xmmword [rcx + 0x60], xmm0
add rcx, r10
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140010298
mov rax, qword [rax]
mov edx, 4
mov qword [rcx], rax
lea rcx, [rbp + 0x350]
lea rax, [rsp + 0x30]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
add rax, r10
movups xmmword [rcx + 0x60], xmm0
add rcx, r10
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400102f9
mov rax, qword [rax]
mov qword [rcx], rax
mov dword [rbp + 0x5a8], r9d
mov dword [rbp + 0x5ac], r8d
lea rax, [rbp + 0x5a8]
lea r9, [rbp + 0x350]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x140]
lea rdx, [rsp + 0x30]
lea ecx, [rdi + 1]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
test eax, eax
jns 0x140010390
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140010357
test ebx, ebx
jle 0x1400103ff
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1400103ba
lea rdx, [rbp + 0x140]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x1400103ff
and dword [rbp + 0x590], 0
lea rax, [rbp + 0x5a0]
lea r9, [rbp + 0x590]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rbp + 0x5a0], 4
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x1400103ff
cmp dword [rbp + 0x590], 0
je 0x140010410
mov rax, qword [rsi + 0x18]
mov dword [rax], 2
xor al, al
jmp 0x1400104ac
and dword [rbp + 0x590], 0
lea r8, [rbp + 0x590]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rsi + 0x20]
lea r9, [rbp + 0x590]
mov ebx, 8
mov edx, 0xffff
mov r8d, 0x1006
mov dword [rsp + 0x20], ebx
mov ecx, dword [rax]
mov rax, qword [rsi + 0x28]
mov dword [rbp + 0x590], ecx
mov ecx, dword [rax]
mov dword [rbp + 0x594], ecx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x30]
lea r9, [rbp + 0x590]
mov edx, 0xffff
mov dword [rsp + 0x20], ebx
mov r8d, dword [rcx]
mov rcx, qword [rsi + 0x38]
mov dword [rbp + 0x590], r8d
mov r8d, dword [rcx]
mov rcx, rdi
mov dword [rbp + 0x594], r8d
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsi + 0x18]
mov al, 1
and dword [rcx], 0
add rsp, 0x660
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret