Function at 0x1400c85a0
Capabilities:
Get remote cert context via schannel

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1f8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x160], xmm6
mov qword [rbp + 0x158], 0xfffffffffffffffe
mov rdi, rdx
mov r12, rcx
lea rax, [rdx + 0x44]
mov qword [rbp + 0x20], rax
lea rax, [rdx + 0xa0]
mov qword [rbp + 0x18], rax
lea rax, [rdx + 0x10]
mov qword [rbp - 0x20], rax
lea rax, [rdx + 0xc0]
mov qword [rbp + 0x78], rax
xorps xmm6, xmm6
movzx eax, byte [rdi + 0x40]
test rax, rax
jne 0x1400c9567
movzx r15d, byte [rdi + 0x41]
movzx eax, byte [rdi + 0x42]
movzx ecx, byte [rdi + 0x43]
movzx r13d, byte [rdi + 0x44]
mov rsi, qword [rdi + 0xb8]
mov rdx, qword [rdi + 0xb0]
cmp rsi, rdx
jne 0x1400c8660
test r15b, r15b
mov r15, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
je 0x1400c864f
cmp qword [rdi + 0x38], 0
je 0x1400c973e
cmp byte [rdi + 0x40], 0
je 0x1400c8729
or r13b, cl
jne 0x1400c873f
jmp 0x1400c8732
mov byte [rbp + 0x154], cl
mov byte [rbp + 0xe0], al
mov rbx, r14
mov r14, r12
xor r12d, r12d
nop word cs:[rax + rax]
mov rax, rdx
sub rax, rsi
jb 0x1400c9758
mov r8, qword [rdi + 0x38]
test r8, r8
je 0x1400c973e
mov r9, qword [rdi + 0xa0]
add r9, rsi
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0xf0]
mov rdx, qword [rbp - 0x20]
call fcn.140165530
mov rcx, qword [rbp + 0xf0]
cmp rcx, 2
je 0x1400c9532
mov rax, qword [rbp + 0xf8]
test rcx, rcx
jne 0x1400c953c
add r12, rax
add rsi, rax
mov qword [rdi + 0xb8], rsi
mov rdx, qword [rdi + 0xb0]
cmp rsi, rdx
jne 0x1400c8680
test r12, r12
mov r12, r14
mov r14, rbx
movzx eax, byte [rbp + 0xe0]
movzx ecx, byte [rbp + 0x154]
je 0x1400c862e
cmp byte [rdi + 0x40], 0
mov r15, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
jne 0x1400c863a
mov byte [rdi + 0x41], 1
jmp 0x1400c863a
mov byte [rdi + 0x41], 0
or r13b, cl
jne 0x1400c873f
cmp byte [rdi + 0x122], 0
je 0x1400c8cc3
test al, al
je 0x1400c94be
cmp qword [rdi + 0xf8], 0
je 0x1400c877e
lea rcx, [rbp + 0xf0]
mov rdx, rdi
call fcn.1400ca490
cmp qword [rbp + 0xf0], 0
mov rax, qword [rbp + 0xf8]
jne 0x1400c95a0
test rax, rax
je 0x1400c958c
mov rsi, qword [rdi + 0x98]
movzx eax, byte [0x14023c318]
mov rax, qword [0x14023c280]
test rax, rax
jne 0x1400c87ae
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x1400c9769
mov qword [0x14023c280], rax
mov r8d, 0x20
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400c9769
mov r15, rax
mov rdx, qword [rdi + 0x90]
cmp rsi, rdx
ja 0x1400c977a
mov rax, qword [rdi + 0x80]
mov dword [r15], esi
mov dword [r15 + 4], 2
mov qword [r15 + 8], rax
movups xmmword [r15 + 0x10], xmm6
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xc8], 2
mov qword [rbp + 0xd0], 2
mov rdx, qword [rdi + 0x108]
mov r13d, 2
test rdx, rdx
je 0x1400c88c0
mov r8, qword [rdi + 0x118]
mov qword [rbp + 0x10], 2
mov qword [rbp + 8], r15
lea rcx, [rbp + 0xf0]
call fcn.140150400
mov rax, qword [rbp + 0xf0]
mov r14, qword [rbp + 0x100]
test rax, rax
je 0x1400c88c0
mov rsi, qword [rbp + 0xf8]
mov r15, rax
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x130], r14
mov edx, 2
lea rcx, [rbp + 0xc0]
call fcn.140160d80
mov rdx, qword [rbp + 0xc0]
mov r13, qword [rbp + 0xd0]
mov rax, r13
shl rax, 4
mov dword [rdx + rax], esi
mov dword [rdx + rax + 4], shutdown
mov qword [rdx + rax + 8], r14
inc r13
mov qword [rbp + 0xd0], r13
mov rcx, r15
mov r15, rdx
jmp 0x1400c88c2
xor ecx, ecx
mov dword [rbp - 8], 0
mov dword [rbp - 4], r13d
mov rbx, r15
mov qword [rbp], r15
movabs rax, 0x200000000
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], 0
movabs rax, 0x1100000000
mov qword [rbp + 0x100], rax
lea rax, [rbp + 0x100]
movups xmmword [rax + 8], xmm6
mov qword [rax + 0x18], 0
movabs rax, 0x300000000
mov qword [rbp + 0x40], rax
lea rax, [rbp + 0xf0]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x9c], 0
cmp byte [rdi + 0x122], 0
mov qword [rbp + 0x148], rcx
je 0x1400c89c0
cmp byte [rdi + 0x123], 0
mov edx, 0
mov r8, qword [rbp + 0x78]
cmove rdx, r8
mov rax, qword [rdi + 0x58]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x138], rcx
mov qword [rbp + 0x130], r14
lea rax, [rbp + 0x9c]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
lea rcx, [rbp + 0x50]
lea r8, [rbp - 8]
mov r9d, 0x1011c
call qword [sym.imp.secur32.dll_AcceptSecurityContext]
jmp 0x1400c8a55
cmp byte [rdi + 0x120], 0
mov rax, qword [rdi + 0xd0]
mov r8d, 0
cmovne r8, rax
test rax, rax
cmove r8, rax
mov rax, qword [rdi + 0x58]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x138], rcx
mov qword [rbp + 0x130], r14
lea rax, [rbp + 0x9c]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x78]
mov r9d, 0x9819c
call qword [sym.imp.secur32.dll_InitializeSecurityContextW]
mov esi, eax
lea r15, [rbp + 0x100]
nop
lea rax, [rbp + 0x120]
cmp r15, rax
je 0x1400c8aa0
mov rcx, qword [r15 + 8]
add r15, 0x10
test rcx, rcx
je 0x1400c8a60
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x130], r14
call qword [sym.imp.secur32.dll_FreeContextBuffer]
jmp 0x1400c8a60
cmp esi, 0x80090318
je 0x1400c8c09
test esi, esi
mov qword [rbp + 0x80], r12
je 0x1400c8b55
cmp esi, 0x90312
jne 0x1400c960b
mov byte [rdi + 0x123], 0
cmp r13, 1
jbe 0x1400c96e2
cmp dword [rbx + 0x14], 5
jne 0x1400c8c86
mov r13, qword [rdi + 0x98]
mov eax, dword [rbx + 0x10]
mov rsi, r13
mov r15, qword [rbp + 0xf8]
sub rsi, rax
jb 0x1400c9795
mov ebx, dword [rbp + 0xf0]
test eax, eax
je 0x1400c8d2b
mov rdx, qword [rdi + 0x90]
mov r12, rdx
sub r12, rsi
jb 0x1400c97ef
mov qword [rdi + 0x90], 0
test rsi, rsi
je 0x1400c8e2f
cmp rdx, rsi
je 0x1400c8e3b
mov rcx, qword [rdi + 0x80]
lea rdx, [rcx + rsi]
mov r8, r12
call sub.VCRUNTIME140.dll_memmove
jmp 0x1400c8e34
cmp r13, 1
jbe 0x1400c9710
cmp dword [rbx + 0x14], 5
mov qword [rbp + 0x140], r14
jne 0x1400c8c41
mov r8, qword [rbp + 0xf8]
test r8, r8
sete cl
je 0x1400c8b91
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x128], r8
mov r13, qword [rdi + 0x98]
mov r12d, dword [rbx + 0x10]
mov rsi, r13
sub rsi, r12
cmp r13, rsi
jb 0x1400c97ba
mov ebx, ecx
je 0x1400c8f2a
mov rdx, qword [rdi + 0x90]
mov r15, rdx
sub r15, rsi
jb 0x1400c980b
mov qword [rdi + 0x90], 0
test rsi, rsi
je 0x1400c8f21
cmp rdx, rsi
je 0x1400c8f2a
mov rcx, qword [rdi + 0x80]
lea rdx, [rcx + rsi]
mov qword [rbp + 0xe0], r8
mov r8, r15
call sub.VCRUNTIME140.dll_memmove
mov r8, qword [rbp + 0xe0]
jmp 0x1400c8ff2
cmp r13, 1
jbe 0x1400c96b4
mov eax, 1
cmp dword [rbx + 0x14], 4
jne 0x1400c8ca7
mov eax, dword [rbx + 0x10]
mov qword [rdi + 0xf8], rax
mov rax, qword [rbp + 0x148]
test rax, rax
jne 0x1400c8ef2
jmp 0x1400c9080
mov rax, qword [rbp + 0xf8]
test rax, rax
sete bl
mov r13, qword [rbp + 0x128]
je 0x1400c8c65
mov rcx, qword [rbp + 0xf0]
mov qword [rbp + 0x28], rcx
mov r13, rax
mov qword [rdi + 0x98], 0
mov qword [rdi + 0xf8], 1
jne 0x1400c8f50
jmp 0x1400c9056
mov r13, qword [rdi + 0x98]
mov ebx, dword [rbp + 0xf0]
mov eax, 1
mov r15, qword [rbp + 0xf8]
mov rsi, r13
jmp 0x1400c8e3d
mov qword [rdi + 0xf8], rax
mov rax, qword [rbp + 0x148]
test rax, rax
jne 0x1400c8ef2
jmp 0x1400c9080
mov byte [rbp + 0x154], cl
mov byte [rbp + 0xe0], al
mov qword [rbp + 0xf0], 0
mov rcx, qword [rbp + 0x78]
mov edx, 0x53
lea r8, [rbp + 0xf0]
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
test eax, eax
je 0x1400c8d35
mov ebx, eax
shl rbx, 0x20
or rbx, 2
cmp byte [rbp + 0xe0], 0
je 0x1400c9601
mov ecx, 1
mov rdx, rbx
call fcn.1400ca3a0
cmp qword [rdi + 0xf8], 0
jne 0x1400c8751
jmp 0x1400c877e
mov eax, 1
jmp 0x1400c8e3d
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0x88], rax
mov rsi, qword [rax + 0x20]
test rsi, rsi
je 0x1400c90c6
mov rcx, rsi
call qword [sym.imp.crypt32.dll_CertDuplicateStore]
mov qword [rbp + 0x120], rax
mov rax, qword [rdi]
mov qword [rbp + 0x90], rax
test rax, rax
je 0x1400c90e2
xor ebx, ebx
nop word cs:[rax + rax]
mov rcx, qword [rdi + 8]
mov qword [rbp + 0xb8], r13
mov qword [rbp + 0xb0], 0
mov rdx, rbx
call qword [sym.imp.crypt32.dll_CertEnumCertificatesInStore]
test rax, rax
je 0x1400c90f3
mov qword [rbp + 0xe8], r13
mov rcx, rax
mov qword [rbp + 0x148], rax
call qword [sym.imp.crypt32.dll_CertDuplicateCertificateContext]
mov qword [rbp + 0x140], rax
mov qword [rbp + 0xf0], 0
mov rcx, qword [rbp + 0x120]
mov rdx, qword [rbp + 0x148]
mov r8d, 3
lea r9, [rbp + 0xf0]
call qword [sym.imp.crypt32.dll_CertAddCertificateContextToStore]
test eax, eax
je 0x1400c95a7
mov rcx, qword [rbp + 0xf0]
call r15
mov rbx, qword [rbp + 0x140]
mov qword [rbp + 0xb8], rbx
mov qword [rbp + 0xb0], 1
mov rcx, qword [rbp + 0x148]
call r15
mov r13, rbx
jmp 0x1400c8d80
cmp rdx, rsi
je 0x1400c8e3b
mov qword [rdi + 0x90], r12
xor eax, eax
sub r13, rsi
mov qword [rdi + 0x98], r13
mov qword [rdi + 0xf8], rax
test ebx, ebx
mov esi, ebx
mov r13, r15
lea rax, [0x1401e7aa8]
cmove r13, rax
mov rax, qword [rdi + 0xa8]
mov r12, qword [rdi + 0xb0]
sub rax, r12
cmp rax, rsi
jae 0x1400c8e9e
mov qword [rbp + 0x140], r14
mov qword [rbp + 0x38], r15
mov rcx, qword [rbp + 0x18]
mov rdx, r12
mov r8, rsi
call fcn.1401853c0
mov r12, qword [rdi + 0xb0]
mov r14, qword [rbp + 0x140]
mov rcx, qword [rdi + 0xa0]
add rcx, r12
mov rdx, r13
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add r12, rsi
mov qword [rdi + 0xb0], r12
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x130], r14
mov rcx, r15
call qword [sym.imp.secur32.dll_FreeContextBuffer]
mov r12, qword [rbp + 0x80]
mov rax, qword [rbp + 0x148]
test rax, rax
je 0x1400c9080
mov r8, r14
cmp rax, 0x11
jb 0x1400c8eff
mov r8, qword [r14 - 8]
mov rcx, qword [0x14023c280]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0xc8], 0
jne 0x1400c908e
jmp 0x1400c85fc
cmp rdx, rsi
jne 0x1400c8ff2
xor eax, eax
cmp r13, rsi
sete al
mov qword [rdi + 0x98], r12
mov qword [rdi + 0xf8], rax
test r8, r8
je 0x1400c9018
mov r13, qword [rbp + 0x128]
mov esi, dword [rbp + 0x28]
test rsi, rsi
mov r15, r13
lea rax, [0x1401e7aa8]
cmove r15, rax
mov rax, qword [rdi + 0xa8]
mov r12, qword [rdi + 0xb0]
sub rax, r12
cmp rax, rsi
jae 0x1400c8f9e
mov qword [rbp + 0x128], r13
mov rcx, qword [rbp + 0x18]
mov rdx, r12
mov r8, rsi
call fcn.1401853c0
mov r12, qword [rdi + 0xb0]
mov r13, qword [rbp + 0x128]
mov rcx, qword [rdi + 0xa0]
add rcx, r12
mov rdx, r15
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add r12, rsi
mov qword [rdi + 0xb0], r12
mov qword [rbp + 0xa0], r13
mov byte [rbp + 0x156], 0
mov byte [rbp + 0x155], 0
mov rcx, r13
call qword [sym.imp.secur32.dll_FreeContextBuffer]
mov r12, qword [rdi + 0x98]
xor eax, eax
mov r14, qword [rbp + 0x140]
test r12, r12
jne 0x1400c9026
jmp 0x1400c9056
xor eax, eax
cmp r13, rsi
sete al
mov qword [rdi + 0x90], r15
mov qword [rdi + 0x98], r12
mov qword [rdi + 0xf8], rax
test r8, r8
jne 0x1400c8f49
mov al, 1
mov r13, qword [rbp + 0x128]
test r12, r12
je 0x1400c9056
mov qword [rbp + 0xa0], r13
mov byte [rbp + 0x156], bl
mov byte [rbp + 0x155], al
lea rcx, [rbp + 0x50]
mov rdx, rdi
call fcn.1400ca6d0
cmp byte [rbp + 0x50], 0
mov r14, qword [rbp + 0x140]
jne 0x1400c9615
mov qword [rbp + 0x128], r13
cmp byte [rdi + 0x40], 0
je 0x1400c90a9
mov r12, qword [rbp + 0x80]
mov rax, qword [rbp + 0x148]
test rax, rax
jne 0x1400c8ef2
nop word [rax + rax]
cmp qword [rbp + 0xc8], 0
je 0x1400c85fc
mov r8, qword [rbp + 0xc0]
mov rcx, qword [0x14023c280]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400c85fc
mov byte [rdi + 0x42], 0
mov r12, qword [rbp + 0x80]
mov rax, qword [rbp + 0x148]
test rax, rax
jne 0x1400c8ef2
jmp 0x1400c9080
mov rax, qword [rdi]
mov qword [rbp + 0x120], rax
test rax, rax
je 0x1400c9107
mov rax, qword [rdi + 8]
mov qword [rbp + 0x120], rax
jmp 0x1400c9107
mov rcx, qword [rbp + 0x120]
xor edx, edx
call qword [sym.imp.crypt32.dll_CertCloseStore]
jmp 0x1400c9107
test rsi, rsi
je 0x1400c9107
mov rcx, qword [rbp + 0x120]
xor edx, edx
call qword [sym.imp.crypt32.dll_CertCloseStore]
movaps xmmword [rbp + 0xf0], xmm6
mov qword [rbp + 0x100], 0
mov dword [rbp + 0xf0], 0x20
mov dword [rbp + 0xf8], 1
lea rax, str.1.3.6.1.5.5.7.3.1
mov qword [rbp + 0xc0], rax
lea rax, str.1.3.6.1.4.1.311.10.3.3
mov qword [rbp + 0xc8], rax
lea rax, str.2.16.840.1.113730.4.1
mov qword [rbp + 0xd0], rax
mov dword [rbp + 0x100], 3
lea rax, [rbp + 0xc0]
mov qword [rbp + 0x108], rax
mov qword [rbp + 0x50], 0
lea rax, [rbp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xc0000001
xor ecx, ecx
mov rdx, qword [rbp + 0x88]
xor r8d, r8d
mov r9, qword [rbp + 0x120]
call qword [sym.imp.crypt32.dll_CertGetCertificateChain]
test eax, eax
je 0x1400c9672
mov rdx, qword [rbp + 0x50]
cmp qword [rdi], 0
mov qword [rbp + 0xe8], rdx
je 0x1400c935d
mov byte [rbp + 0x157], 1
lea rcx, [rbp + 0xf0]
call fcn.14014fa40
cmp qword [rbp + 0xf0], 0
je 0x1400c9365
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x120], rax
mov rax, qword [rbp + 0x100]
mov qword [rbp + 0x90], rax
xor r13d, r13d
nop word cs:[rax + rax]
mov rcx, qword [rbp + 0x120]
mov eax, dword [rcx + 0xc]
mov r15d, 0xf00
cmp r13, rax
jae 0x1400c9347
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400c9347
mov rax, qword [rax + r13*8]
mov rcx, qword [rax + 8]
mov qword [rbp + 0x148], rcx
call qword [sym.imp.crypt32.dll_CertDuplicateCertificateContext]
mov qword [rbp + 0x140], rax
inc r13
mov r15, qword [rbp + 0xa8]
xor edx, edx
nop
mov rcx, qword [rdi + 8]
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], r15
call qword [sym.imp.crypt32.dll_CertEnumCertificatesInStore]
test rax, rax
mov rbx, rax
je 0x1400c9320
mov qword [rbp + 0xa8], r15
mov rcx, rbx
mov qword [rbp + 0x148], rbx
call qword [sym.imp.crypt32.dll_CertDuplicateCertificateContext]
mov qword [rbp + 0xa8], rax
mov rbx, qword [rbp + 0x148]
mov r8d, dword [rbx + 0x10]
mov rax, qword [rbp + 0x140]
cmp r8d, dword [rax + 0x10]
jne 0x1400c92e0
mov rdx, qword [rax + 8]
mov rcx, qword [rbx + 8]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
sete r15b
jmp 0x1400c92e3
xor r15d, r15d
mov qword [rbp + 0x70], 1
mov rsi, qword [rbp + 0xa8]
mov qword [rbp + 0x68], rsi
mov rcx, rbx
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov rax, rsi
test r15b, r15b
mov r15, rsi
mov rdx, rsi
je 0x1400c9270
mov rcx, rdx
mov r15, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
call r15
jmp 0x1400c932e
mov qword [rbp + 0xa8], r15
mov r15, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov rcx, qword [rbp + 0x140]
call r15
test rbx, rbx
je 0x1400c9220
mov r15d, 0xf10
mov byte [rbp + 0x157], 1
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
jmp 0x1400c936b
mov r15d, 0xf00
jmp 0x1400c9372
mov r15d, 0xf00
mov rdx, qword [rbp + 0xe8]
lea rax, [rbp + 0x58]
movups xmmword [rax], xmm6
movabs rax, 0x200000018
mov qword [rbp + 0x50], rax
mov rax, qword [rdi + 0xd0]
test rax, rax
je 0x1400c93a0
cmp byte [rdi + 0x121], 0
jne 0x1400c93a0
mov qword [rbp + 0x60], rax
mov dword [rbp + 0x40], reloc.WS2_32.dll_recv
mov dword [rbp + 0x44], r15d
lea rax, [rbp + 0x50]
mov qword [rbp + 0x48], rax
movaps xmmword [rbp + 0xc0], xmm6
mov qword [rbp + 0xd0], 0
mov dword [rbp + 0xc0], 0x18
mov byte [rbp + 0x157], 1
mov ecx, 4
lea r8, [rbp + 0x40]
lea r9, [rbp + 0xc0]
call qword [sym.imp.crypt32.dll_CertVerifyCertificateChainPolicy]
test eax, eax
je 0x1400c967e
mov edx, dword [rbp + 0xc4]
mov rbx, rdx
shl rbx, 0x20
or rbx, 2
mov rax, qword [rdi + 0xe8]
test rax, rax
je 0x1400c9476
mov qword [rbp + 0x148], rbx
mov r8, qword [rdi + 0xf0]
mov rcx, qword [r8 + 0x10]
dec rcx
and rcx, 0xfffffffffffffff0
add rcx, rax
add rcx, 0x10
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0x140], rdx
mov dword [rbp + 0xf8], edx
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0xfc], rax
lea rdx, [rbp + 0xf0]
call qword [r8 + 0x28]
mov rsi, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
test rax, rax
je 0x1400c9492
jmp 0x1400c969f
test edx, edx
mov rsi, qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov rcx, qword [rbp + 0xe8]
jne 0x1400c9694
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
mov rcx, qword [rbp + 0x88]
call rsi
cmp byte [rdi + 0x40], 0
jne 0x1400c94a8
mov rax, qword [rbp + 0x20]
mov byte [rax], 1
movzx eax, byte [rbp + 0xe0]
movzx ecx, byte [rbp + 0x154]
test al, al
jne 0x1400c8747
mov al, 2
test cl, cl
jne 0x1400c9514
movaps xmmword [rbp + 0xf0], xmm6
mov dword [rbp + 0x100], 0
mov rcx, qword [rbp + 0x78]
mov edx, 4
lea r8, [rbp + 0xf0]
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
test eax, eax
jne 0x1400c96a7
mov eax, dword [rbp + 0xf0]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0xf4]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0xfc]
mov qword [rbp - 0x10], rax
mov al, 1
mov byte [rdi + 0x40], al
mov eax, dword [rbp + 0x34]
mov dword [rdi + 0x44], eax
mov rax, qword [rbp - 0x18]
mov qword [rdi + 0x48], rax
mov rax, qword [rbp - 0x10]
mov qword [rdi + 0x50], rax
jmp 0x1400c85fc
movabs rax, 0xd00000003
mov r12, r14
mov qword [r14 + 8], rax
mov eax, 2
mov dword [r12], eax
movaps xmm6, xmmword [rbp + 0x160]
add rsp, 0x1f8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp eax, 1
jne 0x1400c9588
mov rcx, qword [rbp + 0x20]
mov eax, dword [rcx + 0x10]
mov dword [r12 + 0x14], eax
movups xmm0, xmmword [rcx]
movups xmmword [r12 + 4], xmm0
mov eax, 1
jmp 0x1400c9548
xor eax, eax
jmp 0x1400c9548
lea rdx, str.unexpected_EOF_during_handshakeassertion_failed:_size___nread
mov r8d, 0x1f
mov cl, 0x25
call fcn.140094760
mov qword [r12 + 8], rax
jmp 0x1400c9543
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov rsi, qword [rbp + 0x140]
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xb0], 1
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov rcx, rsi
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov rcx, qword [rbp + 0x120]
xor edx, edx
call qword [sym.imp.crypt32.dll_CertCloseStore]
shl rbx, 0x20
or rbx, 2
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.crypt32.dll_CertFreeCertificateContext]
mov qword [r12 + 8], rbx
jmp 0x1400c9543
shl rsi, 0x20
or rsi, 2
jmp 0x1400c9620
mov rsi, qword [rbp + 0x58]
mov r12, qword [rbp + 0x80]
mov rax, qword [rbp + 0x148]
test rax, rax
je 0x1400c9648
cmp rax, 0x11
jb 0x1400c9636
mov r14, qword [r14 - 8]
mov rcx, qword [0x14023c280]
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rbp + 0xc8], 0
je 0x1400c9668
mov r8, qword [rbp + 0xc0]
mov rcx, qword [0x14023c280]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r12 + 8], rsi
jmp 0x1400c9543
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
jmp 0x1400c95ec
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, qword [rbp + 0xe8]
call qword [sym.imp.crypt32.dll_CertFreeCertificateChain]
jmp 0x1400c95f4
mov rbx, rax
jmp 0x1400c95f4
shl rax, 0x20
or rax, 2
jmp 0x1400c95a0
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x130], r14
lea r8, str.C:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rsC:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov ecx, 1
mov rdx, r13
call fcn.140184bf0
jmp 0x1400c9835
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x130], r14
lea r8, str.C:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rsC:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov ecx, 1
mov rdx, r13
call fcn.140184bf0
jmp 0x1400c9835
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x138], rax
mov qword [rbp + 0x130], r14
lea r8, str.C:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rsC:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov ecx, 1
mov rdx, r13
call fcn.140184bf0
jmp 0x1400c9835
lea rcx, str.assertion_failed:__self.context.is_null__
lea r8, [0x1401b6e10]
mov edx, 0x29
call fcn.140184cf0
ud2
lea r8, str.C:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rsC:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, rsi
call fcn.140184b70
ud2
mov ecx, 8
mov edx, 0x20
call fcn.1401846a0
ud2
mov qword [rbp + 0x148], r15
lea r8, str.C:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rsC:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov rcx, rsi
call fcn.140184c70
jmp 0x1400c9835
mov qword [rbp + 0x140], r14
mov qword [rbp + 0x38], r15
lea rcx, [0x1401b8977]
lea r8, str.C:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rsC:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov edx, 0x1f
call fcn.140184cf0
jmp 0x1400c9835
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0x156], cl
mov byte [rbp + 0x155], 1
lea rcx, [0x1401b8977]
lea r8, str.C:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_schannel_0.1.22_src_tls_stream.rsC:Users_sola.cargo_registry_srcindex.crates.io_6f17d22bba15001f_bytes_1.5.0_src_buf_take.rsassertion_failed:_cnt___self.limit
mov edx, 0x1f
call fcn.140184cf0
jmp 0x1400c9835
mov qword [rbp + 0x140], r14
mov qword [rbp + 0x38], r15
lea r8, str._rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs
mov rcx, rsi
call fcn.140184c70
jmp 0x1400c9835
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0xa0], rax
mov byte [rbp + 0x156], bl
mov byte [rbp + 0x155], 1
lea r8, str._rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs
mov rcx, rsi
call fcn.140184c70
ud2