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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
movaps xmmword [rsp + 0x180], xmm6
mov rdi, rdx
mov qword [rsp + 0x68], rcx
movabs r15, 0xd00000003
lea rax, [rdx + 0x1d4]
mov qword [rsp + 0x130], rax
lea rbx, [rdx + 0x10]
lea rax, [rdx + 0x1f0]
mov qword [rsp + 0x108], rax
lea rax, [rdx + 0x18]
mov qword [rsp + 0x138], rax
lea r12, [rsp + 0x80]
xorps xmm6, xmm6
movzx eax, byte [rdi + 0x1d0]
test rax, rax
jne 0x14005febf
movzx ebp, byte [rdi + 0x1d1]
movzx eax, byte [rdi + 0x1d2]
mov byte [rsp + 0x78], al
movzx r13d, byte [rdi + 0x1d3]
movzx esi, byte [rdi + 0x1d4]
mov rax, qword [rdi + 0x190]
mov r14, qword [rdi + 0x198]
cmp r14, rax
jne 0x14005eee0
test bpl, bpl
je 0x14005eecb
mov rdx, qword [rdi + 0x138]
test rdx, rdx
je 0x14005ffff
cmp dword [rbx], 2
je 0x14005eebe
mov rcx, rbx
call fcn.1400b0c00
test rax, rax
jne 0x14005ff07
test rdx, rdx
jne 0x14005ff04
cmp byte [rdi + 0x1d0], 0
je 0x14005efbc
or sil, r13b
jne 0x14005efd5
jmp 0x14005efc8
xor r15d, r15d
nop word cs:[rax + rax]
sub rax, r14
jb 0x14005ffff
mov r8, qword [rdi + 0x138]
test r8, r8
je 0x14005ffff
mov r9, qword [rdi + 0x188]
add r9, r14
cmp dword [rbx], 2
jne 0x14005ef40
mov qword [rsp + 0x20], rax
mov rcx, r12
mov rdx, qword [rsp + 0x138]
call fcn.1400fc8a0
mov rcx, qword [rsp + 0x80]
cmp rcx, 2
jne 0x14005ef62
jmp 0x14005fe7e
mov qword [rsp + 0x20], rax
mov rcx, r12
mov rdx, rbx
call fcn.1400b10a0
mov rcx, qword [rsp + 0x80]
cmp rcx, 2
je 0x14005fe7e
mov rax, qword [rsp + 0x88]
test rcx, rcx
jne 0x14005fe88
add r15, rax
add r14, rax
mov qword [rdi + 0x198], r14
mov rax, qword [rdi + 0x190]
cmp r14, rax
jne 0x14005eef0
test r15, r15
movabs r15, 0xd00000003
je 0x14005ee8a
cmp byte [rdi + 0x1d0], 0
jne 0x14005ee8f
mov byte [rdi + 0x1d1], 1
jmp 0x14005ee8f
mov byte [rdi + 0x1d1], 0
or sil, r13b
jne 0x14005efd5
cmp byte [rdi + 0x222], 0
je 0x14005f2ea
cmp byte [rsp + 0x78], 0
je 0x14005f86b
mov rbp, qword [rdi + 0x178]
mov rsi, qword [rdi + 0x210]
test rsi, rsi
je 0x14005f199
xor r13d, r13d
nop word [rax + rax]
lea rax, [rbp*2]
cmp rax, rsi
cmova rsi, rax
cmp rsi, 0x401
mov eax, 0x400
cmovb rsi, rax
mov r14, qword [rdi + 0x170]
sub rsi, r14
jbe 0x14005f07d
mov rax, qword [rdi + 0x160]
sub rax, r14
cmp rax, rsi
jb 0x14005f15b
mov r15, qword [rdi + 0x168]
lea rcx, [r15 + r14]
cmp rsi, 2
jb 0x14005f066
lea r8, [rsi - 1]
xor edx, edx
call sub.msvcrt.dll_memset
add r14, rsi
dec r14
add r15, r14
mov rcx, r15
movabs r15, 0xd00000003
mov byte [rcx], 0
inc r14
mov qword [rdi + 0x170], r14
sub r14, rbp
jb 0x14005ffff
mov rax, qword [rdi + 0x168]
add rax, rbp
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], r14
mov rdx, qword [rdi + 0x138]
test rdx, rdx
je 0x14005ffff
cmp dword [rbx], 2
jne 0x14005f0f0
mov rcx, qword [rsp + 0x138]
mov r8, r12
call fcn.1400fc660
test rax, rax
cmovne rdx, r15
test rdx, rdx
je 0x14005f10b
jmp 0x14005fe93
mov rcx, rbx
mov r8, r12
call fcn.1400b0d50
test rax, rax
cmovne rdx, r15
test rdx, rdx
jne 0x14005fe93
mov rax, qword [rsp + 0x90]
cmp rax, qword [rsp + 0x88]
ja 0x14005ffff
add rbp, rax
mov qword [rdi + 0x178], rbp
mov rcx, qword [rdi + 0x210]
mov rdx, rcx
sub rdx, rax
mov esi, 0
cmovae rsi, rdx
mov qword [rdi + 0x210], rsi
test rax, rax
je 0x14005f190
add r13, rax
cmp rcx, rax
ja 0x14005f000
jmp 0x14005f190
lea rcx, [rdi + 0x160]
mov rdx, r14
mov r8, rsi
call fcn.14010eb20
mov r14, qword [rdi + 0x170]
mov r15, qword [rdi + 0x168]
lea rcx, [r15 + r14]
cmp rsi, 2
jae 0x14005f04f
jmp 0x14005f066
test r13, r13
je 0x14005feee
movzx eax, byte [0x140205110]
mov rax, qword [0x140205100]
test rax, rax
jne 0x14005f1c1
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x14005ffff
mov qword [0x140205100], rax
mov r8d, 0x20
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x14005ffff
cmp rbp, qword [rdi + 0x170]
ja 0x14005ffff
mov r13, rax
mov rax, qword [rdi + 0x168]
mov dword [r13], ebp
mov dword [r13 + 4], 2
mov qword [r13 + 8], rax
movups xmmword [r13 + 0x10], xmm6
mov qword [rsp + 0xb0], 2
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0xc0], 2
movabs rax, 0x8000000000000000
cmp qword [rdi + 0x1b8], rax
jne 0x14005f260
mov qword [rsp + 0xd0], 0
mov esi, 2
xor r14d, r14d
jmp 0x14005f338
mov r15, r12
mov rdx, qword [rdi + 0x1c0]
mov r8, qword [rdi + 0x1c8]
lea rcx, [rsp + 0xd0]
call fcn.1400d2740
mov r12, qword [rsp + 0xd0]
test r12, r12
je 0x14005f323
mov r14, qword [rsp + 0xe0]
mov ebp, dword [rsp + 0xd8]
mov edx, 2
lea rcx, [rsp + 0xb0]
call fcn.140046a70
mov r13, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rax, rsi
shl rax, 4
mov dword [r13 + rax], ebp
mov dword [r13 + rax + 4], 0x12
mov qword [r13 + rax + 8], r14
mov r14, r12
inc rsi
mov qword [rsp + 0xc0], rsi
jmp 0x14005f32b
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0x108]
mov edx, 0x53
mov r8, r12
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x14005f71e
cmp byte [rsp + 0x78], 0
jne 0x14005efe0
jmp 0x14005ffa4
mov esi, 2
xor r14d, r14d
mov r12, r15
movabs r15, 0xd00000003
mov dword [rsp + 0x140], 0
mov dword [rsp + 0x144], esi
mov qword [rsp + 0x148], r13
movabs rax, 0x200000000
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0
movabs rax, 0x1100000000
mov qword [rsp + 0x90], rax
lea rax, [rsp + 0x98]
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
movabs rax, 0x300000000
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x178], r12
mov dword [rsp + 0xcc], 0
cmp byte [rdi + 0x222], 0
je 0x14005f51a
cmp byte [rdi + 0x223], 0
mov edx, 0
mov rcx, qword [rsp + 0x108]
cmove rdx, rcx
mov rax, qword [rdi + 0x1e8]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xf0], xmm0
lea rax, [rsp + 0xcc]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0xf0]
lea r8, [rsp + 0x140]
mov r9d, 0x1011c
call sub.secur32.dll_AcceptSecurityContext
mov ebp, eax
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14005f451
call sub.secur32.dll_FreeContextBuffer
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14005f463
call sub.secur32.dll_FreeContextBuffer
cmp ebp, 0x80090318
je 0x14005f5e1
test ebp, ebp
mov qword [rsp + 0x78], r14
je 0x14005f60b
cmp ebp, 0x90312
jne 0x14005ff12
mov byte [rdi + 0x223], 0
cmp rsi, 1
jbe 0x14005ffff
cmp dword [r13 + 0x14], 5
jne 0x14005f6ab
mov r15, qword [rdi + 0x178]
mov eax, dword [r13 + 0x10]
mov r14, r15
sub r14, rax
jb 0x14005ffff
mov ebp, dword [rsp + 0x80]
mov r13, qword [rsp + 0x88]
test eax, eax
je 0x14005f7e3
mov rax, qword [rdi + 0x170]
mov rsi, rax
sub rsi, r14
jb 0x14005ffff
mov qword [rdi + 0x170], 0
test r14, r14
je 0x14005f7ea
cmp rax, r14
je 0x14005f7f6
mov rcx, qword [rdi + 0x168]
lea rdx, [rcx + r14]
mov r8, rsi
call sub.msvcrt.dll_memmove
jmp 0x14005f7ef
cmp byte [rdi + 0x220], 0
mov r8d, 0
je 0x14005f530
mov r8, qword [rdi + 0x1a8]
movabs rax, 0x8000000000000000
cmp qword [rdi + 0x1a0], rax
mov eax, 0
cmove r8, rax
mov rax, qword [rdi + 0x1e8]
movups xmm0, xmmword [rax + 0x10]
movaps xmmword [rsp + 0xf0], xmm0
lea rax, [rsp + 0xcc]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x140]
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, [rsp + 0xf0]
mov rdx, qword [rsp + 0x108]
mov r9d, 0x9819c
call sub.secur32.dll_InitializeSecurityContextW
mov ebp, eax
mov rcx, qword [rsp + 0x98]
test rcx, rcx
jne 0x14005f44c
jmp 0x14005f451
cmp rsi, 1
jbe 0x14005ffff
mov eax, 1
cmp dword [r13 + 0x14], 4
jne 0x14005f6ce
mov eax, dword [r13 + 0x10]
mov qword [rdi + 0x210], rax
jmp 0x14005f9d5
cmp rsi, 1
jbe 0x14005ffff
cmp dword [r13 + 0x14], 5
jne 0x14005f6da
mov r15, qword [rsp + 0x88]
test r15, r15
je 0x14005f643
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xc8], eax
mov qword [rsp + 0x118], r15
mov r14, qword [rdi + 0x178]
mov eax, dword [r13 + 0x10]
mov r13, r14
sub r13, rax
cmp r14, r13
jb 0x14005ffff
je 0x14005f8fb
mov rax, qword [rdi + 0x170]
mov rsi, rax
sub rsi, r13
jb 0x14005ffff
mov qword [rdi + 0x170], 0
test r13, r13
je 0x14005f8f6
cmp rax, r13
je 0x14005f8fb
mov rcx, qword [rdi + 0x168]
lea rdx, [rcx + r13]
mov r8, rsi
call sub.msvcrt.dll_memmove
jmp 0x14005f905
mov r15, qword [rdi + 0x178]
mov ebp, dword [rsp + 0x80]
mov eax, 1
mov r13, qword [rsp + 0x88]
mov r14, r15
jmp 0x14005f7f8
mov qword [rdi + 0x210], rax
jmp 0x14005f9d5
mov rax, qword [rsp + 0x88]
test rax, rax
je 0x14005f6fd
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0xc8], ecx
mov qword [rsp + 0x118], rax
mov qword [rdi + 0x178], 0
mov qword [rdi + 0x210], 1
jne 0x14005f931
jmp 0x14005f9bf
mov byte [rsp + 0x67], r13b
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsi + 0x20]
test rcx, rcx
mov qword [rsp + 0x110], rsi
je 0x14005fa24
call sub.crypt32.dll_CertDuplicateStore
mov r13, rax
cmp qword [rdi], 0
je 0x14005fa50
mov rcx, qword [rdi + 8]
xor edx, edx
call sub.crypt32.dll_CertEnumCertificatesInStore
test rax, rax
je 0x14005f7cc
nop word cs:[rax + rax]
mov r14, rax
mov rcx, rax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov rsi, rax
mov qword [rsp + 0x80], 0
mov rcx, r13
mov rdx, r14
mov r8d, 3
mov r9, r12
call sub.crypt32.dll_CertAddCertificateContextToStore
test eax, eax
je 0x14005ff1c
mov rcx, qword [rsp + 0x80]
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, r14
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, qword [rdi + 8]
mov rdx, rsi
call sub.crypt32.dll_CertEnumCertificatesInStore
test rax, rax
jne 0x14005f770
mov rcx, r13
xor edx, edx
call sub.crypt32.dll_CertCloseStore
mov rsi, qword [rsp + 0x110]
jmp 0x14005fa5a
mov eax, 1
jmp 0x14005f7f8
cmp rax, r14
je 0x14005f7f6
mov qword [rdi + 0x170], rsi
xor eax, eax
sub r15, r14
mov qword [rdi + 0x178], r15
mov qword [rdi + 0x210], rax
test ebp, ebp
mov esi, ebp
mov r14, r13
lea rax, str.description___is_deprecated__use_DisplaySequenceDataDataMagicParamdecompression_not_finished_but_EOF_reachedcorrupt_deflate_streamincomplete_frameInvalid_checksum
cmove r14, rax
mov rax, qword [rdi + 0x180]
mov rbp, qword [rdi + 0x190]
sub rax, rbp
cmp rax, rsi
jb 0x14005fa32
movabs r15, 0xd00000003
mov rcx, qword [rdi + 0x188]
add rcx, rbp
mov rdx, r14
mov r8, rsi
call sub.msvcrt.dll_memcpy
add rbp, rsi
mov qword [rdi + 0x190], rbp
mov rcx, r13
call sub.secur32.dll_FreeContextBuffer
jmp 0x14005f9d0
mov al, 2
test r13b, r13b
jne 0x14005f8c0
mov rcx, r12
mov rdx, qword [rsp + 0x108]
call fcn.1400d20a0
cmp dword [rsp + 0x80], 0
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x128], rax
jne 0x140060001
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x124], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x158], rax
mov al, 1
mov byte [rdi + 0x1d0], al
mov eax, dword [rsp + 0x124]
mov dword [rdi + 0x1d4], eax
mov rax, qword [rsp + 0x128]
mov qword [rdi + 0x1d8], rax
mov rax, qword [rsp + 0x158]
mov qword [rdi + 0x1e0], rax
jmp 0x14005ee46
cmp rax, r13
jne 0x14005f905
xor eax, eax
sub r14, r13
sete al
jmp 0x14005f914
xor eax, eax
sub r14, r13
sete al
mov qword [rdi + 0x170], rsi
mov qword [rdi + 0x178], r14
mov qword [rdi + 0x210], rax
test r15, r15
movabs r15, 0xd00000003
je 0x14005f99c
mov eax, dword [rsp + 0xc8]
test eax, eax
mov esi, eax
mov r14, qword [rsp + 0x118]
lea rax, str.description___is_deprecated__use_DisplaySequenceDataDataMagicParamdecompression_not_finished_but_EOF_reachedcorrupt_deflate_streamincomplete_frameInvalid_checksum
cmove r14, rax
mov rax, qword [rdi + 0x180]
mov r13, qword [rdi + 0x190]
sub rax, r13
cmp rax, rsi
jb 0x14005fb98
mov rcx, qword [rdi + 0x188]
add rcx, r13
mov rdx, r14
mov r8, rsi
call sub.msvcrt.dll_memcpy
add r13, rsi
mov qword [rdi + 0x190], r13
mov rcx, qword [rsp + 0x118]
call sub.secur32.dll_FreeContextBuffer
mov r14, qword [rdi + 0x178]
test r14, r14
je 0x14005f9bf
lea rcx, [rsp + 0xf0]
mov rdx, rdi
call fcn.140060020
cmp byte [rsp + 0xf0], 0
jne 0x14005ff4a
cmp byte [rdi + 0x1d0], 0
jne 0x14005f9d0
mov byte [rdi + 0x1d2], 0
nop
mov r14, qword [rsp + 0x78]
test r14, r14
je 0x14005f9fa
mov r8, qword [rsp + 0xe0]
cmp r14, 0x11
jb 0x14005f9ec
mov r8, qword [r8 - 8]
mov rcx, qword [0x140205100]
xor edx, edx
call sub.kernel32.dll_HeapFree
cmp qword [rsp + 0xb0], 0
je 0x14005ee46
mov r8, qword [rsp + 0xb8]
mov rcx, qword [0x140205100]
xor edx, edx
call sub.kernel32.dll_HeapFree
jmp 0x14005ee46
mov r13, qword [rdi]
test r13, r13
je 0x14005fa5a
mov r13, qword [rdi + 8]
jmp 0x14005fa5a
lea rcx, [rdi + 0x180]
mov rdx, rbp
mov r8, rsi
call fcn.14010eb20
mov rbp, qword [rdi + 0x190]
jmp 0x14005f835
mov rcx, r13
xor edx, edx
call sub.crypt32.dll_CertCloseStore
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x90], 0
mov dword [rsp + 0x80], 0x20
mov dword [rsp + 0x88], 1
lea rax, [0x1401c8f5f]
mov qword [rsp + 0xd0], rax
lea rax, str.1.3.6.1.4.1.311.10.3.3
mov qword [rsp + 0xd8], rax
lea rax, str.2.16.840.1.113730.4.1
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x90], 3
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb0], 0
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xc0000001
xor ecx, ecx
mov rdx, rsi
xor r8d, r8d
mov r9, r13
call sub.crypt32.dll_CertGetCertificateChain
test eax, eax
je 0x14005ffb5
mov rdx, qword [rsp + 0xb0]
mov esi, 0xf00
cmp qword [rdi], 0
mov qword [rsp + 0x70], rdx
je 0x14005fb8d
cmp dword [rdx + 0xc], 0
movzx r13d, byte [rsp + 0x67]
je 0x14005fd1d
mov rax, qword [rdx + 0x10]
mov rbp, qword [rax]
mov rcx, rdx
call sub.crypt32.dll_CertDuplicateCertificateChain
mov rcx, qword [rsp + 0x70]
mov r14, rax
cmp dword [rcx + 0xc], 2
jb 0x14005fbb6
mov r15d, 1
nop
mov rax, qword [rcx + 0x10]
mov rbp, qword [rax + r15*8]
call sub.crypt32.dll_CertDuplicateCertificateChain
mov rsi, rax
mov rcx, r14
call sub.crypt32.dll_CertFreeCertificateChain
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + 0xc]
inc r15
mov r14, rsi
cmp r15, rax
jb 0x14005fb60
jmp 0x14005fbb9
movzx r13d, byte [rsp + 0x67]
jmp 0x14005fd1d
lea rcx, [rdi + 0x180]
mov rdx, r13
mov r8, rsi
call fcn.14010eb20
mov r13, qword [rdi + 0x190]
jmp 0x14005f969
mov rsi, r14
mov qword [rsp + 0x160], rbp
call sub.crypt32.dll_CertDuplicateCertificateChain
mov qword [rsp + 0x150], rax
mov rcx, rsi
call sub.crypt32.dll_CertFreeCertificateChain
mov rdx, qword [rsp + 0x70]
xor r14d, r14d
movabs r15, 0xd00000003
jmp 0x14005fc02
mov r14, qword [rsp + 0x168]
inc r14
mov rcx, rbp
call sub.crypt32.dll_CertFreeCertificateContext
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x160]
mov eax, dword [rcx + 0xc]
mov esi, 0xf00
cmp r14, rax
jae 0x14005fd0a
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14005fd0a
mov qword [rsp + 0x168], r14
mov rax, qword [rax + r14*8]
mov rcx, qword [rax + 8]
call sub.crypt32.dll_CertDuplicateCertificateContext
mov rbp, rax
mov rcx, qword [rdi + 8]
xor edx, edx
call sub.crypt32.dll_CertEnumCertificatesInStore
test rax, rax
je 0x14005fbea
mov rsi, rax
mov rcx, rax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov r14, rax
mov r8d, dword [rsi + 0x10]
cmp r8d, dword [rbp + 0x10]
jne 0x14005fc90
mov rdx, qword [rbp + 8]
mov rcx, qword [rsi + 8]
call sub.msvcrt.dll_memcmp
mov dword [rsp + 0x120], eax
mov rcx, rsi
call sub.crypt32.dll_CertFreeCertificateContext
cmp dword [rsp + 0x120], 0
jne 0x14005fca0
jmp 0x14005fcf0
mov rcx, rsi
call sub.crypt32.dll_CertFreeCertificateContext
nop dword [rax + rax]
mov rcx, qword [rdi + 8]
mov rdx, r14
call sub.crypt32.dll_CertEnumCertificatesInStore
test rax, rax
je 0x14005fbea
mov rsi, rax
mov rcx, rax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov r14, rax
mov r8d, dword [rsi + 0x10]
cmp r8d, dword [rbp + 0x10]
jne 0x14005fc90
mov rdx, qword [rbp + 8]
mov rcx, qword [rsi + 8]
call sub.msvcrt.dll_memcmp
mov r13d, eax
mov rcx, rsi
call sub.crypt32.dll_CertFreeCertificateContext
test r13d, r13d
movzx r13d, byte [rsp + 0x67]
jne 0x14005fca0
mov rcx, r14
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, rbp
call sub.crypt32.dll_CertFreeCertificateContext
mov esi, 0xf10
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x150]
mov r14, rdx
call sub.crypt32.dll_CertFreeCertificateChain
mov rdx, r14
lea rax, [rsp + 0xb8]
movups xmmword [rax], xmm6
movabs rax, 0x200000018
mov qword [rsp + 0xb0], rax
movabs rax, 0x8000000000000000
cmp qword [rdi + 0x1a0], rax
je 0x14005fd65
cmp byte [rdi + 0x221], 0
jne 0x14005fd65
mov rax, qword [rdi + 0x1a8]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xf0], 0x10
mov dword [rsp + 0xf4], esi
lea rax, [rsp + 0xb0]
mov qword [rsp + 0xf8], rax
movaps xmmword [rsp + 0xd0], xmm6
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0xd0], 0x18
mov ecx, 4
lea r8, [rsp + 0xf0]
lea r9, [rsp + 0xd0]
call sub.crypt32.dll_CertVerifyCertificateChainPolicy
test eax, eax
je 0x14005ffc6
mov ebp, dword [rsp + 0xd4]
mov rax, qword [rdi + 0x200]
test rax, rax
mov rsi, qword [rsp + 0x110]
je 0x14005fe47
mov r8, qword [rdi + 0x208]
mov rcx, qword [r8 + 0x10]
dec rcx
and rcx, 0xfffffffffffffff0
add rcx, rax
add rcx, 0x10
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], ebp
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x8c], rax
mov rdx, r12
call qword [r8 + 0x28]
test rax, rax
jne 0x14005ffe1
mov rcx, rsi
call sub.crypt32.dll_CertFreeCertificateContext
cmp byte [rdi + 0x1d0], 0
jne 0x14005efd5
jmp 0x14005fe6e
test ebp, ebp
jne 0x14005ffcd
mov rcx, qword [rsp + 0x70]
call sub.crypt32.dll_CertFreeCertificateChain
mov rcx, rsi
call sub.crypt32.dll_CertFreeCertificateContext
cmp byte [rdi + 0x1d0], 0
jne 0x14005efd5
mov rax, qword [rsp + 0x130]
mov byte [rax], 1
jmp 0x14005efd5
movabs rax, 0xd00000003
mov rsi, qword [rsp + 0x68]
mov qword [rsi + 8], rax
jmp 0x14005fe9c
mov rsi, qword [rsp + 0x68]
mov qword [rsi + 8], rdx
mov eax, 2
mov dword [rsi], eax
movaps xmm6, xmmword [rsp + 0x180]
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp eax, 1
jne 0x14005fee5
mov rcx, qword [rsp + 0x130]
mov eax, dword [rcx + 0x10]
mov rsi, qword [rsp + 0x68]
mov dword [rsi + 0x14], eax
movups xmm0, xmmword [rcx]
movups xmmword [rsi + 4], xmm0
mov eax, 1
jmp 0x14005fea1
xor eax, eax
mov rsi, qword [rsp + 0x68]
jmp 0x14005fea1
lea rdx, str.unexpected_EOF_during_handshake1.3.6.1.5.5.7.3.1
mov r8d, 0x1f
mov cl, 0x25
call fcn.14008a310
jmp 0x14005fe88
mov r15, rdx
mov rsi, qword [rsp + 0x68]
mov qword [rsi + 8], r15
jmp 0x14005fe9c
shl rbp, 0x20
or rbp, 2
jmp 0x14005ff57
call sub.kernel32.dll_GetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, r14
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, rsi
call sub.crypt32.dll_CertFreeCertificateContext
mov rcx, r13
xor edx, edx
call sub.crypt32.dll_CertCloseStore
jmp 0x14005ffe4
mov rbp, qword [rsp + 0xf8]
mov r14, qword [rsp + 0x78]
test r14, r14
mov rsi, qword [rsp + 0x68]
je 0x14005ff81
mov r8, qword [rsp + 0xe0]
cmp r14, 0x11
jb 0x14005ff73
mov r8, qword [r8 - 8]
mov rcx, qword [0x140205100]
xor edx, edx
call sub.kernel32.dll_HeapFree
cmp qword [rsp + 0xb0], 0
je 0x14005fff6
mov r8, qword [rsp + 0xb8]
mov rcx, qword [0x140205100]
xor edx, edx
call sub.kernel32.dll_HeapFree
jmp 0x14005fff6
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rsi, qword [rsp + 0x68]
jmp 0x14005fff6
call sub.kernel32.dll_GetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
jmp 0x14005ffe4
call sub.kernel32.dll_GetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, qword [rsp + 0x70]
call sub.crypt32.dll_CertFreeCertificateChain
jmp 0x14005ffe4
mov rbp, rax
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x110]
call sub.crypt32.dll_CertFreeCertificateContext
mov qword [rsi + 8], rbp
jmp 0x14005fe9c
ud2
mov rsi, qword [rsp + 0x68]
mov rax, qword [rsp + 0x128]
jmp 0x14005fe8d