Function at 0x100cbb90
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 0x100cc83b
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.100cca50
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x70], 1
je 0x100cc87e
test eax, eax
je 0x100cbc52
cmp byte [esi + 0x9c], 0
jne 0x100cbc56
mov eax, dword [esp + 0xac]
mov byte [eax], 1
jmp 0x100cbc56
test bh, bh
je 0x100cbc76
cmp dword [esi + 0x98], 0
je 0x100cc9d3
cmp byte [esi + 0x9c], 0
jne 0x100cbc76
mov eax, dword [esp + 0xac]
mov byte [eax], 0
or bl, byte [esp + 0x18]
or bl, byte [esi + 0xca]
je 0x100cbd45
cmp byte [esp + 0x10], 0
jne 0x100cbd6c
cmp byte [esp + 0x18], 0
mov al, 2
jne 0x100cbcee
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 0x100cc98c
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 0x100cbbee
mov dword [esp + 0x70], 0
push edi
push 0x53
push dword [esp + 0x74]
call sub.Secur32.dll_QueryContextAttributesW
test eax, eax
je 0x100cc192
cmp byte [esp + 0x10], 0
je 0x100cc938
cmp dword [esi + 0xb4], 0
je 0x100cbd95
mov ecx, edi
mov edx, esi
call fcn.100ccb40
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x70], 1
je 0x100cc87e
test eax, eax
je 0x100cc8b8
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 0x100cc9b9
mov edx, dword [esi + 0x28]
cmp edx, edi
jb 0x100cc9ca
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 0x100cbe66
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push dword [eax + 8]
call fcn.100f1660
add esp, 4
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x70]
test eax, eax
je 0x100cbe81
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.100cccf0
mov ebx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc8]
jmp 0x100cbe8e
mov dword [esp + 0x28], 0
mov eax, 2
mov dword [esp + 0x18], 0
lea edi, [esp + 0x70]
jmp 0x100cbe8e
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 0x100cbf62
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 0x100cbfbf
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 0x100cbfd2
push eax
call sub.Secur32.dll_FreeContextBuffer
mov eax, dword [esp + 0x90]
lea edi, [esp + 0x70]
test eax, eax
je 0x100cbfe7
push eax
call sub.Secur32.dll_FreeContextBuffer
cmp esi, 0x80090318
je 0x100cc131
mov edx, dword [esp + 0x10]
test esi, esi
je 0x100cc044
cmp esi, 0x90312
jne 0x100cc15b
mov eax, dword [esp + 0xc]
cmp edx, 1
mov byte [eax + 0xcb], 0
jbe 0x100cc9e4
cmp dword [ebx + 0x10], 5
mov edi, dword [eax + 0x18]
mov dword [esp + 0x1c], ebx
jne 0x100cc21e
mov ecx, edi
sub ecx, dword [ebx + 0xc]
jb 0x100cc9fc
mov ebx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
jmp 0x100cc228
cmp edx, 1
jbe 0x100cc9f0
mov eax, dword [esp + 0xc]
cmp dword [ebx + 0x10], 5
mov esi, dword [eax + 0x18]
mov ecx, esi
jne 0x100cc061
mov ecx, esi
sub ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x78]
test eax, eax
sete byte [esp + 0x10]
je 0x100cc07d
mov edx, dword [esp + 0x70]
mov dword [esp + 0x64], eax
mov dword [esp + 0xe0], edx
cmp ecx, esi
ja 0x100cc9fc
sub esi, ecx
je 0x100cc0c6
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x28]
mov edi, edx
sub edi, ecx
jb 0x100cca29
mov dword [eax + 0x28], 0
je 0x100cc0c6
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x100cc0c3
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 0x100cc2cd
mov esi, dword [esp + 0xe0]
mov ecx, dword [esp + 0xb4]
mov edx, esi
call fcn.10116c80
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 0x100cc2d1
mov edx, dword [esp + 0x10]
cmp edx, 1
jbe 0x100cca15
cmp dword [ebx + 0x10], 4
mov esi, dword [esp + 0xc]
mov eax, 1
jne 0x100cc150
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xb4], eax
jmp 0x100cc34f
mov dword [esp + 0xb0], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100cc3c6
mov esi, dword [esp + 0x2c]
cmp eax, 9
jae 0x100cc3b2
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100cc3ba
mov eax, dword [esp + 0x70]
mov dword [esp + 0xa8], eax
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100cc3fe
push eax
call sub.CRYPT32.dll_CertDuplicateStore
cmp dword [esi + 0x54], 1
mov ebx, eax
jne 0x100cc40b
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 0x100cc40f
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 0x100cc916
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 0x100cc1d0
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x70]
mov ecx, edi
mov dword [esp + 0x10], eax
sub edi, ecx
je 0x100cc26d
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 0x28]
mov esi, edx
sub esi, ecx
jb 0x100cca29
mov dword [eax + 0x28], 0
je 0x100cc26d
mov eax, dword [esp + 0xc]
test ecx, ecx
je 0x100cc26a
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.10116c80
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 0x100cc357
jmp 0x100cc37c
xor eax, eax
xor edx, edx
or esi, eax
mov esi, dword [esp + 0xc]
lea edi, [esp + 0x70]
je 0x100cc330
mov dword [esp + 0x68], edx
lea ecx, [esp + 0x50]
mov edx, esi
call fcn.100ccdd0
mov edx, dword [esp + 0x68]
cmp byte [esp + 0x50], 1
jne 0x100cc330
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 0x100cc16e
push dword [esp + 0x64]
call sub.Secur32.dll_FreeContextBuffer
jmp 0x100cc16e
cmp byte [esi + 0x9c], 0
jne 0x100cc340
mov byte [esi + 0x9e], 0
or dl, byte [esp + 0x10]
jne 0x100cc34f
push dword [esp + 0x64]
call sub.Secur32.dll_FreeContextBuffer
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100cc37c
mov esi, dword [esp + 0x2c]
cmp eax, 9
jae 0x100cc368
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100cc370
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 0x100cc39f
shl eax, 2
lea eax, [eax + eax*2]
test eax, eax
je 0x100cc39f
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 0x100cbbee
jmp 0x100cc894
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 0x100cc3e9
shl eax, 2
lea eax, [eax + eax*2]
test eax, eax
je 0x100cc3e9
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 0x100cbbee
jmp 0x100cc894
xor ebx, ebx
cmp dword [esi + 0x54], 1
jne 0x100cc41b
mov ebx, dword [esi + 0x58]
jmp 0x100cc41b
push 0
jmp 0x100cc415
push 0
mov ebx, dword [esp + 0x18]
push ebx
call sub.CRYPT32.dll_CertCloseStore
lea eax, [esp + 0x78]
mov dword [esp + 0x24], 0x104dec1c
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 [0x104dec28]
cmp eax, 3
jne 0x100cc7b7
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov dword [esp + 0x24], 0x104dec2c
mov eax, dword [0x104dec38]
cmp eax, 3
jne 0x100cc7e3
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
mov dword [esp + 0x24], 0x104dec3c
mov eax, dword [0x104dec48]
cmp eax, 3
jne 0x100cc80f
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 0x100cc93e
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x40]
mov esi, 0xf00
cmp dword [eax + 0x54], 1
mov dword [esp + 0x1c], edx
jne 0x100cc673
cmp dword [edx + 0xc], 0
je 0x100cc673
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 0x100cc586
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 0x100cc560
jmp 0x100cc58c
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 0x100cc663
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100cc663
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 0x100cc5e6
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 0x100cc634
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 0x100cc5e0
mov ecx, dword [ebx + 4]
mov edx, dword [edx + 4]
cmp ecx, edx
je 0x100cc649
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 0x100cc5e6
jmp 0x100cc64f
push dword [esp + 0x14]
call sub.CRYPT32.dll_CertFreeCertificateContext
mov ecx, dword [esp + 0xdc]
jmp 0x100cc5a5
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 0x100cc6af
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xc9], 0
jne 0x100cc6af
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 0x100cc949
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 0x100cc768
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 0x100cc775
mov cl, dl
mov esi, ebx
mov al, 1
xor edx, edx
xor ebx, ebx
lea ecx, [ecx + ecx*2]
cmp cl, 3
jne 0x100cc956
test bl, bl
jne 0x100cc78b
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 0x100cbc86
mov eax, dword [esp + 0xb8]
mov byte [eax], 1
jmp 0x100cbc86
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], eax
lea ecx, [0x104dec28]
push 0x104214ac
call fcn.100fb490
add esp, 4
jmp 0x100cc491
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], eax
lea ecx, [0x104dec38]
push 0x104214c0
call fcn.100fb490
add esp, 4
jmp 0x100cc4ad
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x30], eax
lea ecx, [0x104dec48]
push 0x104214d4
call fcn.100fb490
add esp, 4
jmp 0x100cc4c9
cmp eax, 1
je 0x100cc849
mov dword [ecx + 4], 0
jmp 0x100cc870
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 0x100cc876
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 0x100cc876
mov ecx, str.unexpected_EOF_during_handshake
mov edx, 0x1f
call fcn.1004c640
mov esi, eax
call sub.KERNEL32.dll_GetProcessHeap
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x100cca38
mov dword [eax], esi
mov dword [eax + 4], 0x1041909c
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 0x100cc876
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 0x100cc96b
mov ebx, eax
xor edi, edi
jmp 0x100cc977
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
xor edi, edi
jmp 0x100cc96b
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
xor edi, edi
mov al, 1
jmp 0x100cc95d
movzx edi, cl
mov ebx, esi
or edi, edx
test al, al
mov eax, dword [esp + 0x1c]
je 0x100cc96b
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 0x100cc876
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 0x100cc876
mov ecx, 0x18
mov edx, 4
call fcn.10006540
ud2
mov ecx, edi
push 0x1044af3c
jmp 0x100cca2e
mov ecx, str.assertion_failed:__self.context.is_null__
mov edx, 0x29
push 0x1041f5b8
jmp 0x100cca0b
mov ecx, 1
push 0x1044af4c
jmp 0x100cca1f
mov ecx, 1
push 0x1044af6c
jmp 0x100cca1f
mov ecx, str.assertion_failed:_size___nread
mov edx, 0x1f
push 0x1044ae94
call fcn.1004d560
add esp, 4
ud2
mov ecx, 1
push 0x1044af5c
call fcn.10008300
add esp, 4
ud2
push 0x1044aea4
call fcn.100088f0
add esp, 4
ud2
mov ecx, 0xc
jmp 0x100cc9be