Function at 0x140331e00
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 [0x1404f4fb8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rdx]
mov rsi, rdx
mov rbx, rcx
cmp eax, 2
je 0x140331e70
cmp eax, 0x17
jne 0x140331efe
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 0x140331e5b
mov ecx, dword [rbx + 0x18]
call fcn.140335030
movups xmm0, xmmword [rsi + 4]
mov word [rsp + 0x3a], ax
movups xmmword [rsp + 0x40], xmm0
jmp 0x140331ea4
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 0x140331e93
mov ecx, dword [rbx + 0x18]
call fcn.140335030
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 0x140331ec4
mov r9, qword [rbx + 0x12208]
call qword [rax]
jmp 0x140331eca
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140331efe
mov edx, dword [rsi]
mov r8, rbx
mov rcx, rax
call fcn.1403318c0
mov r8, qword [rbx + 0x12200]
test eax, eax
jns 0x140331f26
mov rcx, rdi
test r8, r8
je 0x140331f69
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.140233ef0
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 0x140331f71
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 0x140331f71
mov rax, qword [rbx + 0x12200]
mov rcx, rdi
test rax, rax
jne 0x140332016
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x140331efe
mov rax, qword [rbx + 0x121f0]
test rax, rax
je 0x140331fc5
mov r8, qword [rbx + 0x121f8]
mov edx, 1
mov rcx, rdi
call rax
mov r14d, eax
test eax, eax
jns 0x140331fc5
mov r8, qword [rbx + 0x12200]
mov rcx, rdi
test r8, r8
je 0x140331fb7
mov rdx, qword [rbx + 0x12208]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r14d
jmp 0x140331f03
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r14d
jmp 0x140331f03
mov rax, qword [rbx + 0x12200]
lea rdx, [rsp + 0x38]
mov r8d, r15d
mov rcx, rdi
test rax, rax
je 0x140331fe8
mov r9, qword [rbx + 0x12208]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x140331fee
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140332025
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 1
jbe 0x140332025
mov rax, qword [rbx + 0x12200]
mov rcx, rdi
test rax, rax
je 0x140331f69
mov rdx, qword [rbx + 0x12208]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140331efe
mov rax, qword [rbx + 0x121e0]
test rax, rax
je 0x14033204d
mov r8, qword [rbx + 0x121e8]
mov edx, 1
mov rcx, rdi
call rax
mov r14d, eax
test eax, eax
js 0x140331f95
mov rax, qword [rbx + 0x121d0]
test rax, rax
je 0x14033206c
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 0x140331f03