Function at 0x140002ee0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x140048028]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov rdi, rcx
mov rbx, r8
mov rcx, qword [rcx]
mov rsi, rdx
call fcn.14000dd40
lea r8, [rsp + 0x64]
mov dword [rsp + 0x64], 1
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rbx + 0x10]
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140003143
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140002f6b
mov rax, qword [rdi + 8]
mov dword [rax], 2
xor al, al
jmp 0x14000320d
mov rax, qword [rdi + 0x18]
lea rdx, [rbp + 0x190]
mov qword [rbp - 0x78], rsi
mov ecx, 4
mov dword [rbp - 0x80], 1
mov r8, qword [rax]
mov rax, qword [rdi + 0x10]
mov r9, qword [rax]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rsi
nop dword [rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x140002fa0
mov rcx, qword [rax]
lea rax, [rbp - 0x80]
mov qword [rdx], rcx
lea rcx, [rbp + 0x3a0]
mov edx, 4
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140003010
mov rax, qword [rax]
mov qword [rcx], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x74], r8d
call fcn.140014120
test rax, rax
jne 0x1400030bc
lea ecx, [rax + 0xd]
jmp 0x140003130
jle 0x14000312b
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x1400030e7
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0x190]
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000312b
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov dword [rsp + 0x64], 0
mov r8d, 0x1007
mov dword [rsp + 0x60], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x14000312b
cmp dword [rsp + 0x64], 0
jne 0x14000312b
xor ecx, ecx
jmp 0x140003130
mov ecx, 2
mov rax, qword [rdi + 8]
mov dword [rax], ecx
mov rax, qword [rdi + 8]
cmp dword [rax], 0
jne 0x140002f64
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], 0
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [rdi + 0x28]
lea r9, [rsp + 0x60]
movabs rbx, 0x20c49ba5e353f7cf
mov dword [rsp + 0x20], 4
mov rcx, qword [rax]
mov rax, rbx
imul rcx
sar rdx, 7
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
mov rcx, qword [rdi + 0x20]
imul r8d, dword [rcx], 0x3e8
mov rcx, rsi
add edx, r8d
mov r8d, 0x1006
mov dword [rsp + 0x60], edx
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea r9, [rsp + 0x60]
mov rax, rbx
mov dword [rsp + 0x20], 4
imul qword [rcx]
mov rcx, rsi
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [rdi + 0x30]
imul r8d, dword [rax], 0x3e8
add edx, r8d
mov r8d, 0x1005
mov dword [rsp + 0x60], edx
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rdi + 8]
mov dword [rax], 0
mov al, 1
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.14003a630
mov rbx, qword [rsp + 0x6f8]
add rsp, 0x6c0
pop rdi
pop rsi
pop rbp
ret