Function at 0x14019cbd4
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f]
sub rsp, 0x90
mov r12d, r8d
mov r14, rdx
mov rdi, rcx
mov r15, qword [rbp + 0x77]
xor r13d, r13d
cmp r8d, 2
je 0x14019cc17
cmp r8d, 0x17
jne 0x14019cdc8
lea eax, [r9 - 1]
mov ecx, reloc.WS2_32.dll_recv
test eax, 0xfffffffb
je 0x14019cc2f
mov rbx, r13
jmp 0x14019ccbe
xor eax, eax
lock cmpxchg qword [rdi + 0x18], r13
mov rbx, rax
mov qword [rbp - 0x29], rax
jne 0x14019ccb7
mov dword [rbp - 0x21], 0x25a207b9
mov dword [rbp - 0x1d], 0x4660ddf3
mov dword [rbp - 0x19], 0xe576e98e
mov dword [rbp - 0x15], 0x3e06748c
mov dword [rbp + 0x57], r13d
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rbp + 0x57]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea r8, [rbp - 0x21]
mov edx, 0xc8000006
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x14019cca6
mov rax, rdi
mov qword [rbp - 0x29], rax
jmp 0x14019ccaa
mov rax, qword [rbp - 0x29]
xchg qword [rdi + 0x18], rax
mov rbx, qword [rbp - 0x29]
mov ecx, reloc.WS2_32.dll_recv
cmp rbx, rdi
cmove rbx, r13
test rbx, rbx
je 0x14019cdc8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
mov word [rbp - 9], r12w
lea rsi, [r15 + 0x38]
cmp qword [r14], 0xffffffffffffffff
jne 0x14019ccf5
mov edx, 0x2719
mov rcx, rsi
call fcn.140a866bc
jmp 0x14019cd1d
mov r8d, 0x1c
cmp r12d, 2
cmove r8d, ecx
lea rdx, [rbp - 9]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
setne dl
mov rcx, rsi
call fcn.14019925c
test byte [rsi + 0x10], 1
je 0x14019cd32
cmp qword [rsi + 0x10], 1
jne 0x14019cd39
cmp dword [rsi], r13d
setne al
jmp 0x14019cd35
mov al, r13b
test al, al
je 0x14019cd60
mov edx, 0x2726
lea rcx, [rbp - 0x21]
call fcn.140a86748
lea rdx, [rbp - 0x21]
mov rcx, rsi
call fcn.140198d28
test al, al
jne 0x14019cd60
mov rcx, qword [rdi + 8]
jmp 0x14019ce2e
mov byte [r15 + 0x70], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov rsi, qword [rbp + 0x7f]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, dword [rbp + 0x6f]
mov rdx, qword [rbp + 0x67]
mov rcx, qword [r14]
call rbx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14019cdba
cmp eax, 0x3e5
je 0x14019cdba
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
mov rcx, qword [rdi + 8]
call fcn.14019a6e4
jmp 0x14019ce3a
mov rdx, rsi
mov rcx, qword [rdi + 8]
call fcn.14019a650
jmp 0x14019ce3a
xor eax, eax
lock cmpxchg qword [rdi + 0x10], r13
mov rsi, rax
jne 0x14019ce0c
mov rax, qword [rdi]
mov r10, qword [rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
xor edx, edx
lea rcx, [rbp - 0x21]
call fcn.140a9f908
mov r9, qword [r10 + 0x28]
lea r8, [0x140a9f928]
lea rdx, [rbp - 0x21]
mov rcx, r10
call fcn.14019903c
mov rsi, rax
xchg qword [rdi + 0x10], rax
lea rdi, [r15 + 0x38]
test byte [r14 + 8], 3
jne 0x14019ce8f
cmp qword [r14], 0xffffffffffffffff
jne 0x14019ce5e
mov edx, 0x2719
mov rcx, rdi
call fcn.140a866bc
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r15
call fcn.14019a5c4
or eax, 0xffffffff
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rbp + 0x57], 1
lea r8, [rbp + 0x57]
mov edx, 0x8004667e
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
mov rcx, rdi
call fcn.14019925c
test ebx, ebx
js 0x14019ce2a
or byte [r14 + 8], 2
cmp qword [r14], 0xffffffffffffffff
jne 0x14019cea4
mov edx, 0x2719
mov rcx, rdi
call fcn.140a866bc
jmp 0x14019cecc
mov r8d, dword [rbp + 0x6f]
mov rdx, qword [rbp + 0x67]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
test eax, eax
setne dl
mov rcx, rdi
call fcn.14019925c
test ebx, ebx
je 0x14019ce2a
mov edx, 0x2734
lea rcx, [rbp - 0x21]
call fcn.140a86748
lea rdx, [rbp - 0x21]
mov rcx, rdi
call fcn.140198d28
test al, al
jne 0x14019cf0c
mov edx, 0x2733
lea rcx, [rbp - 0x21]
call fcn.140a86748
lea rdx, [rbp - 0x21]
mov rcx, rdi
call fcn.140198d28
test al, al
je 0x14019ce2a
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r13
movups xmmword [rdi], xmm0
movsd xmm0, qword [rbp - 0x11]
movsd qword [rdi + 0x10], xmm0
mov rbx, qword [r14]
lea rcx, [rsi + 0x30]
mov qword [rbp - 0x21], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x19], 1
cmp byte [rsi + 0x1e8], r13b
je 0x14019cf54
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r15
call fcn.14019a5c4
jmp 0x14019cf7c
lea rcx, [rsi + 0x110]
mov r8, r15
mov rdx, rbx
call fcn.140a7f5a0
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
test al, al
je 0x14019cf7c
lea rcx, [rsi + 0x58]
call fcn.14019b808
nop
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 3
jmp 0x14019ce3d