Function at 0x1400ce5ab
Capabilities:
Connect socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xaf8
mov rbp, rdx
mov r12, rcx
mov qword [rsp + 0xc8], r8
mov qword [rsp + 0xd0], r9
mov r13, qword [rdx + 0x68]
mov esi, dword [r13 + 0x18]
cmp esi, 0x3b9aca00
jne 0x1400ce5f9
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x80], rax
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x40], eax
jmp 0x1400ce61c
mov rdi, qword [r13 + 0x10]
call fcn.14009fe60
mov rcx, rax
mov r8, rdi
mov r9d, esi
call fcn.1400bfea0
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x40], edx
lea rdx, [r13 + 0x50]
lea rsi, [rsp + 0x160]
mov rcx, rsi
call fcn.1400ce4c1
cmp byte [rsi + 0x4c], 4
lea rdi, [rsp + 0xc8]
lea rcx, [fcn.140095849]
jne 0x1400ce6a2
lea rax, [rsp + 0x7d8]
mov qword [rax], rdi
mov qword [rax + 8], rcx
lea rcx, [rsp + 0xb60]
mov qword [rax + 0x10], rcx
lea rcx, str.invalid_type:___expected
lea rdx, [rsp + 0x3b0]
mov qword [rdx], rcx
mov ecx, 2
mov qword [rdx + 8], rcx
and qword [rdx + 0x20], 0
lea r8, [0x1400227d0]
mov qword [rax + 0x18], r8
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rcx
lea rcx, [rsp + 0x2a0]
call fcn.14007e263
jmp 0x1400ce704
lea rax, [rsp + 0x1a8]
lea rcx, [rsp + 0x7d8]
mov qword [rcx], rsi
lea rdx, [0x140002e1b]
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rax
lea rax, str.invalid_type:___expected
lea rdx, [rsp + 0x3b0]
mov qword [rdx], rax
mov eax, 2
mov qword [rdx + 8], rax
and qword [rdx + 0x20], 0
lea r8, [0x1400228d0]
mov qword [rcx + 0x18], r8
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rax
lea rcx, [rsp + 0x2a0]
call fcn.14007e263
movups xmm0, xmmword [rsp + 0x2a0]
movaps xmmword [rsp + 0xa0], xmm0
mov rax, qword [rsp + 0x2b0]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rbp + 0x70]
mov rax, qword [rcx + 0x10]
lock inc qword [rax]
jle 0x1400cfda7
mov r10, qword [rcx + 0x18]
mov qword [rsp + 0x640], rax
mov qword [rsp + 0x648], r10
mov rcx, qword [r10 + 0x10]
dec rcx
and rcx, 0xfffffffffffffff0
lea rdx, [rcx + rax]
add rdx, 0x10
mov r8, qword [rsp + 0xa0]
mov r9, qword [rsp + 0xb0]
lea rcx, [rsp + 0x6f0]
call qword [r10 + 0x18]
mov r14, qword [rsp + 0x6f0]
test r14, r14
je 0x1400ce7a3
mov r15, qword [rsp + 0x6f8]
mov rax, qword [rsp + 0x700]
mov qword [rsp + 0x88], rax
jmp 0x1400ce895
mov rsi, qword [rsp + 0x6f8]
mov qword [rsp + 0xe0], rsi
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x7d8]
mov qword [rcx], rax
lea rax, str.resolve_dns_name_
lea rdx, [rsp + 0x3b0]
mov qword [rdx], rax
mov qword [rdx + 8], 2
and qword [rdx + 0x20], 0
lea rax, [0x140002e1b]
mov qword [rcx + 8], rax
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], 1
lea rcx, [rsp + 0x1b0]
call fcn.14007e263
movups xmm0, xmmword [rsp + 0x1b0]
lea rdx, [rsp + 0x3b0]
movups xmmword [rdx + 0x60], xmm0
mov rax, qword [rsp + 0x1c0]
mov qword [rdx + 0x70], rax
mov eax, 2
mov dword [rdx + 8], eax
and qword [rdx + 0x78], 0
mov byte [rdx + 0x88], 2
mov dword [rdx], eax
lea rcx, [rsp + 0x7d8]
mov r8, rsi
call fcn.1400e135f
lea rdx, [rsp + 0x7f8]
mov esi, dword [rdx - 0x20]
mov ebx, dword [rdx - 0x1c]
mov r14, qword [rdx - 0x18]
mov r15, qword [rdx - 0x10]
mov rdi, qword [rdx - 8]
lea rcx, [rsp + 0x2a0]
mov r8d, 0xf0
call sub.msvcrt.dll_memcpy
cmp esi, 3
jne 0x1400cf0ed
mov qword [rsp + 0x88], rdi
lea rdi, [rsp + 0xc8]
lea rcx, [rsp + 0x640]
call fcn.1400da73e
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400cf010
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x98], rbp
lea rax, [rbp + 0x68]
mov qword [rsp + 0xc0], rax
lea rax, [rsp + 0x160]
movzx eax, byte [rax + 0x4c]
mov dword [rsp + 0x90], eax
lea rax, [rsp + 0x68]
and qword [rax], 0
mov rax, rcx
shl rax, 5
add rax, r14
mov qword [rsp + 0x2a0], r14
mov qword [rsp + 0x2a8], r15
mov qword [rsp + 0x2b0], r14
mov qword [rsp + 0x2b8], rax
lea r13, [rsp + 0x3c0]
xor ecx, ecx
mov qword [rsp + 0x58], rcx
mov r12, qword [rsp + 0x80]
lea rax, [rsp + 0x7d8]
lea rcx, str.No_ip_address_for
lea rdx, [rsp + 0x3b0]
mov qword [rdx], rcx
mov ecx, 1
mov qword [rdx + 8], rcx
and qword [rdx + 0x20], 0
mov qword [rax], rdi
lea r8, [fcn.140095849]
mov qword [rax + 8], r8
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rcx
lea rcx, [rsp + 0x628]
call fcn.14007e263
movups xmm0, xmmword [rsp + 0x628]
lea rsi, [rsp + 0x3b0]
movups xmmword [rsi + 0x54], xmm0
mov rax, qword [rsp + 0x638]
mov qword [rsi + 0x64], rax
mov eax, 2
mov dword [r12], eax
mov dword [r12 + 8], eax
lea rdi, [r12 + 0xc]
mov ecx, 0x1b
rep movsd dword [rdi], dword [rsi]
and qword [r12 + 0x78], 0
mov byte [r12 + 0x88], 2
mov rcx, r14
mov rdx, r15
call fcn.1400e1894
jmp 0x1400cfd0b
lea rcx, [r12 + 0x20]
lea rdx, [rsp + 0x2a0]
mov r8d, 0xf0
call sub.msvcrt.dll_memcpy
mov dword [r12 + 4], ebx
mov qword [r12 + 8], r14
mov qword [r12 + 0x10], r15
mov qword [r12 + 0x18], rdi
mov dword [r12], esi
lea rcx, [rsp + 0x640]
call fcn.1400da73e
jmp 0x1400cfd0b