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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
lea eax, [edx + 0x9d]
mov esi, edx
lea edi, [esp + 0x70]
mov dword [esp + 0xc], edx
mov dword [esp + 0xac], eax
lea eax, [edx + 0xa0]
mov dword [esp + 0xb8], eax
lea eax, [edx + 0x4c]
mov dword [esp + 0x6c], eax
lea eax, [edx + 0xbc]
mov dword [esp + 0xe8], eax
lea eax, [edx + 0x38]
mov dword [esp + 0xb4], eax
lea eax, [edx + 0xa8]
mov dword [esp + 0xe4], eax
movzx eax, byte [esi + 0x9c]
test eax, eax
jne 0x100ccb3b
mov dword [esp + 0x20], ecx
mov cl, byte [esi + 0x9f]
mov al, byte [esi + 0x9e]
mov bh, byte [esi + 0x9d]
mov bl, byte [esi + 0xa0]
mov edx, esi
mov byte [esp + 0x18], cl
mov ecx, edi
mov byte [esp + 0x10], al
call fcn.100ccd50
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x70], 1
je 0x100ccb7e
test eax, eax
je 0x100cbf52
cmp byte [esi + 0x9c], 0
jne 0x100cbf56
mov eax, dword [esp + 0xac]
mov byte [eax], 1
jmp 0x100cbf56
test bh, bh
je 0x100cbf76
cmp dword [esi + 0x98], 0
je 0x100cccd3
cmp byte [esi + 0x9c], 0
jne 0x100cbf76
mov eax, dword [esp + 0xac]
mov byte [eax], 0
or bl, byte [esp + 0x18]
or bl, byte [esi + 0xca]
je 0x100cc045
cmp byte [esp + 0x10], 0
jne 0x100cc06c
cmp byte [esp + 0x18], 0
mov al, 2
jne 0x100cbfee
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
movaps xmmword [esp + 0x70], xmm0
push edi
push 4
push dword [esp + 0x74]
call sub.Secur32.dll_QueryContextAttributesW
test eax, eax
jne 0x100ccc8c
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x78]
movsd xmm0, qword [ecx]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x74]
movsd qword [esp + 0x30], xmm0
mov dword [esp + 0xcc], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
mov al, 1
mov byte [esi + 0x9c], al
mov ecx, dword [esp + 0xac]
mov al, byte [esp + 0x26]
mov byte [ecx + 2], al
movzx eax, word [esp + 0x24]
mov word [ecx], ax
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xe4]
mov dword [esi + 0xa4], eax
mov eax, dword [esp + 0xd0]
mov dword [esi + 0xa0], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], eax
movsd xmm0, qword [esp + 0x30]
movsd qword [ecx], xmm0
mov ecx, dword [esp + 0x20]
jmp 0x100cbeee
mov dword [esp + 0x70], 0
push edi
push 0x53
push dword [esp + 0x74]
call sub.Secur32.dll_QueryContextAttributesW
test eax, eax
je 0x100cc492
cmp byte [esp + 0x10], 0
je 0x100ccc38
cmp dword [esi + 0xb4], 0
je 0x100cc095
mov ecx, edi
mov edx, esi
call fcn.100cce40
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x70], 1
je 0x100ccb7e
test eax, eax
je 0x100ccbb8
mov edi, dword [esi + 0x18]
call sub.KERNEL32.dll_GetProcessHeap
push 0x18
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100cccb9
mov edx, dword [esi + 0x28]
cmp edx, edi
jb 0x100cccca
mov ebx, eax
mov eax, dword [esi + 0x20]
mov dword [ebx], edi
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 + 0xc0], ebx
mov dword [esp + 0xc4], 2
mov dword [esp + 0xc8], 2
mov eax, dword [esi + 0xbc]
test eax, eax
cmovne eax, dword [esp + 0xe8]
je 0x100cc166
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push dword [eax + 8]
call fcn.100f1940
add esp, 4
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x70]
test eax, eax
je 0x100cc181
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], 0x12
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0xc0]
mov edx, edi
call fcn.100ccff0
mov ebx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc8]
jmp 0x100cc18e
mov dword [esp + 0x28], 0
mov eax, 2
mov dword [esp + 0x18], 0
lea edi, [esp + 0x70]
jmp 0x100cc18e
mov eax, 2
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x78]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 2
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0x11
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 3
mov dword [esp + 0x38], ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0xbc], 0
mov dword [esp + 0x10], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
cmp byte [esi + 0xca], 0
je 0x100cc262
mov ecx, dword [esi + 0x48]
cmp byte [esi + 0xcb], 0
mov edi, dword [esp + 0x6c]
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 + 0xc0]
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 0x100cc2bf
mov eax, dword [esi + 0x5c]
cmp byte [esi + 0xc8], 0
mov edx, 0
mov ecx, eax
cmove ecx, edx
test eax, eax
cmove ecx, eax
mov eax, dword [esi + 0x48]
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 + 0xc0]
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 dword [esp + 0x94]
lea eax, [esp + 0x7c]
push eax
call sub.Secur32.dll_InitializeSecurityContextW
mov esi, eax
mov eax, dword [esp + 0x84]
test eax, eax
je 0x100cc2d2
push eax
call sub.Secur32.dll_FreeContextBuffer
mov eax, dword [esp + 0x90]
lea edi, [esp + 0x70]
test eax, eax
je 0x100cc2e7
push eax
call sub.Secur32.dll_FreeContextBuffer
cmp esi, 0x80090318
je 0x100cc431
mov edx, dword [esp + 0x10]
test esi, esi
je 0x100cc344
cmp esi, 0x90312
jne 0x100cc45b
mov eax, dword [esp + 0xc]
cmp edx, 1
mov byte [eax + 0xcb], 0
jbe 0x100ccce4
cmp dword [ebx + 0x10], 5
mov edi, dword [eax + 0x18]
mov dword [esp + 0x1c], ebx
jne 0x100cc51e
mov ecx, edi
sub ecx, dword [ebx + 0xc]
jb 0x100cccfc
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
jmp 0x100cc528
cmp edx, 1
jbe 0x100cccf0
mov eax, dword [esp + 0xc]
cmp dword [ebx + 0x10], 5
mov esi, dword [eax + 0x18]
mov ecx, esi
jne 0x100cc361
mov ecx, esi
sub ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x78]
test eax, eax
sete byte [esp + 0x10]
je 0x100cc37d
mov edx, dword [esp + 0x70]
mov dword [esp + 0x64], eax
mov dword [esp + 0xe0], edx
cmp ecx, esi
ja 0x100cccfc
sub esi, ecx
je 0x100cc3c6
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x28]
mov edi, edx
sub edi, ecx
jb 0x100ccd29
mov dword [eax + 0x28], 0
je 0x100cc3c6
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x100cc3c3
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x20]
add ecx, eax
push edi
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax + 0x28], edi
mov al, byte [esp + 0x10]
mov edi, dword [esp + 0xc]
xor ecx, ecx
dec al
test esi, esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], 0
sete cl
test al, 1
mov dword [edi + 0xb4], ecx
je 0x100cc5cd
mov esi, dword [esp + 0xe0]
mov ecx, dword [esp + 0xb4]
mov edx, esi
call fcn.10116f60
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x40]
push esi
push dword [esp + 0x68]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [edi + 0x40], esi
push dword [esp + 0x64]
call sub.Secur32.dll_FreeContextBuffer
mov esi, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
mov dl, 1
jmp 0x100cc5d1
mov edx, dword [esp + 0x10]
cmp edx, 1
jbe 0x100ccd15
cmp dword [ebx + 0x10], 4
mov esi, dword [esp + 0xc]
mov eax, 1
jne 0x100cc450
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xb4], eax
jmp 0x100cc64f
mov dword [esp + 0xb0], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100cc6c6
mov esi, dword [esp + 0x2c]
cmp eax, 9
jae 0x100cc6b2
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100cc6ba
mov eax, dword [esp + 0x70]
mov dword [esp + 0xa8], eax
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100cc6fe
push eax
call sub.CRYPT32.dll_CertDuplicateStore
cmp dword [esi + 0x54], 1
mov ebx, eax
jne 0x100cc70b
mov dword [esp + 0x14], ebx
push 0
push dword [esi + 0x58]
nop word cs:[eax + eax]
nop dword [eax]
call sub.CRYPT32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x100cc70f
mov ebx, eax
push eax
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov esi, eax
mov dword [esp + 0x70], 0
push edi
push 3
push ebx
push dword [esp + 0x20]
call sub.CRYPT32.dll_CertAddCertificateContextToStore
cmp eax, 1
jne 0x100ccc16
push dword [esp + 0x70]
call sub.CRYPT32.dll_CertFreeCertificateContext
push ebx
call sub.CRYPT32.dll_CertFreeCertificateContext
push esi
mov eax, dword [esp + 0x10]
push dword [eax + 0x58]
jmp 0x100cc4d0
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x70]
mov ecx, edi
mov dword [esp + 0x10], eax
sub edi, ecx
je 0x100cc56d
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x28]
mov esi, edx
sub esi, ecx
jb 0x100ccd29
mov dword [eax + 0x28], 0
je 0x100cc56d
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x100cc56a
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x20]
add ecx, eax
push esi
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax + 0x28], esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0xb4]
xor eax, eax
test edi, edi
mov edx, ebx
sete al
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 0
mov dword [esi + 0xb4], eax
call fcn.10116f60
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x40]
push ebx
mov edi, dword [esp + 0x14]
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [esi + 0x40], ebx
push edi
call sub.Secur32.dll_FreeContextBuffer
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x70]
test eax, eax
jne 0x100cc657
jmp 0x100cc67c
xor eax, eax
xor edx, edx
or esi, eax
mov esi, dword [esp + 0xc]
lea edi, [esp + 0x70]
je 0x100cc630
mov dword [esp + 0x68], edx
lea ecx, [esp + 0x50]
mov edx, esi
call fcn.100cd0d0
mov edx, dword [esp + 0x68]
cmp byte [esp + 0x50], 1
jne 0x100cc630
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
or dl, byte [esp + 0x10]
mov dword [esp + 0x14], eax
shrd eax, ecx, 8
cmp dl, 1
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xd8], eax
je 0x100cc46e
push dword [esp + 0x64]
call sub.Secur32.dll_FreeContextBuffer
jmp 0x100cc46e
cmp byte [esi + 0x9c], 0
jne 0x100cc640
mov byte [esi + 0x9e], 0
or dl, byte [esp + 0x10]
jne 0x100cc64f
push dword [esp + 0x64]
call sub.Secur32.dll_FreeContextBuffer
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100cc67c
mov esi, dword [esp + 0x2c]
cmp eax, 9
jae 0x100cc668
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100cc670
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x100cc69f
shl eax, 2
lea eax, [eax + eax*2]
test eax, eax
je 0x100cc69f
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0x20]
mov al, 3
cmp al, 3
je 0x100cbeee
jmp 0x100ccb94
call sub.KERNEL32.dll_GetProcessHeap
push dword [esi - 4]
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x100cc6e9
shl eax, 2
lea eax, [eax + eax*2]
test eax, eax
je 0x100cc6e9
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp al, 3
je 0x100cbeee
jmp 0x100ccb94
xor ebx, ebx
cmp dword [esi + 0x54], 1
jne 0x100cc71b
mov ebx, dword [esi + 0x58]
jmp 0x100cc71b
push 0
jmp 0x100cc715
push 0
mov ebx, dword [esp + 0x18]
push ebx
call sub.CRYPT32.dll_CertCloseStore
lea eax, [esp + 0x78]
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 + 0x70], 0x34
mov dword [esp + 0x74], 1
mov eax, dword [0x10551eec]
cmp eax, 3
jne 0x100ccab7
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov dword [esp + 0x24], 0x10551ef0
mov eax, dword [0x10551efc]
cmp eax, 3
jne 0x100ccae3
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
mov dword [esp + 0x24], 0x10551f00
mov eax, dword [0x10551f0c]
cmp eax, 3
jne 0x100ccb0f
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x78], 3
mov dword [esp + 0x40], 0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x40]
push eax
push 0
push 0xc0000001
lea edi, [esp + 0x7c]
push edi
push ebx
push 0
push dword [esp + 0xc0]
push 0
call sub.CRYPT32.dll_CertGetCertificateChain
cmp eax, 1
jne 0x100ccc3e
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x40]
mov esi, 0xf00
cmp dword [eax + 0x54], 1
mov dword [esp + 0x1c], edx
jne 0x100cc973
cmp dword [edx + 0xc], 0
je 0x100cc973
mov eax, dword [edx + 0x10]
mov edi, dword [eax]
push edx
call sub.CRYPT32.dll_CertDuplicateCertificateChain
mov ecx, dword [esp + 0x1c]
mov esi, eax
cmp dword [ecx + 0xc], 2
jb 0x100cc886
mov edi, 1
nop
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
mov dword [esp + 0x68], eax
push ecx
call sub.CRYPT32.dll_CertDuplicateCertificateChain
mov ebx, eax
push esi
call sub.CRYPT32.dll_CertFreeCertificateChain
mov ecx, dword [esp + 0x1c]
inc edi
mov esi, ebx
cmp dword [ecx + 0xc], edi
ja 0x100cc860
jmp 0x100cc88c
mov dword [esp + 0x68], edi
mov ebx, esi
push ecx
call sub.CRYPT32.dll_CertDuplicateCertificateChain
mov dword [esp + 0xd4], eax
push ebx
call sub.CRYPT32.dll_CertFreeCertificateChain
xor ecx, ecx
lea edi, [esp + 0x70]
mov eax, dword [esp + 0x68]
mov esi, 0xf00
cmp dword [eax + 0xc], ecx
jbe 0x100cc963
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100cc963
mov eax, dword [eax + ecx*4]
inc ecx
xor esi, esi
mov dword [esp + 0xdc], ecx
push dword [eax + 4]
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov dword [esp + 0x14], eax
jmp 0x100cc8e6
push ebx
call sub.CRYPT32.dll_CertFreeCertificateContext
push esi
mov eax, dword [esp + 0x10]
push dword [eax + 0x58]
call sub.CRYPT32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x100cc934
mov ebx, eax
push eax
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [edx + 8]
cmp dword [ebx + 8], eax
jne 0x100cc8e0
mov ecx, dword [ebx + 4]
mov edx, dword [edx + 4]
cmp ecx, edx
je 0x100cc949
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
mov edi, eax
push ebx
call sub.CRYPT32.dll_CertFreeCertificateContext
test edi, edi
lea edi, [esp + 0x70]
jne 0x100cc8e6
jmp 0x100cc94f
push dword [esp + 0x14]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov ecx, dword [esp + 0xdc]
jmp 0x100cc8a5
push ebx
call sub.CRYPT32.dll_CertFreeCertificateContext
push esi
call sub.CRYPT32.dll_CertFreeCertificateContext
push dword [esp + 0x14]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov esi, 0xf10
push dword [esp + 0xd4]
call sub.CRYPT32.dll_CertFreeCertificateChain
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], 2
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x100cc9af
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xc9], 0
jne 0x100cc9af
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 + 0x78]
mov dword [eax], 0
mov dword [eax - 4], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [esp + 0x70], 0x14
push edi
lea eax, [esp + 0x34]
push eax
push edx
push 4
call sub.CRYPT32.dll_CertVerifyCertificateChainPolicy
test eax, eax
je 0x100ccc49
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x74]
xor ecx, ecx
mov eax, dword [esi + 0x68]
test ebx, ebx
sete dl
test eax, eax
je 0x100cca68
mov ecx, dword [esi + 0x6c]
mov edx, dword [ecx + 8]
lea esi, [edx + 7]
neg edx
and edx, esi
add eax, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x7c]
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 esi, dword [esp + 0x28]
mov bl, 1
xor eax, eax
mov edx, ecx
and edx, 0xffffff00
jmp 0x100cca75
mov cl, dl
mov esi, ebx
mov al, 1
xor edx, edx
xor ebx, ebx
lea ecx, [ecx + ecx*2]
cmp cl, 3
jne 0x100ccc56
test bl, bl
jne 0x100cca8b
push dword [esp + 0x1c]
call sub.CRYPT32.dll_CertFreeCertificateChain
push dword [esp + 0xa8]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov esi, dword [esp + 0xc]
cmp byte [esi + 0x9c], 0
jne 0x100cbf86
mov eax, dword [esp + 0xb8]
mov byte [eax], 1
jmp 0x100cbf86
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], eax
lea ecx, [0x10551eec]
push 0x103a023c
call fcn.100fb770
add esp, 4
jmp 0x100cc791
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], eax
lea ecx, [0x10551efc]
push 0x103a0250
call fcn.100fb770
add esp, 4
jmp 0x100cc7ad
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], eax
lea ecx, [0x10551f0c]
push 0x103a0264
call fcn.100fb770
add esp, 4
jmp 0x100cc7c9
cmp eax, 1
je 0x100ccb49
mov dword [ecx + 4], 0
jmp 0x100ccb70
mov eax, dword [esp + 0xb8]
mov dword [ecx + 4], 1
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [ecx + 8], xmm0
movsd qword [ecx + 0x10], xmm1
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x18], eax
mov dword [ecx], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x78]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [edx], 1
jmp 0x100ccb76
mov edx, dword [esp + 0xd8]
mov esi, dword [esp + 0xb0]
movzx eax, al
shl edx, 8
mov dword [ecx + 8], esi
or eax, edx
mov dword [ecx + 4], eax
mov dword [ecx], 1
jmp 0x100ccb76
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 0x100ccd38
mov dword [eax], esi
mov dword [eax + 4], 0x10397e2c
mov byte [eax + 8], 0x11
mov edx, dword [esp + 0x20]
movzx ecx, word [esp + 0x70]
mov word [eax + 9], cx
mov cl, byte [esp + 0x72]
mov byte [eax + 0xb], cl
mov dword [edx + 4], 2
mov dword [edx + 8], eax
mov dword [edx], 1
jmp 0x100ccb76
call sub.KERNEL32.dll_GetLastError
xor edi, edi
push ebx
mov ebx, eax
call sub.CRYPT32.dll_CertFreeCertificateContext
push esi
call sub.CRYPT32.dll_CertFreeCertificateContext
push 0
push dword [esp + 0x18]
call sub.CRYPT32.dll_CertCloseStore
jmp 0x100ccc6b
mov ebx, eax
xor edi, edi
jmp 0x100ccc77
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
xor edi, edi
jmp 0x100ccc6b
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
xor edi, edi
mov al, 1
jmp 0x100ccc5d
movzx edi, cl
mov ebx, esi
or edi, edx
test al, al
mov eax, dword [esp + 0x1c]
je 0x100ccc6b
push eax
call sub.CRYPT32.dll_CertFreeCertificateChain
push dword [esp + 0xa8]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov eax, dword [esp + 0x20]
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
mov dword [eax], 1
jmp 0x100ccb76
mov edx, dword [esp + 0x20]
movsd xmm0, qword [esp + 0x50]
mov ecx, dword [esp + 0x58]
movsd qword [esp + 0x40], xmm0
mov dword [esp + 0x48], ecx
mov dword [edx + 8], eax
mov dword [edx + 4], 0
mov dword [edx], 1
jmp 0x100ccb76
mov ecx, 0x18
mov edx, 4
call fcn.100067d0
ud2
mov ecx, edi
push 0x103c9ccc
jmp 0x100ccd2e
mov ecx, str.assertion_failed:__self.context.is_null__
mov edx, 0x29
push 0x1039e348
jmp 0x100ccd0b
mov ecx, 1
push 0x103c9cdc
jmp 0x100ccd1f
mov ecx, 1
push 0x103c9cfc
jmp 0x100ccd1f
mov ecx, str.assertion_failed:_size___nread
mov edx, 0x1f
push 0x103c9c24
call fcn.1004d820
add esp, 4
ud2
mov ecx, 1
push 0x103c9cec
call fcn.10008590
add esp, 4
ud2
push 0x103c9c34
call fcn.10008b80
add esp, 4
ud2
mov ecx, 0xc
jmp 0x100cccbe