Function at 0x14041bb90
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14065ef68]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rdx]
mov rsi, rdx
mov rbx, rcx
cmp eax, 2
je 0x14041bc00
cmp eax, 0x17
jne 0x14041bc8e
mov ecx, dword [rdx + 0x18]
lea r15d, [rax + 5]
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x50], 0
mov word [rsp + 0x38], ax
test ecx, ecx
jne 0x14041bbeb
mov ecx, dword [rbx + 0x18]
call fcn.14041edc0
movups xmm0, xmmword [rsi + 4]
mov word [rsp + 0x3a], ax
movups xmmword [rsp + 0x40], xmm0
jmp 0x14041bc34
mov ecx, dword [rdx + 0x18]
mov eax, 2
mov word [rsp + 0x38], ax
mov r15d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x40], 0
test ecx, ecx
jne 0x14041bc23
mov ecx, dword [rbx + 0x18]
call fcn.14041edc0
mov word [rsp + 0x3a], ax
mov eax, dword [rsi + 4]
mov dword [rsp + 0x3c], eax
mov rax, qword [rbx + 0x12200]
xor r8d, r8d
mov ecx, dword [rsi]
lea edx, [r8 + 1]
test rax, rax
je 0x14041bc54
mov r9, qword [rbx + 0x12208]
call qword [rax]
jmp 0x14041bc5a
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14041bc8e
mov edx, dword [rsi]
mov r8, rbx
mov rcx, rax
call fcn.14041b650
mov r8, qword [rbx + 0x12200]
test eax, eax
jns 0x14041bcb6
mov rcx, rdi
test r8, r8
je 0x14041bcf9
mov rdx, qword [rbx + 0x12208]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1402f2210
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov dword [rsp + 0x30], 1
test r8, r8
jne 0x14041bd01
lea edx, [r8 + 6]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
mov rcx, rdi
lea r9, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14041bd01
mov rax, qword [rbx + 0x12200]
mov rcx, rdi
test rax, rax
jne 0x14041bda6
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14041bc8e
mov rax, qword [rbx + 0x121f0]
test rax, rax
je 0x14041bd55
mov r8, qword [rbx + 0x121f8]
mov edx, 1
mov rcx, rdi
call rax
mov r14d, eax
test eax, eax
jns 0x14041bd55
mov r8, qword [rbx + 0x12200]
mov rcx, rdi
test r8, r8
je 0x14041bd47
mov rdx, qword [rbx + 0x12208]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r14d
jmp 0x14041bc93
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r14d
jmp 0x14041bc93
mov rax, qword [rbx + 0x12200]
lea rdx, [rsp + 0x38]
mov r8d, r15d
mov rcx, rdi
test rax, rax
je 0x14041bd78
mov r9, qword [rbx + 0x12208]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x14041bd7e
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14041bdb5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 1
jbe 0x14041bdb5
mov rax, qword [rbx + 0x12200]
mov rcx, rdi
test rax, rax
je 0x14041bcf9
mov rdx, qword [rbx + 0x12208]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14041bc8e
mov rax, qword [rbx + 0x121e0]
test rax, rax
je 0x14041bddd
mov r8, qword [rbx + 0x121e8]
mov edx, 1
mov rcx, rdi
call rax
mov r14d, eax
test eax, eax
js 0x14041bd25
mov rax, qword [rbx + 0x121d0]
test rax, rax
je 0x14041bdfc
mov rcx, qword [rbx + 0x121d8]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 1]
call rax
mov dword [rsi + 0x48], 0
mov qword [rsi + 0x28], rdi
inc dword [rbx + 0x1a0]
mov eax, dword [rbx + 0x1a0]
mov dword [rsi + 0x60], eax
xor eax, eax
jmp 0x14041bc93