Function at 0x14001bbd0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14009c010]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r15, rdx
mov r12, rcx
mov qword [rbp - 0x40], rdx
xor r13d, r13d
mov ebx, r13d
mov dword [rsp + 0x30], ebx
mov rdi, qword [rcx]
movzx eax, byte [rdi + 0x30]
test al, al
je 0x14001bc33
mov byte [rdx], al
mov eax, dword [rdi + 0x38]
mov dword [rdx + 8], eax
lea rdx, [rdi + 0x40]
lea rcx, [r15 + 0x10]
call fcn.140002f30
jmp 0x14001beb7
mov rcx, qword [rdi + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x14001bc53
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [r12]
mov qword [rax + 0x28], 0xffffffffffffffff
mov rdi, qword [r12]
mov dword [rbp], r13d
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov dword [rbp + 4], 2
mov dword [rbp + 8], 1
mov dword [rbp + 0xc], 6
mov qword [rbp - 0x40], r13
mov ecx, 0x9467f52c
call fcn.140002180
mov rsi, rax
movzx edx, word [rdi + 0x20]
lea rcx, [rbp - 0x28]
call fcn.14001b850
nop
cmp qword [rax + 0x18], 0x10
jb 0x14001bca5
mov rax, qword [rax]
mov rcx, qword [r12]
cmp qword [rcx + 0x18], 0x10
jb 0x14001bcb3
mov rcx, qword [rcx]
lea r9, [rbp - 0x40]
lea r8, [rbp]
mov rdx, rax
call rsi
test eax, eax
setne dil
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14001bd01
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bcfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bee1
call fcn.140050f34
test dil, dil
jne 0x14001be97
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x14001be97
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14001be80
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14001be77
mov dword [rbp - 0x38], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x38]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001bdd3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], setsockopt
mov byte [rbp - 0x20], 0
mov dword [rbp - 0x28], eax
xor r8d, r8d
lea rdx, [0x14008f908]
lea rcx, [rbp - 0x20]
call fcn.140001bf0
nop
mov byte [rsp + 0x38], 1
mov eax, dword [rbp - 0x28]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x58], xmm1
or ebx, 0x40
or ebx, 0x30
mov al, 1
jmp 0x14001bddd
mov byte [rsp + 0x38], 0
or ebx, 0x10
xor al, al
or ebx, 2
mov dword [rsp + 0x30], ebx
test al, al
jne 0x14001be4a
mov dword [rbp - 0x30], 0x40000
mov dword [rsp + 0x20], 4
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14001be33
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14001b930
or ebx, 0x180
movzx eax, byte [rsp + 0x68]
jmp 0x14001be3e
mov byte [rsp + 0x68], 0
bts ebx, 7
xor al, al
or ebx, 4
test al, al
jne 0x14001be4a
mov r14b, 1
jmp 0x14001be4d
xor r14b, r14b
test bl, 4
je 0x14001be60
and ebx, 0xfffffffb
lea rcx, [rsp + 0x68]
call fcn.140013b40
nop
test bl, 2
je 0x14001be72
and ebx, 0xfffffffd
lea rcx, [rsp + 0x38]
call fcn.140013b40
test r14b, r14b
jne 0x14001be89
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
jmp 0x14001bd0e
mov rax, qword [r12]
mov qword [rax + 0x28], rsi
mov byte [r15], 0
jmp 0x14001bea8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, r15
call fcn.14001b930
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x14001beb7
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, r15
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140050ed0
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14005d2f0
nop
int3