Function at 0x1003b890
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov r11, rsp
sub rsp, 0x168
mov rax, qword [0x1005d650]
mov qword [rsp + 0x130], rax
xor eax, eax
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0xdf], rax
mov qword [r11 - 0xd7], rax
mov qword [r11 - 0xcf], rax
mov qword [r11 - 0x18], rdi
mov qword [rsp + 0x48], rax
or dword [rsp + 0x48], 2
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov rbp, rdx
mov byte [r11 - 0xe0], r12b
mov rdi, rcx
mov dword [rcx + 0xac], r12d
mov qword [rsp + 0x50], rax
lea rcx, [r11 - 0xe0]
lea rdx, [0x1004e088]
mov esi, 0xffffffff
mov dword [rsp + 0xa1], eax
mov word [rsp + 0xa5], ax
mov byte [rsp + 0xa7], al
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x50], 1
call qword [sym.imp.msvcrt.dll_sprintf]
mov rax, qword [0x10069708]
test rax, rax
jne 0x1003b965
xor ecx, ecx
call fcn.1002f9c0
mov qword [0x10069708], rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x88]
mov rcx, rbp
mov qword [rsp + 0x188], rbx
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jne 0x1003bb03
lea r8d, [rbx + 0x7f]
lea rcx, [rsp + 0xb1]
xor edx, edx
mov byte [rsp + 0xb0], r12b
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x3c], 0x78
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAAddressToStringA]
lea r9, [rsp + 0xb0]
lea rdx, str.Connect_To:__s__s_
lea ecx, [rbx + 4]
mov r8, rbp
call fcn.10020270
lea r9, [rsp + 0xb0]
lea rdx, str._vpnops__ssl_Ready_connect_to:__s__s_
lea ecx, [rbx + 4]
mov r8, rbp
call fcn.10020270
mov rax, qword [rsp + 0x30]
lea edx, [rbx + 1]
mov ecx, dword [rax + 4]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r12d
call qword [sym.imp.WS2_32.dll_WSASocketA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1003badd
mov rdx, qword [rsp + 0x30]
mov rcx, rax
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, esi
je 0x1003badd
mov edx, 6
lea r9, [rsp + 0x40]
mov rcx, rbx
lea r8d, [rdx - 5]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rdi
mov esi, r12d
mov qword [rdi + 0x18], rbx
call fcn.1003b7b0
xor eax, eax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x78]
mov rcx, rbx
mov qword [rsp + 0x7a], rax
mov word [rsp + 0x78], si
mov dword [rsp + 0x82], eax
mov word [rsp + 0x86], ax
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rsp + 0x78], 2
jne 0x1003badd
mov eax, dword [rsp + 0x7c]
mov dword [rdi + 0xac], eax
mov rax, qword [0x10069710]
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x1003bafe
mov cx, 2
call fcn.1002f9c0
mov qword [0x10069710], rax
mov rcx, rbx
call rax
mov r12, qword [rsp + 0x148]
mov rdi, qword [rsp + 0x150]
mov rbp, qword [rsp + 0x160]
mov rbx, qword [rsp + 0x188]
mov eax, esi
mov rsi, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x130]
call fcn.10044fa0
add rsp, 0x168
ret