Function at 0x1403f4cd0
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 [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [rdx]
mov rsi, rdx
mov rbx, rcx
cmp eax, 2
je 0x1403f4d40
cmp eax, 0x17
jne 0x1403f4dce
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 0x1403f4d2b
mov ecx, dword [rbx + 0x18]
call fcn.1403f7f00
movups xmm0, xmmword [rsi + 4]
mov word [rsp + 0x3a], ax
movups xmmword [rsp + 0x40], xmm0
jmp 0x1403f4d74
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 0x1403f4d63
mov ecx, dword [rbx + 0x18]
call fcn.1403f7f00
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 0x1403f4d94
mov r9, qword [rbx + 0x12208]
call qword [rax]
jmp 0x1403f4d9a
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1403f4dce
mov edx, dword [rsi]
mov r8, rbx
mov rcx, rax
call fcn.1403f4790
mov r8, qword [rbx + 0x12200]
test eax, eax
jns 0x1403f4df6
mov rcx, rdi
test r8, r8
je 0x1403f4e39
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.140284180
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 0x1403f4e41
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 0x1403f4e41
mov rax, qword [rbx + 0x12200]
mov rcx, rdi
test rax, rax
jne 0x1403f4ee6
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1403f4dce
mov rax, qword [rbx + 0x121f0]
test rax, rax
je 0x1403f4e95
mov r8, qword [rbx + 0x121f8]
mov edx, 1
mov rcx, rdi
call rax
mov r14d, eax
test eax, eax
jns 0x1403f4e95
mov r8, qword [rbx + 0x12200]
mov rcx, rdi
test r8, r8
je 0x1403f4e87
mov rdx, qword [rbx + 0x12208]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, r14d
jmp 0x1403f4dd3
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r14d
jmp 0x1403f4dd3
mov rax, qword [rbx + 0x12200]
lea rdx, [rsp + 0x38]
mov r8d, r15d
mov rcx, rdi
test rax, rax
je 0x1403f4eb8
mov r9, qword [rbx + 0x12208]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1403f4ebe
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1403f4ef5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 1
jbe 0x1403f4ef5
mov rax, qword [rbx + 0x12200]
mov rcx, rdi
test rax, rax
je 0x1403f4e39
mov rdx, qword [rbx + 0x12208]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1403f4dce
mov rax, qword [rbx + 0x121e0]
test rax, rax
je 0x1403f4f1d
mov r8, qword [rbx + 0x121e8]
mov edx, 1
mov rcx, rdi
call rax
mov r14d, eax
test eax, eax
js 0x1403f4e65
mov rax, qword [rbx + 0x121d0]
test rax, rax
je 0x1403f4f3c
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 0x1403f4dd3