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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
lea eax, [edx + 0x151]
mov ebx, ecx
lea esi, [edx + 0x154]
lea edi, [edx + 0x12c]
mov dword [esp + 0xa0], eax
lea eax, [edx + 0x170]
mov dword [esp + 0xd8], eax
lea eax, [edx + 0x118]
mov dword [esp + 0xa8], eax
lea eax, [edx + 0x15c]
mov dword [esp + 0xd4], eax
movzx eax, byte [edx + 0x150]
test eax, eax
jne 0x100ce90b
mov cl, byte [edx + 0x153]
mov al, byte [edx + 0x152]
mov dword [esp + 0x1c], edi
mov edi, ebx
mov bh, byte [edx + 0x151]
mov bl, byte [edx + 0x154]
mov dword [esp], edx
mov byte [esp + 0x10], cl
lea ecx, [esp + 0x60]
mov byte [esp + 4], al
call fcn.100ceff0
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x60], 1
je 0x100ce947
test eax, eax
je 0x100cdc1d
mov edx, dword [esp]
cmp byte [edx + 0x150], 0
jne 0x100cdc24
mov eax, dword [esp + 0xa0]
mov byte [eax], 1
jmp 0x100cdc24
mov edx, dword [esp]
test bh, bh
je 0x100cdc6e
mov eax, dword [edx + 0xd8]
test eax, eax
je 0x100ceaba
push eax
push edx
lea eax, [esp + 0x68]
push eax
call fcn.100cbba0
add esp, 0xc
cmp byte [esp + 0x60], 4
je 0x100ce977
mov eax, dword [esp + 0x60]
cmp al, 3
jne 0x100ce982
mov edx, dword [esp]
cmp byte [edx + 0x150], 0
jne 0x100cdc6e
mov eax, dword [esp + 0xa0]
mov byte [eax], 0
or bl, byte [esp + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], esi
or bl, byte [edx + 0x17e]
mov ebx, edi
je 0x100cdd48
cmp byte [esp + 4], 0
jne 0x100cdd76
cmp byte [esp + 0x10], 0
mov edi, dword [esp + 0x1c]
mov al, 2
jne 0x100cdcf5
xorps xmm0, xmm0
lea eax, [esp + 0x60]
mov dword [esp + 0x70], 0
movaps xmmword [esp + 0x60], xmm0
push eax
push 4
push edi
call sub.Secur32.dll_QueryContextAttributesW
test eax, eax
jne 0x100cea91
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x68]
mov edx, dword [esp]
movsd xmm0, qword [ecx]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x64]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0xbc], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
mov al, 1
mov byte [edx + 0x150], al
mov ecx, dword [esp + 0xa0]
mov al, byte [esp + 0x26]
mov byte [ecx + 2], al
movzx eax, word [esp + 0x24]
mov word [ecx], ax
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xd4]
mov dword [edx + 0x158], eax
mov eax, dword [esp + 0xc0]
mov dword [edx + 0x154], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 0x30]
movsd qword [ecx], xmm0
jmp 0x100cdbb1
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
push 0x53
push dword [esp + 0x24]
call sub.Secur32.dll_QueryContextAttributesW
test eax, eax
je 0x100ce1d2
cmp byte [esp + 4], 0
mov edx, dword [esp]
je 0x100cea39
cmp dword [edx + 0x168], 0
je 0x100cdda2
lea ecx, [esp + 0x60]
call fcn.100ceb50
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x60], 1
je 0x100ce9a9
mov edx, dword [esp]
test eax, eax
je 0x100ce9bb
mov esi, dword [edx + 0xf8]
mov edi, edx
call sub.KERNEL32.dll_GetProcessHeap
push 0x18
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100ceacb
mov edx, dword [edi + 0x108]
cmp edx, esi
jb 0x100ceadc
mov ebx, eax
mov eax, dword [edi + 0x100]
mov dword [ebx], esi
mov dword [ebx + 4], 2
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], 2
mov dword [esp + 0xb8], 2
mov eax, dword [edi + 0x170]
test eax, eax
cmovne eax, dword [esp + 0xd8]
je 0x100cde82
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push dword [eax + 8]
call fcn.100f1940
add esp, 4
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x60]
test eax, eax
je 0x100cdea3
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], 0x12
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0xb0]
mov edx, esi
call fcn.100ccff0
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb8]
jmp 0x100cdeb0
mov edx, edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x28], 0
mov eax, 2
mov dword [esp + 0x10], 0
lea esi, [esp + 0x60]
jmp 0x100cdeb3
mov eax, 2
mov dword [esp + 0x10], 0
mov edx, dword [esp]
lea ecx, [esp + 0x68]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 2
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0x11
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 3
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], esi
mov dword [esp + 0xac], 0
mov dword [esp + 4], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
cmp byte [edx + 0x17e], 0
je 0x100cdf83
mov ecx, dword [edx + 0x128]
cmp byte [edx + 0x17f], 0
mov eax, 0
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmove eax, edi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
push 0
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x48]
push ecx
push edi
push 0
push 0x1011c
lea ecx, [esp + 0x48]
push ecx
push eax
lea eax, [esp + 0x70]
push eax
call sub.Secur32.dll_AcceptSecurityContext
jmp 0x100cdfe0
mov eax, dword [edx + 0x13c]
cmp byte [edx + 0x17c], 0
mov esi, 0
mov ecx, eax
cmove ecx, esi
test eax, eax
cmove ecx, eax
mov eax, dword [edx + 0x128]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
push 0
lea eax, [esp + 0xb0]
push eax
lea eax, [esp + 0x48]
push eax
push 0
push 0
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0x9819c
push ecx
push edi
lea eax, [esp + 0x7c]
push eax
call sub.Secur32.dll_InitializeSecurityContextW
mov esi, eax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x100cdff0
push eax
call sub.Secur32.dll_FreeContextBuffer
mov eax, dword [esp + 0x80]
test eax, eax
je 0x100ce001
push eax
call sub.Secur32.dll_FreeContextBuffer
cmp esi, 0x80090318
je 0x100ce185
mov edx, dword [esp]
test esi, esi
je 0x100ce070
mov eax, dword [esp + 0x10]
cmp esi, 0x90312
jne 0x100ce1b2
mov eax, dword [esp + 4]
mov byte [edx + 0x17f], 0
cmp eax, 1
jbe 0x100ceae5
cmp dword [ebx + 0x10], 5
mov esi, dword [edx + 0xf8]
jne 0x100ce265
mov ecx, esi
sub ecx, dword [ebx + 0xc]
jb 0x100ceb01
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
sub esi, ecx
jne 0x100ce27b
jmp 0x100ce2bc
mov eax, dword [esp + 4]
cmp eax, 1
jbe 0x100ceaf3
mov esi, dword [edx + 0xf8]
cmp dword [ebx + 0x10], 5
mov ecx, esi
jne 0x100ce090
mov ecx, esi
sub ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x68]
test eax, eax
sete byte [esp + 4]
je 0x100ce0af
mov edi, dword [esp + 0x60]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xd0], edi
cmp ecx, esi
ja 0x100ceb01
sub esi, ecx
je 0x100ce0fc
mov eax, edx
mov edx, dword [edx + 0x108]
mov edi, edx
sub edi, ecx
jb 0x100ceb30
mov edx, eax
mov dword [eax + 0x108], 0
je 0x100ce0fc
test ecx, ecx
je 0x100ce0f6
mov eax, dword [edx + 0x100]
add ecx, eax
push edi
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [esp + 0xc]
add esp, 0xc
mov dword [edx + 0x108], edi
mov al, byte [esp + 4]
xor ecx, ecx
mov dword [edx + 0xf8], esi
mov dword [edx + 0xfc], 0
dec al
test esi, esi
sete cl
test al, 1
mov dword [edx + 0x168], ecx
je 0x100ce32b
mov esi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xa8]
mov edx, esi
call fcn.10116f60
mov eax, dword [esp]
mov ecx, dword [esp]
mov eax, dword [eax + 0x118]
add eax, dword [ecx + 0x120]
push esi
mov edi, dword [esp + 0xa0]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
add dword [eax + 0x120], esi
push edi
call sub.Secur32.dll_FreeContextBuffer
mov edx, dword [esp]
mov cl, 1
mov esi, dword [edx + 0xf8]
mov eax, dword [edx + 0xfc]
jmp 0x100ce32f
mov eax, dword [esp + 4]
mov edx, dword [esp]
cmp eax, 1
jbe 0x100ceb1a
cmp dword [ebx + 0x10], 4
mov esi, dword [esp + 0xc]
mov eax, 1
jne 0x100ce1a7
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x168], eax
jmp 0x100ce3d9
mov dword [esp + 0xa4], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 8], 0
test eax, eax
jne 0x100ce397
jmp 0x100ce44a
mov eax, dword [esp + 0x60]
mov dword [esp + 0x98], eax
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100ce485
push eax
call sub.CRYPT32.dll_CertDuplicateStore
mov ecx, dword [esp]
cmp dword [ecx + 0x134], 1
jne 0x100ce49b
mov dword [esp + 8], eax
push 0
push dword [ecx + 0x138]
nop word [eax + eax]
call sub.CRYPT32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x100ce4a9
mov ebx, eax
push eax
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov esi, eax
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
push 3
push ebx
push dword [esp + 0x14]
call sub.CRYPT32.dll_CertAddCertificateContextToStore
cmp eax, 1
jne 0x100cea15
push dword [esp + 0x60]
call sub.CRYPT32.dll_CertFreeCertificateContext
push ebx
call sub.CRYPT32.dll_CertFreeCertificateContext
push esi
mov eax, dword [esp + 4]
push dword [eax + 0x138]
jmp 0x100ce210
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov ecx, esi
sub esi, ecx
je 0x100ce2bc
mov eax, edx
mov edx, dword [edx + 0x108]
mov edi, edx
sub edi, ecx
jb 0x100ceb30
mov edx, eax
mov dword [eax + 0x108], 0
je 0x100ce2bc
test ecx, ecx
je 0x100ce2b6
mov eax, dword [edx + 0x100]
add ecx, eax
push edi
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov edx, dword [esp + 0xc]
add esp, 0xc
mov dword [edx + 0x108], edi
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0xa8]
xor eax, eax
test esi, esi
mov dword [edx + 0xf8], esi
mov dword [edx + 0xfc], 0
sete al
mov dword [edx + 0x168], eax
mov edx, edi
call fcn.10116f60
mov eax, dword [esp]
mov ecx, dword [esp]
mov eax, dword [eax + 0x118]
add eax, dword [ecx + 0x120]
push edi
mov esi, dword [esp + 8]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp]
add dword [eax + 0x120], edi
push esi
call sub.Secur32.dll_FreeContextBuffer
mov edx, dword [esp]
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
jmp 0x100ce3d9
xor eax, eax
xor ecx, ecx
mov edi, dword [esp + 0x1c]
or esi, eax
je 0x100ce3af
mov edx, dword [esp]
mov esi, ecx
lea ecx, [esp + 0x50]
call fcn.100ced20
mov edx, dword [esp]
cmp byte [esp + 0x50], 1
mov ecx, esi
jne 0x100ce3af
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
or cl, byte [esp + 4]
mov dword [esp + 8], eax
shrd eax, esi, 8
mov dword [esp + 0xa4], esi
mov esi, dword [esp + 0xc]
cmp cl, 1
mov dword [esp + 0xc8], eax
je 0x100ce38b
push dword [esp + 0x9c]
call sub.Secur32.dll_FreeContextBuffer
mov edx, dword [esp]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100ce44a
mov esi, dword [esp + 0x2c]
cmp eax, 9
jae 0x100ce433
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100ce43b
cmp byte [edx + 0x150], 0
mov esi, dword [esp + 0xc]
jne 0x100ce3c3
mov byte [edx + 0x152], 0
or cl, byte [esp + 4]
mov eax, dword [esp + 0x9c]
jne 0x100ce3d9
push eax
call sub.Secur32.dll_FreeContextBuffer
mov edx, dword [esp]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100ce409
mov esi, dword [esp + 0x2c]
cmp eax, 9
jae 0x100ce3f2
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100ce3fa
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [esp + 0xc]
mov edx, dword [esp]
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x100ce42f
shl eax, 2
lea eax, [eax + eax*2]
test eax, eax
je 0x100ce42f
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edx, dword [esp]
mov al, 3
jmp 0x100ce474
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [esp + 0xc]
mov edx, dword [esp]
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x100ce470
shl eax, 2
lea eax, [eax + eax*2]
test eax, eax
je 0x100ce470
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edx, dword [esp]
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x18]
cmp al, 3
je 0x100cdbb1
jmp 0x100ce953
mov eax, dword [esp]
xor ecx, ecx
cmp dword [eax + 0x134], 1
jne 0x100ce4b7
mov ecx, dword [eax + 0x138]
jmp 0x100ce4b7
push 0
push eax
mov edi, eax
call sub.CRYPT32.dll_CertCloseStore
mov ecx, edi
jmp 0x100ce4b7
push 0
mov esi, dword [esp + 0xc]
push esi
call sub.CRYPT32.dll_CertCloseStore
mov ecx, esi
lea eax, [esp + 0x68]
mov dword [esp + 0x24], 0x10551ee0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x28], 0
mov dword [esp + 0x60], 0x34
mov dword [esp + 0x64], 1
mov eax, dword [0x10551eec]
cmp eax, 3
jne 0x100ce87b
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov dword [esp + 0x24], 0x10551ef0
mov eax, dword [0x10551efc]
cmp eax, 3
jne 0x100ce8ab
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
mov dword [esp + 0x24], 0x10551f00
mov eax, dword [0x10551f0c]
cmp eax, 3
jne 0x100ce8db
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x68], 3
mov dword [esp + 0x40], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
push 0
push 0xc0000001
lea eax, [esp + 0x6c]
push eax
push ecx
push 0
push dword [esp + 0xb0]
push 0
call sub.CRYPT32.dll_CertGetCertificateChain
cmp eax, 1
jne 0x100cea3d
mov ecx, dword [esp]
mov edx, dword [esp + 0x40]
mov esi, 0xf00
cmp dword [ecx + 0x134], 1
mov dword [esp + 0x20], edx
jne 0x100ce626
cmp dword [edx + 0xc], 0
mov edi, dword [esp + 0x18]
je 0x100ce72f
mov eax, dword [edx + 0x10]
mov edi, dword [eax]
push edx
call sub.CRYPT32.dll_CertDuplicateCertificateChain
mov ecx, dword [esp + 0x20]
mov esi, eax
cmp dword [ecx + 0xc], 2
jb 0x100ce62f
mov edi, 1
nop dword [eax]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
mov dword [esp + 0x14], eax
push ecx
call sub.CRYPT32.dll_CertDuplicateCertificateChain
mov ebx, eax
push esi
call sub.CRYPT32.dll_CertFreeCertificateChain
mov ecx, dword [esp + 0x20]
inc edi
mov esi, ebx
cmp dword [ecx + 0xc], edi
ja 0x100ce600
jmp 0x100ce635
mov edi, dword [esp + 0x18]
jmp 0x100ce72f
mov dword [esp + 0x14], edi
mov ebx, esi
push ecx
call sub.CRYPT32.dll_CertDuplicateCertificateChain
mov dword [esp + 0xc4], eax
push ebx
call sub.CRYPT32.dll_CertFreeCertificateChain
mov edi, dword [esp + 0x18]
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov esi, 0xf00
cmp dword [eax + 0xc], ecx
jbe 0x100ce71c
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100ce71c
mov eax, dword [eax + ecx*4]
inc ecx
xor edi, edi
mov dword [esp + 0xcc], ecx
push dword [eax + 4]
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov esi, eax
jmp 0x100ce696
push ebx
call sub.CRYPT32.dll_CertFreeCertificateContext
push edi
mov eax, dword [esp + 4]
push dword [eax + 0x138]
call sub.CRYPT32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x100ce6eb
mov ebx, eax
push eax
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov edi, eax
mov eax, dword [esi + 8]
cmp dword [ebx + 8], eax
jne 0x100ce690
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 4]
cmp ecx, edx
je 0x100ce701
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
mov dword [esp + 8], edi
mov edi, esi
mov esi, eax
push ebx
call sub.CRYPT32.dll_CertFreeCertificateContext
test esi, esi
mov esi, edi
mov edi, dword [esp + 8]
jne 0x100ce696
jmp 0x100ce707
push esi
call sub.CRYPT32.dll_CertFreeCertificateContext
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0xcc]
jmp 0x100ce64e
push ebx
call sub.CRYPT32.dll_CertFreeCertificateContext
push edi
call sub.CRYPT32.dll_CertFreeCertificateContext
push esi
call sub.CRYPT32.dll_CertFreeCertificateContext
mov edi, dword [esp + 0x18]
mov esi, 0xf10
push dword [esp + 0xc4]
call sub.CRYPT32.dll_CertFreeCertificateChain
mov ecx, dword [esp]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], 2
mov eax, dword [ecx + 0x13c]
test eax, eax
je 0x100ce766
cmp byte [ecx + 0x17d], 0
jne 0x100ce766
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x68]
mov dword [eax], 0
mov dword [eax - 4], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x14
push eax
lea eax, [esp + 0x34]
push eax
push edx
push 4
call sub.CRYPT32.dll_CertVerifyCertificateChainPolicy
test eax, eax
je 0x100cea4a
mov esi, dword [esp]
mov ebx, dword [esp + 0x64]
xor ecx, ecx
mov eax, dword [esi + 0x148]
test ebx, ebx
sete dl
test eax, eax
je 0x100ce82c
mov ecx, dword [esi + 0x14c]
mov edx, dword [ecx + 8]
lea esi, [edx + 7]
neg edx
and edx, esi
add eax, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x50]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call dword [ecx + 0xc]
add esp, 0xc
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov bl, 1
mov edx, ecx
mov dword [esp + 0x14], eax
xor eax, eax
and edx, 0xffffff00
jmp 0x100ce83b
mov cl, dl
mov dword [esp + 0x14], ebx
mov al, 1
xor edx, edx
xor ebx, ebx
lea ecx, [ecx + ecx*2]
mov esi, dword [esp + 0xc]
cmp cl, 3
jne 0x100cea59
test bl, bl
jne 0x100ce855
push dword [esp + 0x20]
call sub.CRYPT32.dll_CertFreeCertificateChain
push dword [esp + 0x98]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov edx, dword [esp]
mov ebx, edi
cmp byte [edx + 0x150], 0
jne 0x100cdc88
mov byte [esi], 1
jmp 0x100cdc88
lea eax, [esp + 0x24]
lea edx, [esp + 0x30]
mov esi, ecx
lea ecx, [0x10551eec]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x40]
push 0x103a023c
call fcn.100fb770
mov ecx, esi
add esp, 4
jmp 0x100ce52d
lea eax, [esp + 0x24]
lea edx, [esp + 0x30]
mov edi, ecx
lea ecx, [0x10551efc]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x40]
push 0x103a0250
call fcn.100fb770
mov ecx, edi
add esp, 4
jmp 0x100ce549
lea eax, [esp + 0x24]
lea edx, [esp + 0x30]
mov ebx, ecx
lea ecx, [0x10551f0c]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x40]
push 0x103a0264
call fcn.100fb770
mov ecx, ebx
add esp, 4
jmp 0x100ce565
cmp eax, 1
je 0x100ce919
mov dword [ebx + 4], 0
jmp 0x100ce939
mov dword [ebx + 4], 1
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
movsd qword [ebx + 8], xmm0
movsd qword [ebx + 0x10], xmm1
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x18], eax
mov dword [ebx], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 0x68]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
jmp 0x100ce9a1
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xa4]
movzx eax, al
shl ecx, 8
mov dword [ebx + 8], edx
or eax, ecx
mov dword [ebx + 4], eax
mov dword [ebx], 1
jmp 0x100ce93f
xor ecx, ecx
mov edx, 0xa
mov al, 1
jmp 0x100ce98f
mov ecx, dword [esp + 0x64]
mov edx, eax
shrd edx, ecx, 8
shr ecx, 8
shld ecx, edx, 8
shl edx, 8
movzx eax, al
or eax, edx
mov dword [edi + 8], ecx
mov dword [edi + 4], eax
mov dword [edi], 1
jmp 0x100ce93f
mov ecx, dword [esp + 0x68]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx], 1
jmp 0x100ce93f
mov ecx, str.unexpected_EOF_during_handshake
mov edx, 0x1f
call fcn.1004c900
mov esi, eax
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100ceb3f
mov dword [eax], esi
mov dword [eax + 4], 0x10397e2c
mov byte [eax + 8], 0x11
movzx ecx, word [esp + 0x60]
mov word [eax + 9], cx
mov cl, byte [esp + 0x62]
mov byte [eax + 0xb], cl
mov dword [ebx + 4], 2
mov dword [ebx + 8], eax
mov dword [ebx], 1
jmp 0x100ce93f
call sub.KERNEL32.dll_GetLastError
xor edi, edi
mov dword [esp + 0x14], eax
push ebx
call sub.CRYPT32.dll_CertFreeCertificateContext
push esi
call sub.CRYPT32.dll_CertFreeCertificateContext
push 0
push dword [esp + 0xc]
call sub.CRYPT32.dll_CertCloseStore
jmp 0x100cea6c
xor edi, edi
jmp 0x100cea7c
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x14], eax
xor edi, edi
jmp 0x100cea6c
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x14], eax
xor edi, edi
mov al, 1
jmp 0x100cea5e
movzx edi, cl
or edi, edx
test al, al
mov eax, dword [esp + 0x20]
je 0x100cea6c
push eax
call sub.CRYPT32.dll_CertFreeCertificateChain
push dword [esp + 0x98]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [ecx + 4], edi
mov dword [ecx + 8], eax
mov dword [ecx], 1
jmp 0x100ce93f
movsd xmm0, qword [esp + 0x50]
mov ecx, dword [esp + 0x58]
mov dword [ebx + 8], eax
mov dword [ebx + 4], 0
mov dword [ebx], 1
movsd qword [esp + 0x40], xmm0
mov dword [esp + 0x48], ecx
jmp 0x100ce93f
mov ecx, str.assertion_failed:__self.context.is_null__
mov edx, 0x29
push 0x1039e348
jmp 0x100ceb10
mov ecx, 0x18
mov edx, 4
call fcn.100067d0
ud2
mov ecx, esi
push 0x103c9ccc
jmp 0x100ceb35
mov ecx, 1
mov edx, eax
push 0x103c9cdc
jmp 0x100ceb26
mov ecx, 1
mov edx, eax
push 0x103c9cfc
jmp 0x100ceb26
mov ecx, str.assertion_failed:_size___nread
mov edx, 0x1f
push 0x103c9c24
call fcn.1004d820
add esp, 4
ud2
mov ecx, 1
mov edx, eax
push 0x103c9cec
call fcn.10008590
add esp, 4
ud2
push 0x103c9c34
call fcn.10008b80
add esp, 4
ud2
mov ecx, 0xc
jmp 0x100cead0