Function at 0x14001dec0
Capabilities:
Connect socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x1401bf0a0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r12d, r8d
mov r15, rdx
mov rsi, rcx
mov rdi, qword [rbp + 0xa0]
mov r13, qword [rbp + 0x90]
xor r8d, r8d
cmp r12d, 2
je 0x14001df14
cmp r12d, 0x17
jne 0x14001e0c3
lea eax, [r9 - 1]
test eax, 0xfffffffb
jne 0x14001e0c3
xor eax, eax
lea edx, [rax + 0x10]
lock cmpxchg qword [rcx + 0x18], r8
mov rbx, rax
mov qword [rsp + 0x68], rax
jne 0x14001dfb4
mov dword [rbp - 0x10], 0x25a207b9
mov dword [rbp - 0xc], 0x4660ddf3
mov dword [rbp - 8], 0xe576e98e
mov dword [rbp - 4], 0x3e06748c
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r8
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, edx
lea r8, [rbp - 0x10]
mov edx, 0xc8000006
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rsp + 0x68]
test eax, eax
cmovne rcx, rsi
mov qword [rsp + 0x68], rcx
xchg qword [rsi + 0x18], rcx
mov rbx, qword [rsp + 0x68]
xor r8d, r8d
lea edx, [r8 + 0x10]
cmp rbx, rsi
cmove rbx, r8
test rbx, rbx
je 0x14001e0c3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x18], eax
mov word [rbp], r12w
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x14001e006
mov dword [rsp + 0x58], 0x2719
mov byte [rsp + 0x5c], 1
lea r12, [0x140195cb8]
mov qword [rsp + 0x60], r12
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x38], xmm0
jmp 0x14001e02f
mov r8d, 0x1c
cmp r12d, 2
cmove r8d, edx
lea rdx, [rbp]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
setne dl
lea rcx, [rdi + 0x38]
call fcn.14001c280
xor r8d, r8d
cmp byte [rdi + 0x3c], 0
je 0x14001e05b
cmp dword [rdi + 0x38], 0x2726
jne 0x14001e052
mov rax, qword [rdi + 0x40]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rdx
je 0x14001e05b
mov rcx, qword [rsi + 8]
jmp 0x14001e144
mov byte [rdi + 0x60], 1
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov r8d, dword [rbp + 0x98]
mov rdx, r13
mov rcx, qword [r15]
call rbx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14001e0b2
cmp eax, 0x3e5
je 0x14001e0b2
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.14001b8f0
jmp 0x14001e14c
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.14001b850
jmp 0x14001e14c
xor eax, eax
lock cmpxchg qword [rsi + 0x10], r8
mov r14, rax
jne 0x14001e10a
mov rax, qword [rsi]
mov r10, qword [rax]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xor edx, edx
lea rcx, [rsp + 0x78]
call fcn.1400514a0
mov r9, qword [r10 + 0x28]
lea r8, [0x1400514d0]
lea rdx, [rsp + 0x78]
mov rcx, r10
call fcn.14001a760
mov r14, rax
xchg qword [rsi + 0x10], rax
test byte [r15 + 8], 3
jne 0x14001e1a4
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x14001e173
mov dword [rsp + 0x58], 0x2719
mov byte [rsp + 0x5c], 1
lea r12, [0x140195cb8]
mov qword [rsp + 0x60], r12
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x38], xmm0
mov rcx, qword [r14 + 0x28]
mov rdx, rdi
call fcn.14001acf0
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400ba210
mov rbx, qword [rsp + 0x188]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x74], 1
lea r8, [rsp + 0x74]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
sets dl
lea rcx, [rdi + 0x38]
call fcn.14001c280
test ebx, ebx
js 0x14001e140
or byte [r15 + 8], 2
mov rcx, qword [r15]
lea r12, [0x140195cb8]
cmp rcx, 0xffffffffffffffff
jne 0x14001e1d1
mov dword [rsp + 0x58], 0x2719
mov byte [rsp + 0x5c], 1
mov qword [rsp + 0x60], r12
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x38], xmm0
jmp 0x14001e1f9
mov r8d, dword [rbp + 0x98]
mov rdx, r13
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test eax, eax
setne dl
lea rcx, [rdi + 0x38]
call fcn.14001c280
test ebx, ebx
je 0x14001e140
mov eax, dword [rdi + 0x38]
cmp eax, 0x2734
je 0x14001e20e
cmp eax, 0x2733
jne 0x14001e140
mov rax, qword [rdi + 0x40]
movabs rdx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rdx
jne 0x14001e140
xor r13d, r13d
mov dword [rsp + 0x58], r13d
mov byte [rsp + 0x5c], r13b
mov qword [rsp + 0x60], r12
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x38], xmm0
mov rsi, qword [r15]
lea rbx, [r14 + 0x30]
mov qword [rbp - 0x68], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x60], 1
cmp byte [r14 + 0x1e8], r13b
je 0x14001e27d
mov rdx, rdi
mov rcx, qword [r14 + 0x28]
call fcn.14001acf0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001e14c
lea rcx, [r14 + 0x140]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x58], rsi
movdqu xmmword [rbp - 0x50], xmm0
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x30]
call fcn.140037800
nop
lea rcx, [rbp - 0x50]
call fcn.140032120
nop
lea rcx, [rbp - 0x40]
call fcn.140032120
lea rcx, [rbp - 0x30]
call fcn.140037310
mov qword [rdi + 0x20], r13
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14001e2d2
mov qword [rcx + 0x20], rdi
jmp 0x14001e2d6
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
movzx ebx, byte [rbp - 0x18]
mov edx, 3
lea rcx, [rsp + 0x54]
call fcn.140087320
lea rcx, [rbp - 0x30]
call fcn.140011e50
lea rcx, [rsp + 0x54]
call fcn.140087400
mov rax, qword [r14 + 0x28]
lock inc dword [rax + 0x30]
test bl, bl
je 0x14001e355
mov byte [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x78], 1
mov dword [rsp + 0x54], r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
lea r9, [rsp + 0x54]
mov r8d, 1
lea rdx, [rbp - 0x78]
mov rcx, qword [r14 + 0x60]
call qword [sym.imp.WS2_32.dll_WSASend]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14001e14c