Function at 0x140013c00
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
mov r11, rsp
push rsi
push r13
push r14
push r15
sub rsp, 0x188
mov rax, qword [0x140374a58]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor r13d, r13d
mov r14, rcx
mov esi, r13d
test rcx, rcx
je 0x140013ede
mov r15, qword [rcx + 8]
test r15, r15
je 0x140013ede
mov qword [r11 + 0x18], rbp
mov rbp, qword [r15 + 0x40]
mov qword [r11 + 0x20], rdi
mov rdi, qword [rcx + 0x10]
call fcn.140014090
test eax, eax
jne 0x140013e01
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
cmp qword [rbp + 0x3e8], rsi
je 0x140013d31
mov qword [rsp + 0x1b8], rbx
mov ebx, r13d
mov qword [rsp + 0x180], r12
lea r12, str.TLSv1.0
nop dword [rax + rax]
mov rdx, qword [rbx + r12]
mov rcx, qword [rbp + 0x3e8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140013cca
or esi, dword [rbx + r12 + 8]
add rbx, 0x10
cmp rbx, 0x40
jb 0x140013cb0
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0xc8
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp + 0x3e8]
lea r8, [rsp + 0xa0]
mov r9d, getservbyname
mov edx, esi
call fcn.140014400
mov r12, qword [rsp + 0x180]
mov rbx, qword [rsp + 0x1b8]
mov dword [rsp + 0x78], eax
test eax, eax
je 0x140013dec
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x80], rax
lea rax, [rdi + 8]
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x98], 0x1c
cmp qword [rax], r13
je 0x140013d5a
mov dword [rsp + 0x54], 1
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0x440]
test rax, rax
je 0x140013e59
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x140013e59
lea rdx, str.TLSv1.0
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x140013d96
or dword [rsp + 0x88], 0x80
mov rcx, qword [rbp + 0x440]
lea rdx, str.TLSv1.1
mov rcx, qword [rcx + 0xc0]
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x140013dc0
or dword [rsp + 0x88], 0x200
mov rcx, qword [rbp + 0x440]
lea rdx, str.TLSv1.2
mov rcx, qword [rcx + 0xc0]
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x140013e59
mov eax, dword [rsp + 0x88]
bts eax, 0xb
jmp 0x140013e60
test esi, esi
jne 0x140013d31
mov edx, 0x80090331
mov rcx, r15
call fcn.14001d970
cmp dword [rdi + 0x38], r13d
je 0x140013e11
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rdi + 8]
mov dword [rdi + 0x38], r13d
test rcx, rcx
je 0x140013e24
call qword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov qword [rdi + 8], r13
mov al, 1
mov rbp, qword [rsp + 0x1c0]
mov rdi, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14005bc60
add rsp, 0x188
pop r15
pop r14
pop r13
pop rsi
ret
mov eax, dword [rsp + 0x88]
test eax, eax
mov qword [rsp + 0x40], r13
mov ecx, 0xa80
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
cmove eax, ecx
xor r9d, r9d
mov dword [rsp + 0x88], eax
xor ecx, ecx
lea rax, [rdi + 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], r13
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call sub.Secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x140013eb3
mov edx, eax
jmp 0x140013df9
mov rcx, r14
mov byte [rdi + 0x28], 1
call fcn.14001c930
test eax, eax
jne 0x140013e01
mov rcx, r14
call fcn.14001dc00
test al, al
je 0x140013e01
xor al, al
jmp 0x140013e2a
mov al, 1
jmp 0x140013e3a