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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
lea eax, [edx + 0x6c]
mov esi, edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xb0], eax
lea eax, [edx + 0x80]
mov dword [ebp - 0x70], eax
lea eax, [edx + 0x58]
mov dword [ebp - 0xb4], eax
lea eax, [edx + 0x74]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x98], ebx
jmp 0x4e0763
mov esi, dword [ebp - 0x10]
movzx eax, byte [esi + 0x68]
test eax, eax
jne 0x4e12e3
movzx eax, byte [esi + 0x6a]
mov ah, byte [esi + 0x6b]
mov bh, byte [esi + 0x69]
mov bl, byte [esi + 0x6c]
mov byte [ebp - 0x2c], al
mov byte [ebp - 0x24], ah
lea ecx, [ebp - 0x58]
mov edx, esi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::write_out::h3a839757ce07637d
movzx eax, byte [ebp - 0x58]
cmp al, 4
jne 0x4e1315
cmp dword [ebp - 0x54], 0
je 0x4e07b0
cmp byte [esi + 0x68], 0
mov ecx, dword [ebp - 0x6c]
jne 0x4e07b7
mov byte [esi + 0x69], 1
jmp 0x4e07b7
mov ecx, dword [ebp - 0x6c]
test bh, bh
je 0x4e07c7
cmp dword [esi + 0x1c], 0
je 0x4e1483
cmp byte [esi + 0x68], 0
je 0x4e07e0
or bl, byte [ebp - 0x24]
mov dword [ebp - 0x20], edi
je 0x4e07ec
mov ebx, dword [ebp - 0x98]
jmp 0x4e0806
mov byte [esi + 0x69], 0
or bl, byte [ebp - 0x24]
mov dword [ebp - 0x20], edi
jne 0x4e07cf
cmp byte [esi + 0xb6], 0
mov ebx, dword [ebp - 0x98]
je 0x4e0920
mov dword [ebp - 0x34], 0
cmp byte [ebp - 0x2c], 0
je 0x4e125e
cmp dword [esi + 0xac], 0
je 0x4e0839
lea ecx, [ebp - 0x58]
mov edx, esi
call sym.schannel::tls_stream::TlsStream_LT_S_GT_::read_in::hc6e92e59be9e1d11
movzx eax, byte [ebp - 0x58]
cmp al, 4
jne 0x4e1315
cmp dword [ebp - 0x54], 0
je 0x4e1349
mov ebx, dword [esi + 0x38]
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 0x4e1463
mov edx, dword [esi + 0x48]
cmp edx, ebx
jb 0x4e1472
mov eax, dword [esi + 0x44]
mov ecx, dword [ebp - 0x24]
mov edi, 2
mov dword [ecx], ebx
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 ebx, ebx
mov dword [ebp - 0x7c], 2
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], 2
cmp ebx, dword [esi + 0x9c]
jno 0x4e08c0
mov esi, dword [ebp - 0x24]
jmp 0x4e0970
mov edx, dword [esi + 0xa0]
lea ecx, [ebp - 0x58]
push dword [esi + 0xa4]
call sym.schannel::alpn_list::AlpnList::new::hebf3150ab71f5940
add esp, 4
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x24]
test ebx, ebx
mov dword [ebp - 0x20], eax
je 0x4e0962
mov edi, dword [ebp - 0x54]
lea ecx, [ebp - 0x7c]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h166674758edc44bd
mov esi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x18], edi
mov edi, 3
mov dword [esi + 0x1c], 0x12
mov dword [esi + 0x20], eax
mov dword [ebp - 0x74], 3
jmp 0x4e0970
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x58]
push eax
push 0x53
push dword [ebp - 0x70]
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x4e0ccf
xor ebx, ebx
cmp byte [ebp - 0x2c], 0
je 0x4e13d9
mov dword [ebp - 0x34], 0
cmp dword [esi + 0xac], 0
jne 0x4e0819
jmp 0x4e0839
xor ebx, ebx
nop word cs:[eax + eax]
nop
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0x11
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x90], 3
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x2c], ebx
movsd qword [eax + 0x18], xmm0
movsd qword [eax + 0x10], xmm0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x8c], eax
cmp byte [edx + 0xb6], 0
je 0x4e0a50
mov edi, esi
mov esi, dword [ebp - 0x70]
cmp byte [edx + 0xb7], 0
mov ecx, 0
mov eax, esi
cmovne eax, ecx
mov ecx, dword [edx + 0xa8]
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
mov esi, edi
push 0
push 0x1011c
lea ecx, [ebp - 0xa8]
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
call sub.secur32.dll_AcceptSecurityContext
mov edi, dword [ebp - 0x20]
mov ebx, eax
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4e0abf
jmp 0x4e0ac5
xor ecx, ecx
test byte [edx + 0xb4], 1
mov edi, dword [ebp - 0x20]
mov eax, 0
je 0x4e0a69
mov eax, dword [edx + 0x94]
cmp ecx, dword [edx + 0x90]
cmovo eax, ecx
mov ecx, dword [edx + 0xa8]
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 - 0xa8]
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 ebx, eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4e0ac5
push eax
call sub.secur32.dll_FreeContextBuffer
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4e0ad2
push eax
call sub.secur32.dll_FreeContextBuffer
cmp ebx, 0x80090318
je 0x4e0bf0
test ebx, ebx
mov dword [ebp - 0x24], esi
je 0x4e0b60
cmp ebx, 0x90312
jne 0x4e136e
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0xb7], 0
cmp dword [esi + 0x10], 5
jne 0x4e0c84
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi + 0xc]
mov edi, ecx
sub edi, eax
jb 0x4e1497
mov edx, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x50]
test eax, eax
je 0x4e0d61
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov edx, dword [eax + 0x48]
mov ebx, edx
sub ebx, edi
jb 0x4e14c6
test edi, edi
mov dword [eax + 0x48], 0
je 0x4e0d71
cmp edx, edi
mov dword [ebp - 0x30], ecx
jne 0x4e0d99
mov dword [ebp - 0x1c], 0
jmp 0x4e0d81
cmp dword [esi + 0x10], 5
jne 0x4e0c17
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x38]
mov ebx, ecx
sub ebx, dword [esi + 0xc]
mov esi, dword [ebp - 0x68]
jb 0x4e149e
mov edi, dword [ebp - 0x50]
test edi, edi
je 0x4e0b8b
mov esi, dword [ebp - 0x58]
mov dword [ebp - 0x64], edi
cmp ecx, ebx
jb 0x4e14aa
mov dword [ebp - 0x68], esi
je 0x4e0fee
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
mov edi, dword [eax + 0x48]
mov edx, edi
sub edx, ebx
mov dword [ebp - 0x1c], edx
jb 0x4e14d7
test ebx, ebx
mov dword [eax + 0x48], 0
je 0x4e0fe7
cmp edi, ebx
mov edi, dword [ebp - 0x14]
je 0x4e0fee
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [eax + 0x44]
lea ecx, [eax + ebx]
push dword [ebp - 0x1c]
push ecx
push eax
call sub.msvcrt.dll_memmove
mov ecx, dword [ebp - 0x18]
add esp, 0xc
jmp 0x4e1062
cmp dword [esi + 0x10], 4
mov eax, 1
jne 0x4e0bfe
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xac], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4e102d
jmp 0x4e1045
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4e0c27
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], ecx
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0xac], 1
je 0x4e1010
mov esi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov eax, 1
mov ebx, dword [edi + 0x60]
test esi, esi
cmove ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x58]
sub ecx, ebx
cmp ecx, esi
jae 0x4e0c9b
mov ecx, dword [ebp - 0xb4]
mov edx, ebx
push 1
push 1
push esi
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
add esp, 0xc
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 0x60]
jmp 0x4e0c9e
mov ebx, dword [ecx + 0x38]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], 1
mov edi, ebx
jmp 0x4e0dc3
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0x5c]
add eax, ebx
mov esi, dword [ebp - 0x68]
push esi
push dword [ebp - 0x14]
push eax
call sym._memcpy
add esp, 0xc
add ebx, esi
mov dword [edi + 0x60], ebx
push dword [ebp - 0x64]
call sub.secur32.dll_FreeContextBuffer
cmp byte [edi + 0x68], 0
jne 0x4e1020
jmp 0x4e1016
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4e0d86
push eax
call sub.crypt32.dll_CertDuplicateStore
test byte [esi], 1
mov ebx, eax
je 0x4e0e3f
mov dword [ebp - 0x14], ebx
push 0
push dword [esi + 4]
call sub.crypt32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x4e0d57
nop word cs:[eax + eax]
nop dword [eax]
mov ebx, eax
push eax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov esi, eax
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x58]
push eax
push 3
push ebx
push dword [ebp - 0x14]
call sub.crypt32.dll_CertAddCertificateContextToStore
test eax, eax
je 0x4e13b7
mov eax, dword [ebp - 0x58]
push eax
call sub.crypt32.dll_CertFreeCertificateContext
push ebx
call sub.crypt32.dll_CertFreeCertificateContext
push esi
mov esi, dword [ebp - 0x10]
push dword [esi + 4]
call sub.crypt32.dll_CertEnumCertificatesInStore
test eax, eax
jne 0x4e0d10
push 0
mov ebx, dword [ebp - 0x14]
jmp 0x4e0e41
mov eax, ebx
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 1
jmp 0x4e0dc3
cmp edx, edi
mov dword [ebp - 0x30], ecx
jne 0x4e0dad
mov dword [ebp - 0x1c], 0
xor edi, edi
mov ecx, dword [ebp - 0x10]
jmp 0x4e0dba
xor ebx, ebx
cmp byte [esi], 0
je 0x4e0e47
mov ebx, dword [esi + 4]
jmp 0x4e0e47
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x44]
lea ecx, [eax + edi]
push ebx
push ecx
push eax
call sub.msvcrt.dll_memmove
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
mov dword [ecx + 0x48], ebx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
sub ebx, edi
mov edi, dword [ebp - 0x1c]
mov dword [ecx + 0x3c], 0
test edx, edx
mov dword [ebp - 0x14], eax
mov dword [ecx + 0x38], ebx
mov dword [ecx + 0xac], edi
mov edi, eax
mov eax, 1
cmove edi, eax
mov eax, dword [ecx + 0x58]
mov ebx, dword [ecx + 0x60]
sub eax, ebx
cmp eax, edx
jae 0x4e0e18
mov ecx, dword [ebp - 0xb4]
mov eax, edx
mov edx, ebx
push 1
push 1
mov dword [ebp - 0x18], eax
push eax
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
add esp, 0xc
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ebx, dword [esi + 0x60]
jmp 0x4e0e1b
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x5c]
add eax, ebx
push edx
push edi
push eax
mov edi, edx
call sym._memcpy
add esp, 0xc
add ebx, edi
mov dword [esi + 0x60], ebx
push dword [ebp - 0x14]
call sub.secur32.dll_FreeContextBuffer
jmp 0x4e1020
push 0
push ebx
call sub.crypt32.dll_CertCloseStore
lea eax, [ebp - 0x94]
mov dword [ebp - 0x58], 0x10
mov dword [ebp - 0x54], 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 - 0x50], 3
mov dword [ebp - 0x8c], str.2.16.840.1.113730.4.1
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0xa8]
push eax
push 0
push 0xc0000001
lea eax, [ebp - 0x58]
push eax
push ebx
push 0
push dword [ebp - 0x1c]
push 0
call sub.crypt32.dll_CertGetCertificateChain
test eax, eax
je 0x4e13df
mov eax, esi
mov edx, dword [ebp - 0xa8]
mov esi, 0xf00
test byte [eax], 1
mov dword [ebp - 0x18], edx
je 0x4e10ae
lea ecx, [ebp - 0x58]
call sym.schannel::cert_chain::CertChainContext::final_chain::hfce2202f38ec77f9
cmp dword [ebp - 0x58], 1
jne 0x4e10ab
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
xor edx, edx
mov dword [ebp - 0xac], eax
xor eax, eax
mov dword [ebp - 0xc0], ecx
jmp 0x4e0f14
push edi
call sub.crypt32.dll_CertFreeCertificateContext
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc0]
mov edi, dword [ebp - 0x20]
mov eax, edx
mov esi, dword [ebp - 0x10]
inc edx
je 0x4e14ea
cmp dword [ecx + 0xc], eax
jbe 0x4e1254
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 0x30], edx
mov eax, dword [ecx + eax*4]
push dword [eax + 4]
call sub.crypt32.dll_CertDuplicateCertificateContext
mov edi, eax
push 0
push dword [esi + 4]
call sub.crypt32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x4e0f00
mov esi, eax
push eax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov ecx, dword [esi + 8]
mov dword [ebp - 0x14], edi
cmp ecx, dword [edi + 8]
jne 0x4e0fdb
push ecx
push dword [edi + 4]
push dword [esi + 4]
mov dword [ebp - 0xbc], eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
mov ebx, eax
push esi
call sub.crypt32.dll_CertFreeCertificateContext
mov eax, dword [ebp - 0xbc]
test ebx, ebx
je 0x4e108c
nop word [eax + eax]
push eax
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
call sub.crypt32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x4e0f00
mov esi, eax
push eax
call sub.crypt32.dll_CertDuplicateCertificateContext
mov ecx, dword [esi + 8]
cmp ecx, dword [edi + 8]
jne 0x4e0fdb
push ecx
push dword [edi + 4]
push dword [esi + 4]
mov ebx, eax
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 - 0x14]
mov eax, ebx
jne 0x4e0f90
jmp 0x4e108c
push esi
mov esi, eax
call sub.crypt32.dll_CertFreeCertificateContext
mov eax, esi
jmp 0x4e0f90
cmp edi, ebx
mov edi, dword [ebp - 0x14]
jne 0x4e1062
xor eax, eax
sub ecx, ebx
sete al
test edi, edi
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], 0
mov dword [edi + 0xac], eax
jne 0x4e0c48
cmp byte [edi + 0x68], 0
jne 0x4e1020
mov byte [edi + 0x6a], 0
nop word [eax + eax]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4e1045
cmp eax, 9
mov eax, edi
jb 0x4e1037
mov eax, dword [edi - 4]
push eax
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x7c], 0
je 0x4e0760
push esi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
jmp 0x4e0760
xor eax, eax
sub ecx, ebx
mov edx, dword [ebp - 0x1c]
sete al
test edi, edi
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x48], edx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], 0
mov dword [edi + 0xac], eax
jne 0x4e0c48
jmp 0x4e1010
push eax
call sub.crypt32.dll_CertFreeCertificateContext
push edi
call sub.crypt32.dll_CertFreeCertificateContext
mov edi, dword [ebp - 0x20]
mov esi, 0xf10
push dword [ebp - 0xac]
call sub.crypt32.dll_CertFreeCertificateChain
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa8], 0x10
mov dword [ebp - 0xa4], 2
cmp ecx, dword [eax + 0x90]
jo 0x4e10f8
cmp byte [eax + 0xb5], 1
je 0x4e10f8
mov eax, dword [eax + 0x94]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x7c], 0xc
mov dword [ebp - 0x78], esi
xorps xmm0, xmm0
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x54]
movsd qword [eax + 8], xmm0
movsd qword [eax], xmm0
mov dword [ebp - 0x58], 0x14
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x7c]
push eax
push edx
push 4
call sub.crypt32.dll_CertVerifyCertificateChainPolicy
test eax, eax
je 0x4e13eb
mov ebx, dword [ebp - 0x54]
test ebx, ebx
je 0x4e115c
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x60], 0
mov eax, dword [esi + 0x88]
test eax, eax
je 0x4e1404
xor edx, edx
jmp 0x4e1173
mov esi, dword [ebp - 0x10]
mov dl, 4
mov byte [ebp - 0x60], 4
mov eax, dword [esi + 0x88]
test eax, eax
je 0x4e124a
mov ecx, dword [esi + 0x8c]
mov dword [ebp - 0x14], edx
movsd xmm0, qword [ebp - 0x50]
mov edx, dword [ecx + 8]
dec edx
and edx, 0xfffffff8
lea eax, [eax + edx + 8]
mov edx, dword [ebp - 0x18]
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 0x4e1209
cmp byte [ebp - 0x60], 3
jne 0x4e1209
mov esi, dword [ebp - 0x5c]
mov edi, dword [esi + 4]
mov ebx, dword [esi]
mov eax, dword [edi]
test eax, eax
je 0x4e11d8
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4e11f5
cmp dword [edi + 8], 9
jb 0x4e11e7
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x84]
cmp bl, 4
jne 0x4e13f5
push dword [ebp - 0x1c]
call sub.crypt32.dll_CertFreeCertificateContext
cmp byte [esi + 0x68], 0
mov ebx, dword [ebp - 0x98]
mov al, 1
mov dword [ebp - 0x34], eax
je 0x4e1239
mov ecx, dword [ebp - 0x6c]
jmp 0x4e0806
mov eax, dword [ebp - 0xb0]
mov ecx, dword [ebp - 0x6c]
mov byte [eax], 1
jmp 0x4e0806
push dword [ebp - 0x18]
call sub.crypt32.dll_CertFreeCertificateChain
jmp 0x4e1218
mov esi, 0xf00
jmp 0x4e10a0
cmp byte [ebp - 0x24], 0
mov al, 2
jne 0x4e12b7
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
lea eax, [ebp - 0x58]
push eax
push 4
push dword [ebp - 0x70]
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
jne 0x4e144f
mov ebx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov eax, ebx
shld eax, ecx, 0x18
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x54]
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 [esi + 0x68], al
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0xc4]
movsd xmm0, qword [ebp - 0x94]
mov dword [ebp - 0x6c], ecx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], ebx
mov dword [edx + 8], eax
movsd qword [edx], xmm0
jmp 0x4e074b
cmp eax, 1
jne 0x4e133b
mov edx, dword [ebp - 0xb0]
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 0x4e1444
movzx ecx, byte [ebp - 0x55]
mov edx, dword [ebp - 0x28]
movzx edi, word [ebp - 0x57]
mov esi, dword [ebp - 0x54]
mov byte [edx + 7], cl
mov word [edx + 5], di
mov byte [edx + 4], al
mov dword [edx + 8], esi
mov dword [edx], 2
jmp 0x4e1444
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
jmp 0x4e1444
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 0x4e1444
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4e138b
cmp eax, 9
jb 0x4e137d
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x7c], 0
je 0x4e139f
push esi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x28]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0
mov dword [eax], 2
jmp 0x4e1444
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
push ebx
call sub.crypt32.dll_CertFreeCertificateContext
push esi
call sub.crypt32.dll_CertFreeCertificateContext
push 0
push dword [ebp - 0x14]
call sub.crypt32.dll_CertCloseStore
xor ebx, ebx
jmp 0x4e141f
xor edx, edx
xor esi, esi
jmp 0x4e142e
call sub.kernel32.dll_GetLastError
xor ebx, ebx
mov dword [ebp - 0x10], eax
jmp 0x4e141c
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
jmp 0x4e1412
mov eax, dword [ebp - 0x80]
mov esi, ebx
shr esi, 0x10
mov dword [ebp - 0x10], eax
mov al, bh
jmp 0x4e141f
movzx eax, byte [ebp - 0x5f]
movzx esi, word [ebp - 0x5e]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x34], eax
push dword [ebp - 0x18]
call sub.crypt32.dll_CertFreeCertificateChain
xor ebx, ebx
mov eax, dword [ebp - 0x34]
mov edi, eax
push dword [ebp - 0x1c]
call sub.crypt32.dll_CertFreeCertificateContext
mov eax, dword [ebp - 0x10]
mov edx, edi
mov ecx, dword [ebp - 0x28]
mov byte [ecx + 4], bl
mov byte [ecx + 5], dl
mov word [ecx + 6], si
mov dword [ecx + 8], eax
mov dword [ecx], 2
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0x28]
shl edx, 8
mov dword [ecx + 8], eax
mov dword [ecx + 4], edx
jmp 0x4e143e
mov ecx, 4
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
mov ecx, ebx
push 0x5aa2dc
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 4
jmp 0x4e14f4
mov ecx, str.assertion_failed:__self.context.is_null__
mov edx, 0x29
push 0x5a6f74
call sym.core::panicking::panic::hf6244c8fb5815825
mov ecx, 0x5aa2fc
jmp 0x4e14a3
mov ecx, 0x5aa2ec
call sym.core::panicking::panic_const::panic_const_sub_overflow::h31f5191bdbee8bd5
jmp 0x4e14f4
mov dword [ebp - 0x14], edi
mov edx, 0x1f
mov ecx, 0x5aa2ab
push 0x5aa2cc
call sym.core::panicking::panic::hf6244c8fb5815825
add esp, 4
jmp 0x4e14f4
mov ecx, edi
push 0x5b0f4c
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 4
jmp 0x4e14f4
mov edx, edi
mov ecx, ebx
push 0x5b0f4c
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 4
jmp 0x4e14f4
mov ecx, 0x5aeedc
call sym.core::panicking::panic_const::panic_const_add_overflow::hf3b41c4c75c49a6d
ud2