Function at 0x100cd860
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 0x100ce60b
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.100cecf0
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x60], 1
je 0x100ce647
test eax, eax
je 0x100cd91d
mov edx, dword [esp]
cmp byte [edx + 0x150], 0
jne 0x100cd924
mov eax, dword [esp + 0xa0]
mov byte [eax], 1
jmp 0x100cd924
mov edx, dword [esp]
test bh, bh
je 0x100cd96e
mov eax, dword [edx + 0xd8]
test eax, eax
je 0x100ce7ba
push eax
push edx
lea eax, [esp + 0x68]
push eax
call fcn.100cb8a0
add esp, 0xc
cmp byte [esp + 0x60], 4
je 0x100ce677
mov eax, dword [esp + 0x60]
cmp al, 3
jne 0x100ce682
mov edx, dword [esp]
cmp byte [edx + 0x150], 0
jne 0x100cd96e
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 0x100cda48
cmp byte [esp + 4], 0
jne 0x100cda76
cmp byte [esp + 0x10], 0
mov edi, dword [esp + 0x1c]
mov al, 2
jne 0x100cd9f5
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 0x100ce791
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 0x100cd8b1
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 0x100cded2
cmp byte [esp + 4], 0
mov edx, dword [esp]
je 0x100ce739
cmp dword [edx + 0x168], 0
je 0x100cdaa2
lea ecx, [esp + 0x60]
call fcn.100ce850
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x60], 1
je 0x100ce6a9
mov edx, dword [esp]
test eax, eax
je 0x100ce6bb
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 0x100ce7cb
mov edx, dword [edi + 0x108]
cmp edx, esi
jb 0x100ce7dc
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 0x100cdb82
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push dword [eax + 8]
call fcn.100f1660
add esp, 4
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x60]
test eax, eax
je 0x100cdba3
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.100cccf0
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb8]
jmp 0x100cdbb0
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 0x100cdbb3
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 0x100cdc83
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 0x100cdce0
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 0x100cdcf0
push eax
call sub.Secur32.dll_FreeContextBuffer
mov eax, dword [esp + 0x80]
test eax, eax
je 0x100cdd01
push eax
call sub.Secur32.dll_FreeContextBuffer
cmp esi, 0x80090318
je 0x100cde85
mov edx, dword [esp]
test esi, esi
je 0x100cdd70
mov eax, dword [esp + 0x10]
cmp esi, 0x90312
jne 0x100cdeb2
mov eax, dword [esp + 4]
mov byte [edx + 0x17f], 0
cmp eax, 1
jbe 0x100ce7e5
cmp dword [ebx + 0x10], 5
mov esi, dword [edx + 0xf8]
jne 0x100cdf65
mov ecx, esi
sub ecx, dword [ebx + 0xc]
jb 0x100ce801
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
sub esi, ecx
jne 0x100cdf7b
jmp 0x100cdfbc
mov eax, dword [esp + 4]
cmp eax, 1
jbe 0x100ce7f3
mov esi, dword [edx + 0xf8]
cmp dword [ebx + 0x10], 5
mov ecx, esi
jne 0x100cdd90
mov ecx, esi
sub ecx, dword [ebx + 0xc]
mov eax, dword [esp + 0x68]
test eax, eax
sete byte [esp + 4]
je 0x100cddaf
mov edi, dword [esp + 0x60]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xd0], edi
cmp ecx, esi
ja 0x100ce801
sub esi, ecx
je 0x100cddfc
mov eax, edx
mov edx, dword [edx + 0x108]
mov edi, edx
sub edi, ecx
jb 0x100ce830
mov edx, eax
mov dword [eax + 0x108], 0
je 0x100cddfc
test ecx, ecx
je 0x100cddf6
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 0x100ce02b
mov esi, dword [esp + 0xd0]
mov ecx, dword [esp + 0xa8]
mov edx, esi
call fcn.10116c80
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 0x100ce02f
mov eax, dword [esp + 4]
mov edx, dword [esp]
cmp eax, 1
jbe 0x100ce81a
cmp dword [ebx + 0x10], 4
mov esi, dword [esp + 0xc]
mov eax, 1
jne 0x100cdea7
mov eax, dword [ebx + 0xc]
mov dword [edx + 0x168], eax
jmp 0x100ce0d9
mov dword [esp + 0xa4], esi
mov esi, dword [esp + 0xc]
mov dword [esp + 8], 0
test eax, eax
jne 0x100ce097
jmp 0x100ce14a
mov eax, dword [esp + 0x60]
mov dword [esp + 0x98], eax
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100ce185
push eax
call sub.CRYPT32.dll_CertDuplicateStore
mov ecx, dword [esp]
cmp dword [ecx + 0x134], 1
jne 0x100ce19b
mov dword [esp + 8], eax
push 0
push dword [ecx + 0x138]
nop word [eax + eax]
call sub.CRYPT32.dll_CertEnumCertificatesInStore
test eax, eax
je 0x100ce1a9
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 0x100ce715
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 0x100cdf10
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 0x100cdfbc
mov eax, edx
mov edx, dword [edx + 0x108]
mov edi, edx
sub edi, ecx
jb 0x100ce830
mov edx, eax
mov dword [eax + 0x108], 0
je 0x100cdfbc
test ecx, ecx
je 0x100cdfb6
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.10116c80
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 0x100ce0d9
xor eax, eax
xor ecx, ecx
mov edi, dword [esp + 0x1c]
or esi, eax
je 0x100ce0af
mov edx, dword [esp]
mov esi, ecx
lea ecx, [esp + 0x50]
call fcn.100cea20
mov edx, dword [esp]
cmp byte [esp + 0x50], 1
mov ecx, esi
jne 0x100ce0af
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 0x100ce08b
push dword [esp + 0x9c]
call sub.Secur32.dll_FreeContextBuffer
mov edx, dword [esp]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100ce14a
mov esi, dword [esp + 0x2c]
cmp eax, 9
jae 0x100ce133
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100ce13b
cmp byte [edx + 0x150], 0
mov esi, dword [esp + 0xc]
jne 0x100ce0c3
mov byte [edx + 0x152], 0
or cl, byte [esp + 4]
mov eax, dword [esp + 0x9c]
jne 0x100ce0d9
push eax
call sub.Secur32.dll_FreeContextBuffer
mov edx, dword [esp]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100ce109
mov esi, dword [esp + 0x2c]
cmp eax, 9
jae 0x100ce0f2
call sub.KERNEL32.dll_GetProcessHeap
push esi
jmp 0x100ce0fa
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 0x100ce12f
shl eax, 2
lea eax, [eax + eax*2]
test eax, eax
je 0x100ce12f
call sub.KERNEL32.dll_GetProcessHeap
push ebx
push 0
push eax
call sub.KERNEL32.dll_HeapFree
mov edx, dword [esp]
mov al, 3
jmp 0x100ce174
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 0x100ce170
shl eax, 2
lea eax, [eax + eax*2]
test eax, eax
je 0x100ce170
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 0x100cd8b1
jmp 0x100ce653
mov eax, dword [esp]
xor ecx, ecx
cmp dword [eax + 0x134], 1
jne 0x100ce1b7
mov ecx, dword [eax + 0x138]
jmp 0x100ce1b7
push 0
push eax
mov edi, eax
call sub.CRYPT32.dll_CertCloseStore
mov ecx, edi
jmp 0x100ce1b7
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], 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 + 0x60], 0x34
mov dword [esp + 0x64], 1
mov eax, dword [0x104dec28]
cmp eax, 3
jne 0x100ce57b
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov dword [esp + 0x24], 0x104dec2c
mov eax, dword [0x104dec38]
cmp eax, 3
jne 0x100ce5ab
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
mov dword [esp + 0x24], 0x104dec3c
mov eax, dword [0x104dec48]
cmp eax, 3
jne 0x100ce5db
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 0x100ce73d
mov ecx, dword [esp]
mov edx, dword [esp + 0x40]
mov esi, 0xf00
cmp dword [ecx + 0x134], 1
mov dword [esp + 0x20], edx
jne 0x100ce326
cmp dword [edx + 0xc], 0
mov edi, dword [esp + 0x18]
je 0x100ce42f
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 0x100ce32f
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 0x100ce300
jmp 0x100ce335
mov edi, dword [esp + 0x18]
jmp 0x100ce42f
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 0x100ce41c
mov eax, dword [eax + 0x10]
test eax, eax
je 0x100ce41c
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 0x100ce396
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 0x100ce3eb
mov ebx, eax
push eax
call sub.CRYPT32.dll_CertDuplicateCertificateContext
mov edi, eax
mov eax, dword [esi + 8]
cmp dword [ebx + 8], eax
jne 0x100ce390
mov ecx, dword [ebx + 4]
mov edx, dword [esi + 4]
cmp ecx, edx
je 0x100ce401
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 0x100ce396
jmp 0x100ce407
push esi
call sub.CRYPT32.dll_CertFreeCertificateContext
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0xcc]
jmp 0x100ce34e
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 0x100ce466
cmp byte [ecx + 0x17d], 0
jne 0x100ce466
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 0x100ce74a
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 0x100ce52c
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 0x100ce53b
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 0x100ce759
test bl, bl
jne 0x100ce555
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 0x100cd988
mov byte [esi], 1
jmp 0x100cd988
lea eax, [esp + 0x24]
lea edx, [esp + 0x30]
mov esi, ecx
lea ecx, [0x104dec28]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x40]
push 0x104214ac
call fcn.100fb490
mov ecx, esi
add esp, 4
jmp 0x100ce22d
lea eax, [esp + 0x24]
lea edx, [esp + 0x30]
mov edi, ecx
lea ecx, [0x104dec38]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x40]
push 0x104214c0
call fcn.100fb490
mov ecx, edi
add esp, 4
jmp 0x100ce249
lea eax, [esp + 0x24]
lea edx, [esp + 0x30]
mov ebx, ecx
lea ecx, [0x104dec48]
mov dword [esp + 0x40], edx
mov dword [esp + 0x30], eax
lea edx, [esp + 0x40]
push 0x104214d4
call fcn.100fb490
mov ecx, ebx
add esp, 4
jmp 0x100ce265
cmp eax, 1
je 0x100ce619
mov dword [ebx + 4], 0
jmp 0x100ce639
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 0x100ce6a1
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 0x100ce63f
xor ecx, ecx
mov edx, 0xa
mov al, 1
jmp 0x100ce68f
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 0x100ce63f
mov ecx, dword [esp + 0x68]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx], 1
jmp 0x100ce63f
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 0x100ce83f
mov dword [eax], esi
mov dword [eax + 4], 0x1041909c
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 0x100ce63f
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 0x100ce76c
xor edi, edi
jmp 0x100ce77c
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x14], eax
xor edi, edi
jmp 0x100ce76c
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x14], eax
xor edi, edi
mov al, 1
jmp 0x100ce75e
movzx edi, cl
or edi, edx
test al, al
mov eax, dword [esp + 0x20]
je 0x100ce76c
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 0x100ce63f
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 0x100ce63f
mov ecx, str.assertion_failed:__self.context.is_null__
mov edx, 0x29
push 0x1041f5b8
jmp 0x100ce810
mov ecx, 0x18
mov edx, 4
call fcn.10006540
ud2
mov ecx, esi
push 0x1044af3c
jmp 0x100ce835
mov ecx, 1
mov edx, eax
push 0x1044af4c
jmp 0x100ce826
mov ecx, 1
mov edx, eax
push 0x1044af6c
jmp 0x100ce826
mov ecx, str.assertion_failed:_size___nread
mov edx, 0x1f
push 0x1044ae94
call fcn.1004d560
add esp, 4
ud2
mov ecx, 1
mov edx, eax
push 0x1044af5c
call fcn.10008300
add esp, 4
ud2
push 0x1044aea4
call fcn.100088f0
add esp, 4
ud2
mov ecx, 0xc
jmp 0x100ce7d0