Function at 0x14013b670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x1a8
mov rax, qword [0x14015a198]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x1b0]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x1b8]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x1b0]
lea rax, [rcx + rax + 0x548]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x50], 0
xor eax, eax
test eax, eax
jne 0x14013b6dc
xor eax, eax
test eax, eax
jne 0x14013b6e2
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
cmp qword [rax], 0
jne 0x14013b701
mov eax, 0x23
jmp 0x14013bb79
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
mov ecx, dword [rcx + 0x5c]
cmp dword [rax + 0x60], ecx
je 0x14013b7e1
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x60]
and eax, 8
test eax, eax
jne 0x14013b743
lea rdx, str.schannel:_failed_to_setup_sequence_detection
mov rcx, qword [rsp + 0x30]
call fcn.1400fc290
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x60]
and eax, 4
test eax, eax
jne 0x14013b767
lea rdx, str.schannel:_failed_to_setup_replay_detection
mov rcx, qword [rsp + 0x30]
call fcn.1400fc290
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x60]
and eax, 0x10
test eax, eax
jne 0x14013b78b
lea rdx, str.schannel:_failed_to_setup_confidentiality
mov rcx, qword [rsp + 0x30]
call fcn.1400fc290
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x60]
and eax, 0x100
test eax, eax
jne 0x14013b7b1
lea rdx, str.schannel:_failed_to_setup_memory_allocation
mov rcx, qword [rsp + 0x30]
call fcn.1400fc290
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x60]
and eax, 0x8000
test eax, eax
jne 0x14013b7d7
lea rdx, str.schannel:_failed_to_setup_stream_orientation
mov rcx, qword [rsp + 0x30]
call fcn.1400fc290
mov eax, 0x23
jmp 0x14013bb79
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
movzx eax, byte [rax + 0x6a]
test eax, eax
je 0x14013b8cc
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov rax, qword [rax + 8]
lea r8, [rsp + 0x80]
mov edx, 0x23
mov rcx, rax
mov rax, qword [0x140163a70]
call qword [rax + 0x58]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14013b843
lea rdx, str.schannel:_failed_to_retrieve_ALPN_result
mov rcx, qword [rsp + 0x30]
call fcn.1400fc290
mov eax, 0x23
jmp 0x14013bb79
cmp dword [rsp + 0x80], 1
jne 0x14013b892
xor eax, eax
test eax, eax
jne 0x14013b84d
movzx eax, byte [rsp + 0x88]
cmp eax, 8
jne 0x14013b890
mov r8d, 8
lea rdx, [rsp + 0x89]
lea rcx, [0x14015e930]
call fcn.140073180
test eax, eax
jne 0x14013b890
mov rax, qword [rsp + 0x1b0]
mov dword [rax + 0xb20], 2
jmp 0x14013b898
xor eax, eax
test eax, eax
jne 0x14013b892
mov rax, qword [rsp + 0x1b0]
cmp dword [rax + 0xb20], 3
jne 0x14013b8b3
mov dword [rsp + 0x40], 2
jmp 0x14013b8bb
mov dword [rsp + 0x40], 0xffffffff
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x1b0]
call fcn.1400f38e0
mov rax, qword [rsp + 0x1b0]
cmp dword [rax + 0x3dc], 2
jne 0x14013b938
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x1b0]
cmp qword [rcx + rax + 0x4c0], 0xffffffffffffffff
jne 0x14013b903
mov dword [rsp + 0x44], 0
jmp 0x14013b90b
mov dword [rsp + 0x44], 1
movsxd rax, dword [rsp + 0x44]
imul rax, rax, 0x18
mov rcx, qword [rsp + 0x1b0]
cmp dword [rcx + rax + 0x578], 2
je 0x14013b938
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0xb13]
mov dword [rsp + 0x48], eax
jmp 0x14013b948
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0xa53]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x14013ba7c
mov qword [rsp + 0x58], 0
mov rcx, qword [rsp + 0x1b0]
call fcn.14010ddd0
mov r9d, dword [rsp + 0x1b8]
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x1b0]
call fcn.14010d940
movzx eax, al
test eax, eax
jne 0x14013b997
mov dword [rsp + 0x4c], 1
jmp 0x14013b99f
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x14013b9e1
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov rax, qword [rax]
cmp qword [rsp + 0x58], rax
je 0x14013b9e1
xor eax, eax
test eax, eax
jne 0x14013b9c4
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x1b0]
call fcn.14010d800
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14013ba6f
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov r9d, dword [rsp + 0x1b8]
mov r8d, 0x20
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x1b0]
call fcn.14010d3b0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x14013ba49
mov rcx, qword [rsp + 0x1b0]
call fcn.14010dd80
lea rdx, str.schannel:_failed_to_store_credential_handle
mov rcx, qword [rsp + 0x30]
call fcn.1400fc290
mov eax, dword [rsp + 0x24]
jmp 0x14013bb79
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov rax, qword [rax]
mov eax, dword [rax + 0x18]
inc eax
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx]
mov dword [rcx + 0x18], eax
xor eax, eax
test eax, eax
jne 0x14013ba69
mov rcx, qword [rsp + 0x1b0]
call fcn.14010dd80
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax + 0xab0]
test eax, eax
je 0x14013bb6b
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov rax, qword [rax + 8]
lea r8, [rsp + 0x50]
mov edx, 0x53
mov rcx, rax
mov rax, qword [0x140163a70]
call qword [rax + 0x58]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14013bacf
cmp qword [rsp + 0x50], 0
jne 0x14013baea
lea rdx, str.schannel:_failed_to_retrieve_remote_cert_context
mov rcx, qword [rsp + 0x30]
call fcn.1400fc290
mov eax, 0x3c
jmp 0x14013bb79
lea r8, [rsp + 0x3c]
lea rdx, [0x14013bc90]
mov rcx, qword [rsp + 0x50]
call fcn.14013bcd0
mov edx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
call fcn.14010d1a0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x14013bb54
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x70], eax
lea r8, [rsp + 0x60]
lea rdx, [0x14013bba0]
mov rcx, qword [rsp + 0x50]
call fcn.14013bcd0
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x50]
call fcn.14013fb40
cmp dword [rsp + 0x24], 0
je 0x14013bb6b
mov eax, dword [rsp + 0x24]
jmp 0x14013bb79
mov rax, qword [rsp + 0x28]
mov dword [rax + 4], 5
xor eax, eax
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140043aa0
add rsp, 0x1a8
ret