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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc4
lea eax, [edx + 0x114]
lea esi, [edx + 8]
mov ebx, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xac], eax
lea eax, [edx + 0x128]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x70], eax
lea eax, [edx + 0x100]
mov dword [ebp - 0xb0], eax
lea eax, [edx + 0x11c]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0x58], eax
movzx eax, byte [ebx + 0x110]
test eax, eax
je 0x4e287e
cmp eax, 1
jne 0x4e3501
mov edx, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x28]
mov eax, dword [edx + 0x10]
movsd xmm0, qword [edx]
movsd xmm1, qword [edx + 8]
mov dword [ecx + 0x14], eax
movsd qword [ecx + 0xc], xmm1
movsd qword [ecx + 4], xmm0
mov dword [ecx], 1
jmp 0x4e363d
mov ebx, dword [ebp - 0x10]
movzx eax, byte [ebx + 0x110]
test eax, eax
jne 0x4e2835
mov edx, ebx
mov bh, byte [ebx + 0x111]
movzx eax, byte [edx + 0x112]
mov ah, byte [edx + 0x113]
mov bl, byte [edx + 0x114]
mov byte [ebp - 0x20], al
mov byte [ebp - 0x24], ah
lea ecx, [ebp - 0x54]
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::write_out::h6280cebd7fac9b00
movzx eax, byte [ebp - 0x54]
cmp al, 4
jne 0x4e34e1
cmp dword [ebp - 0x50], 0
je 0x4e28d0
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x110], 0
jne 0x4e28da
mov byte [eax + 0x111], 1
jmp 0x4e28da
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x68]
test bh, bh
je 0x4e2951
mov eax, dword [eax + 0xc0]
test eax, eax
je 0x4e3682
cmp dword [esi], 2
jne 0x4e2900
mov byte [ebp - 0x54], 4
jmp 0x4e2918
lea ecx, [ebp - 0x54]
mov edx, esi
push eax
call sym.tokio_native_tls::TlsStream_LT_S_GT_::with_context::h155786545208afcc
add esp, 4
cmp byte [ebp - 0x54], 5
je 0x4e3534
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
mov edx, ecx
shld ecx, eax, 0x10
shr edx, 0x10
cmp al, 4
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xcc], edx
jne 0x4e3538
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x110], 0
jne 0x4e294e
mov byte [eax + 0x111], 0
mov ecx, dword [ebp - 0x68]
or bl, byte [ebp - 0x24]
je 0x4e2960
mov ebx, dword [ebp - 0x10]
jmp 0x4e2977
mov ebx, dword [ebp - 0x10]
cmp byte [ebx + 0x15e], 0
je 0x4e2d50
mov dword [ebp - 0x58], 0
cmp byte [ebp - 0x20], 0
je 0x4e3256
cmp dword [ebx + 0x154], 0
je 0x4e29aa
lea ecx, [ebp - 0x54]
mov edx, ebx
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::read_in::h8a647d52b777d8af
movzx eax, byte [ebp - 0x54]
cmp al, 4
jne 0x4e34e1
cmp dword [ebp - 0x50], 0
je 0x4e350f
mov esi, dword [ebx + 0xe0]
movzx eax, byte [0x5e1184]
xor ecx, ecx
mov edx, 0x18
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
test eax, eax
mov dword [ebp - 0x24], eax
je 0x4e3662
mov edx, dword [ebx + 0xf0]
cmp edx, esi
jb 0x4e3671
mov eax, dword [ebx + 0xec]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], esi
mov dword [ecx + 4], 2
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
xor eax, eax
mov esi, 2
mov dword [ebp - 0x7c], 2
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 2
cmp eax, dword [ebx + 0x144]
jo 0x4e2a80
mov edx, dword [ebx + 0x148]
lea ecx, [ebp - 0x54]
push dword [ebx + 0x14c]
call sym.schannel::alpn_list::AlpnList::new::hebf3150ab71f5940
add esp, 4
mov ebx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x4c]
test ebx, ebx
je 0x4e2a80
mov esi, dword [ebp - 0x50]
lea ecx, [ebp - 0x7c]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h166674758edc44bd
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x18], esi
mov esi, 3
mov dword [eax + 0x1c], 0x12
mov dword [eax + 0x20], edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x74], 3
jmp 0x4e2a82
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], esi
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0x11
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 3
mov dword [ebp - 0x60], 0
cmp byte [edx + 0x15e], 0
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x50]
movsd qword [eax + 0x18], xmm0
movsd qword [eax + 0x10], xmm0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x8c], eax
je 0x4e2b60
mov esi, dword [ebp - 0x70]
cmp byte [edx + 0x15f], 0
mov ecx, 0
mov eax, esi
cmovne eax, ecx
mov ecx, dword [edx + 0x150]
movsd xmm0, qword [ecx + 8]
movsd qword [ebp - 0x84], xmm0
push 0
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push esi
push 0
push 0x1011c
lea ecx, [ebp - 0xa4]
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
call sub.secur32.dll_AcceptSecurityContext
mov esi, eax
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x4e2bcc
jmp 0x4e2bd2
xor ecx, ecx
test byte [edx + 0x15c], 1
mov eax, 0
je 0x4e2b76
mov eax, dword [edx + 0x13c]
cmp ecx, dword [edx + 0x138]
cmovo eax, ecx
mov ecx, dword [edx + 0x150]
movsd xmm0, qword [ecx + 8]
movsd qword [ebp - 0x84], xmm0
push 0
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push 0
push 0
lea ecx, [ebp - 0xa4]
push ecx
push 0
push 0
push 0x9819c
push eax
push dword [ebp - 0x70]
lea eax, [ebp - 0x84]
push eax
call sub.secur32.dll_InitializeSecurityContextW
mov esi, eax
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x4e2bd2
push eax
call sub.secur32.dll_FreeContextBuffer
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4e2bdf
push eax
call sub.secur32.dll_FreeContextBuffer
cmp esi, 0x80090318
je 0x4e2d20
test esi, esi
mov dword [ebp - 0x18], edi
je 0x4e2c80
cmp esi, 0x90312
jne 0x4e3566
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], ebx
mov byte [ecx + 0x15f], 0
cmp dword [eax + 0x10], 5
jne 0x4e2e13
mov esi, dword [ecx + 0xe0]
mov eax, dword [eax + 0xc]
mov ebx, esi
sub ebx, eax
jb 0x4e3696
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x4c]
test eax, eax
je 0x4e2f09
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edi
mov edx, dword [eax + 0xf0]
mov edi, edx
sub edi, ebx
jb 0x4e36c8
test ebx, ebx
mov dword [eax + 0xf0], 0
je 0x4e2f13
cmp edx, ebx
jne 0x4e2f33
xor eax, eax
jmp 0x4e2f1b
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x10], 5
jne 0x4e2d92
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0xe0]
mov esi, edx
sub esi, dword [ecx + 0xc]
jb 0x4e369d
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x6c]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4e2cb7
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
cmp edx, esi
jb 0x4e36ac
mov dword [ebp - 0x6c], ecx
je 0x4e319f
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov edi, dword [eax + 0xf0]
mov edx, edi
sub edx, esi
mov dword [ebp - 0x2c], edx
jb 0x4e36d9
test esi, esi
mov dword [eax + 0xf0], 0
je 0x4e3194
mov edx, dword [ebp - 0x1c]
cmp edi, esi
je 0x4e319f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xec]
lea ecx, [eax + esi]
push dword [ebp - 0x2c]
push ecx
push eax
call sub.msvcrt.dll_memmove
mov edx, dword [ebp - 0x1c]
add esp, 0xc
jmp 0x4e321e
mov ecx, dword [ebp - 0x24]
mov eax, 1
cmp dword [ecx + 0x10], 4
jne 0x4e2d31
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x154], eax
mov esi, dword [ebp - 0x30]
test ebx, ebx
jne 0x4e31e7
jmp 0x4e31ff
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
push 0x53
push dword [ebp - 0x70]
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x4e2e72
xor ecx, ecx
cmp byte [ebp - 0x20], 0
je 0x4e35d0
mov dword [ebp - 0x58], 0
cmp dword [ebx + 0x154], 0
jne 0x4e298a
jmp 0x4e29aa
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4e2da2
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], ecx
mov edi, dword [ebp - 0x10]
mov dword [edi + 0xe4], 0
mov dword [edi + 0xe0], 0
mov dword [edi + 0x154], 1
je 0x4e31d0
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x64]
mov eax, 1
mov esi, dword [edi + 0x108]
mov dword [ebp - 0x20], ebx
test ecx, ecx
cmove edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [edi + 0x100]
sub edx, esi
cmp edx, ecx
jae 0x4e2e2b
mov edi, ecx
mov ecx, dword [ebp - 0xb0]
mov edx, esi
push 1
push 1
push edi
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
add esp, 0xc
mov edi, dword [ebp - 0x10]
mov esi, dword [edi + 0x108]
jmp 0x4e2e2e
mov esi, dword [ecx + 0xe0]
mov edx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x4c]
mov eax, 1
mov ebx, esi
jmp 0x4e2f5b
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x104]
add eax, esi
mov ebx, dword [ebp - 0x6c]
push ebx
push dword [ebp - 0x14]
push eax
call sym._memcpy
add esp, 0xc
add esi, ebx
mov dword [edi + 0x108], esi
push dword [ebp - 0x64]
call sub.secur32.dll_FreeContextBuffer
mov ebx, dword [ebp - 0x20]
cmp byte [edi + 0x110], 0
jne 0x4e31dd
mov byte [edi + 0x112], 0
jmp 0x4e31dd
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4e2f20
push eax
call sub.crypt32.dll_CertDuplicateStore
test byte [ebx], 1
mov dword [ebp - 0x18], eax
je 0x4e2ff8
push 0
push dword [ebx + 4]
call sub.crypt32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x4e2ef7
nop word cs:[eax + eax]
nop dword [eax]
mov esi, eax
push eax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov ebx, eax
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
push 3
push esi
push dword [ebp - 0x18]
call sub.crypt32.dll_CertAddCertificateContextToStore
test eax, eax
je 0x4e35ae
mov eax, dword [ebp - 0x54]
push eax
call sub.crypt32.dll_CertFreeCertificateContext
push esi
call sub.crypt32.dll_CertFreeCertificateContext
push ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx + 4]
call sub.crypt32.dll_CertEnumCertificatesInStore
test eax, eax
jne 0x4e2eb0
push 0
mov esi, dword [ebp - 0x18]
push esi
call sub.crypt32.dll_CertCloseStore
mov ecx, esi
jmp 0x4e3003
mov ecx, dword [ebp - 0x10]
mov eax, 1
jmp 0x4e2f5b
cmp edx, ebx
jne 0x4e2f4a
xor eax, eax
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
jmp 0x4e2f55
xor ecx, ecx
cmp byte [ebx], 0
je 0x4e3003
mov ecx, dword [ebx + 4]
jmp 0x4e3003
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xec]
lea ecx, [eax + ebx]
push edi
push ecx
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [ecx + 0xf0], edi
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
sub esi, ebx
mov dword [ecx + 0xe4], 0
test edx, edx
mov dword [ebp - 0x14], edi
mov dword [ecx + 0xe0], esi
mov dword [ecx + 0x154], eax
mov eax, 1
cmove edi, eax
mov eax, dword [ecx + 0x100]
mov esi, dword [ecx + 0x108]
sub eax, esi
cmp eax, edx
jae 0x4e2fba
mov ecx, dword [ebp - 0xb0]
mov eax, edx
mov edx, esi
push 1
push 1
mov dword [ebp - 0x1c], eax
push eax
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebx + 0x108]
jmp 0x4e2fbd
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x104]
add eax, esi
push edx
push edi
push eax
mov edi, edx
call sym._memcpy
add esp, 0xc
add esi, edi
mov dword [ebx + 0x108], esi
push dword [ebp - 0x14]
call sub.secur32.dll_FreeContextBuffer
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x20]
test ebx, ebx
jne 0x4e31e7
jmp 0x4e31ff
push 0
push eax
call sub.crypt32.dll_CertCloseStore
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x54], 0x10
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x94], str.1.3.6.1.5.5.7.3.1
mov dword [ebp - 0x90], str.1.3.6.1.4.1.311.10.3.3
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x8c], str.2.16.840.1.113730.4.1
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0xa4]
push eax
push 0
push 0xc0000001
lea eax, [ebp - 0x54]
push eax
push ecx
push 0
push dword [ebp - 0x1c]
push 0
call sub.crypt32.dll_CertGetCertificateChain
test eax, eax
je 0x4e35d6
mov edx, dword [ebp - 0xa4]
test byte [ebx], 1
mov esi, 0xf00
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x2c], edx
je 0x4e3291
lea ecx, [ebp - 0x54]
call sym.schannel::cert_chain::CertChainContext::final_chain::hfce2202f38ec77f9
cmp dword [ebp - 0x54], 1
jne 0x4e328e
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov dword [ebp - 0xa8], eax
xor eax, eax
mov dword [ebp - 0xc0], ecx
jmp 0x4e30ca
push dword [ebp - 0x14]
call sub.crypt32.dll_CertFreeCertificateContext
mov edx, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc0]
mov eax, edx
inc edx
je 0x4e36ef
cmp dword [ecx + 0xc], eax
jbe 0x4e34d7
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0xc4], edx
mov eax, dword [ecx + eax*4]
push dword [eax + 4]
call sub.crypt32.dll_CertDuplicateCertificateContext
mov dword [ebp - 0x14], eax
push 0
push dword [ebx + 4]
call sub.crypt32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x4e30b4
mov esi, eax
push eax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov ebx, eax
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 8]
jne 0x4e318c
push eax
push dword [ecx + 4]
push dword [esi + 4]
call sub.msvcrt.dll_memcmp
add esp, 0xc
mov dword [ebp - 0xb8], eax
push esi
call sub.crypt32.dll_CertFreeCertificateContext
cmp dword [ebp - 0xb8], 0
je 0x4e326d
nop dword [eax]
push ebx
mov ebx, dword [ebp - 0x10]
push dword [ebx + 4]
call sub.crypt32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x4e30b4
mov esi, eax
push eax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov ebx, eax
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 8]
jne 0x4e318c
push eax
push dword [ecx + 4]
push dword [esi + 4]
call sub.msvcrt.dll_memcmp
add esp, 0xc
mov edi, eax
push esi
call sub.crypt32.dll_CertFreeCertificateContext
test edi, edi
mov edi, dword [ebp - 0x18]
jne 0x4e3140
jmp 0x4e326d
push esi
call sub.crypt32.dll_CertFreeCertificateContext
jmp 0x4e3140
mov edx, dword [ebp - 0x1c]
cmp edi, esi
jne 0x4e321e
xor eax, eax
sub edx, esi
mov edi, dword [ebp - 0x10]
sete al
cmp dword [ebp - 0x14], 0
mov dword [edi + 0xe0], edx
mov dword [edi + 0xe4], 0
mov dword [edi + 0x154], eax
jne 0x4e2dc9
nop dword [eax]
cmp byte [edi + 0x110], 0
je 0x4e2e66
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
test ebx, ebx
je 0x4e31ff
cmp ebx, 9
mov eax, edi
jb 0x4e31f1
mov eax, dword [edi - 4]
push eax
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x7c], 0
je 0x4e2870
push dword [ebp - 0x24]
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
jmp 0x4e2870
xor eax, eax
sub edx, esi
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
sete al
cmp dword [ebp - 0x14], 0
mov dword [edi + 0xf0], ecx
mov dword [edi + 0xe0], edx
mov dword [edi + 0xe4], 0
mov dword [edi + 0x154], eax
jne 0x4e2dc9
jmp 0x4e31d0
cmp byte [ebp - 0x24], 0
mov al, 2
je 0x4e342f
mov edx, dword [ebp - 0xbc]
jmp 0x4e3480
push ebx
call sub.crypt32.dll_CertFreeCertificateContext
push dword [ebp - 0x14]
call sub.crypt32.dll_CertFreeCertificateContext
mov ebx, dword [ebp - 0x10]
mov esi, 0xf10
push dword [ebp - 0xa8]
call sub.crypt32.dll_CertFreeCertificateChain
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa4], 0x10
mov dword [ebp - 0xa0], 2
cmp eax, dword [ebx + 0x138]
jo 0x4e32d8
cmp byte [ebx + 0x15d], 1
je 0x4e32d8
mov eax, dword [ebx + 0x13c]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x7c], 0xc
mov dword [ebp - 0x78], esi
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x50]
movsd qword [eax + 8], xmm0
movsd qword [eax], xmm0
mov dword [ebp - 0x54], 0x14
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x7c]
push eax
push edx
push 4
call sub.crypt32.dll_CertVerifyCertificateChainPolicy
test eax, eax
je 0x4e35e2
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x4e333c
mov eax, dword [ebx + 0x130]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 0x60], 0
test eax, eax
je 0x4e35fb
xor ecx, ecx
jmp 0x4e3353
mov eax, dword [ebx + 0x130]
mov esi, dword [ebp - 0x30]
mov cl, 4
mov byte [ebp - 0x60], 4
test eax, eax
je 0x4e34ca
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x10]
mov ebx, edx
movsd xmm0, qword [ebp - 0x4c]
mov ecx, dword [ecx + 0x134]
mov edx, dword [ecx + 8]
dec edx
and edx, 0xfffffff8
lea eax, [eax + edx + 8]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], ebx
movsd qword [ebp - 0x8c], xmm0
mov ecx, dword [ecx + 0x14]
lea edx, [ebp - 0x94]
push edx
push eax
lea eax, [ebp - 0x84]
push eax
call ecx
add esp, 0xc
test ebx, ebx
je 0x4e33ee
cmp byte [ebp - 0x60], 3
jne 0x4e33ee
mov edi, dword [ebp - 0x5c]
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
test eax, eax
je 0x4e33bd
push ebx
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x4e33da
cmp dword [esi + 8], 9
jb 0x4e33cc
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x84]
cmp bl, 4
jne 0x4e35ec
push dword [ebp - 0x1c]
call sub.crypt32.dll_CertFreeCertificateContext
mov ebx, dword [ebp - 0x10]
mov al, 1
mov dword [ebp - 0x58], eax
cmp byte [ebx + 0x110], 0
je 0x4e341e
mov ecx, dword [ebp - 0x68]
jmp 0x4e2977
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x68]
mov byte [eax], 1
jmp 0x4e2977
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x54], xmm0
lea eax, [ebp - 0x54]
push eax
push 4
push dword [ebp - 0x70]
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
jne 0x4e3648
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
mov eax, edx
shld eax, ecx, 0x18
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0x50]
movsd xmm0, qword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x8c], eax
mov al, 1
movsd qword [ebp - 0x94], xmm0
mov byte [ebx + 0x110], al
mov dword [ebp - 0xbc], edx
mov dword [ebx + 0x118], edx
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0xc8]
movsd xmm0, qword [ebp - 0x94]
mov dword [ebx + 0x114], ecx
mov dword [ebp - 0x68], ecx
mov dword [edx + 8], eax
movsd qword [edx], xmm0
movzx eax, byte [ebx + 0x110]
test eax, eax
je 0x4e287e
jmp 0x4e2835
push dword [ebp - 0x2c]
call sub.crypt32.dll_CertFreeCertificateChain
jmp 0x4e33fd
mov esi, 0xf00
jmp 0x4e3283
movzx ecx, byte [ebp - 0x51]
mov edx, dword [ebp - 0x28]
movzx edi, word [ebp - 0x53]
mov esi, dword [ebp - 0x50]
mov byte [edx + 7], cl
mov word [edx + 5], di
mov byte [edx + 4], al
mov dword [edx + 8], esi
jmp 0x4e3637
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
jmp 0x4e363d
mov esi, dword [ebp - 0x28]
lea ecx, [esi + 4]
mov edx, 0x25
push 0x1f
push str.unexpected_EOF_during_handshakeassertion_failed:_size___nread
call sym.std::io::error::Error::new::h93f4c0208c4eebee
add esp, 8
mov dword [esi], 2
jmp 0x4e363d
mov ah, 0xd
mov al, 1
mov edx, dword [ebp - 0xd0]
mov esi, dword [ebp - 0xcc]
movzx ecx, ah
movzx eax, al
shl ecx, 8
shld esi, edx, 0x10
shl edx, 0x10
or ecx, edx
mov edx, dword [ebp - 0x28]
or eax, ecx
mov dword [edx + 8], esi
mov dword [edx + 4], eax
jmp 0x4e3637
test ebx, ebx
je 0x4e3580
cmp ebx, 9
jb 0x4e3572
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x7c], 0
je 0x4e3596
push dword [ebp - 0x24]
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x28]
mov dword [eax + 8], esi
mov dword [eax + 4], 0
mov dword [eax], 2
jmp 0x4e363d
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
push esi
call sub.crypt32.dll_CertFreeCertificateContext
push ebx
call sub.crypt32.dll_CertFreeCertificateContext
push 0
push dword [ebp - 0x18]
call sub.crypt32.dll_CertCloseStore
xor ebx, ebx
jmp 0x4e3616
xor ebx, ebx
xor esi, esi
jmp 0x4e3627
call sub.kernel32.dll_GetLastError
xor ebx, ebx
mov dword [ebp - 0x10], eax
jmp 0x4e3613
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
jmp 0x4e3609
mov eax, dword [ebp - 0x80]
mov esi, ebx
shr esi, 0x10
mov dword [ebp - 0x10], eax
mov al, bh
jmp 0x4e3616
movzx eax, byte [ebp - 0x5f]
movzx esi, word [ebp - 0x5e]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x58], eax
push dword [ebp - 0x2c]
call sub.crypt32.dll_CertFreeCertificateChain
xor ebx, ebx
mov eax, dword [ebp - 0x58]
mov edi, eax
push dword [ebp - 0x1c]
call sub.crypt32.dll_CertFreeCertificateContext
mov eax, dword [ebp - 0x10]
mov ecx, ebx
mov ebx, edi
mov edx, dword [ebp - 0x28]
mov byte [edx + 4], cl
mov byte [edx + 5], bl
mov word [edx + 6], si
mov dword [edx + 8], eax
mov dword [edx], 2
add esp, 0xc4
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x28]
shl edx, 8
mov dword [ecx + 8], eax
mov dword [ecx + 4], edx
mov dword [ecx], 2
jmp 0x4e363d
mov ecx, 4
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
mov ecx, esi
push 0x5aa2dc
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 4
jmp 0x4e36f9
mov ecx, str.assertion_failed:__self.context.is_null__
mov edx, 0x29
push 0x5a6f74
call sym.core::panicking::panic::hf6244c8fb5815825
mov ecx, 0x5aa2fc
jmp 0x4e36a5
mov dword [ebp - 0x20], ebx
mov ecx, 0x5aa2ec
call sym.core::panicking::panic_const::panic_const_sub_overflow::h31f5191bdbee8bd5
jmp 0x4e36f9
mov dword [ebp - 0x20], ebx
mov edx, 0x1f
mov ecx, 0x5aa2ab
push 0x5aa2cc
call sym.core::panicking::panic::hf6244c8fb5815825
add esp, 4
jmp 0x4e36f9
mov ecx, ebx
push 0x5b0f4c
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 4
jmp 0x4e36f9
mov dword [ebp - 0x20], ebx
mov edx, edi
mov ecx, esi
push 0x5b0f4c
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 4
jmp 0x4e36f9
mov ecx, 0x5aeedc
call sym.core::panicking::panic_const::panic_const_add_overflow::hf3b41c4c75c49a6d
ud2