Function at 0x1400610a0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1400f3e08]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, qword [rbp + 0x7f]
mov r15, rcx
mov rcx, qword [0x1400f8a70]
xor edx, edx
mov r8d, 0x240
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x140061144
test byte [0x1400f8b38], 2
je 0x14006113a
lea rax, str.CXPLAT_SOCKET
mov qword [rbp - 0x31], 0x240
mov qword [rbp - 9], rax
lea r9d, [rbx + 3]
lea rax, [rbp - 0x31]
mov qword [rbp - 1], SafeArrayLock
mov qword [rbp + 7], rax
lea rdx, [0x1400d0050]
lea rax, [rbp - 0x19]
mov qword [rbp + 0xf], 8
mov qword [rsp + 0x20], rax
call fcn.140001460
mov eax, 0x8007000e
jmp 0x1400613e2
xor edi, edi
mov qword [rsp + 0xd8], rsi
test byte [0x1400f8b3e], 8
lea rsi, [rax + 0x80]
je 0x14006117f
mov qword [rsp + 0x30], rdi
lea rdx, [0x1400cff40]
mov byte [rsp + 0x28], dil
xor r9d, r9d
mov r8, rsi
mov qword [rsp + 0x20], rdi
call fcn.14005ec00
xorps xmm0, xmm0
lea rcx, [rbx + 0x82]
movups xmmword [rbx], xmm0
xor edx, edx
mov r8d, 0x1be
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
movups xmmword [rbx + 0x70], xmm0
call fcn.1400819f0
or byte [rsi + 0x5a], 1
xorps xmm0, xmm0
or byte [rsi + 0x56], 6
mov eax, 0x5dc
mov word [rsi + 0x54], ax
mov ecx, 0xfff7
mov qword [rsi + 0x38], r15
mov eax, 0x5c0
mov qword [rsi + 0x40], rdi
mov ebx, reloc.OLEAUT32.dll_SafeArrayUnaccessData
mov word [rsi], bx
test byte [r15 + 0xc8], 2
mov qword [rsi + 0x48], 1
cmovne eax, ecx
mov qword [rsi + 0x80], 1
mov dword [rsi + 0x50], eax
xor r9d, r9d
lea rax, [rsi + 0x90]
mov qword [rsi + 0x100], rsi
mov qword [rsi + 0x108], 0xffffffffffffffff
xor r8d, r8d
movups xmmword [rax], xmm0
xor edx, edx
xor ecx, ecx
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov dword [rax], 0x8004
mov qword [rax + 8], rax
mov qword [rsi + 0x110], 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [rsp + 0x28], 1
lea edx, [rbx - 0x16]
mov qword [rsi + 0x118], rax
lea r8d, [rbx - 0x11]
lea rax, [rsi + 0x140]
mov qword [rsi + 0x128], rdi
xor r9d, r9d
mov qword [rax + 8], rax
mov ecx, ebx
mov qword [rax], rax
mov qword [rsi + 0x130], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsi + 0x108], rax
cmp rax, 0xffffffffffffffff
jne 0x1400612d4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov ebx, eax
je 0x1400613ad
lea rax, [rbp - 0x39]
mov qword [rbp + 0x1f], recv
mov qword [rbp - 9], rax
lea rax, [rbp - 0x31]
mov qword [rbp + 7], rax
lea rax, [0x1400da188]
jmp 0x140061377
mov edx, 0x29
mov dword [rbp - 0x29], edi
mov rcx, qword [rsi + 0x108]
lea r9, [rbp - 0x29]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x140061334
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x1400f8b3e], 4
mov ebx, eax
je 0x1400613ad
lea rax, [rbp - 0x39]
mov qword [rbp + 0x1f], reloc.WS2_32.dll_recv
mov qword [rbp - 9], rax
lea rax, [rbp - 0x31]
mov qword [rbp + 7], rax
lea rax, str.Set_IPV6_V6ONLY
jmp 0x140061377
mov rcx, qword [rsi + 0x108]
mov dl, 3
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
jne 0x1400613c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x1400f8b3e], 4
mov ebx, eax
je 0x1400613ad
lea rax, [rbp - 0x39]
mov qword [rbp + 0x1f], 0x23
mov qword [rbp - 9], rax
lea rax, [rbp - 0x31]
mov qword [rbp + 7], rax
lea rax, [0x1400da268]
mov qword [rbp + 0x17], rax
lea rdx, [0x1400cfe40]
lea rax, [rbp - 0x19]
mov dword [rbp - 0x31], ebx
mov r9d, 4
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x39], rsi
mov qword [rbp - 1], 8
mov qword [rbp + 0xf], 4
call fcn.140001460
test ebx, ebx
jle 0x1400613ba
movzx ebx, bx
or ebx, 0x80070000
mov rcx, rsi
call fcn.140061410
mov eax, ebx
jmp 0x1400613da
mov rdx, rsi
mov rcx, rsi
call fcn.14005ed90
mov word [rsi + 0x1e], di
mov eax, edi
mov qword [r14], rsi
mov rsi, qword [rsp + 0xd8]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14007f5b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret