Function at 0x6e8d0050
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [edx]
mov dword [esp], ecx
mov dword [esp + 4], eax
call sym.crypt32.dll_CertFindCertificateInStore
sub esp, 0x18
test eax, eax
mov edx, eax
je 0x6e8d00a8
test byte [0x6e9267bc], 8
jne 0x6e8d0108
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
test edi, edi
jne 0x6e8d0098
mov eax, dword [esi]
test eax, eax
je 0x6e8d0148
mov esi, dword [ebp + 0xc]
xor edx, edx
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 8], edx
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], esi
mov edx, dword [ebx]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.crypt32.dll_CertFindCertificateInStore
sub esp, 0x18
test eax, eax
mov edx, eax
je 0x6e8d0148
test byte [0x6e9267bc], 8
je 0x6e8d0098
mov dword [esp + 0x10], eax
mov esi, str.Found_in_world__p_n
mov dword [ebp - 0x2c], eax
mov dword [esp + 0xc], esi
jmp 0x6e8d0118
mov dword [esp + 0x10], eax
mov ecx, str.Found_in_store__p_n
mov dword [ebp - 0x2c], eax
mov dword [esp + 0xc], ecx
mov dword [esp], 3
mov ecx, str.CRYPT_FindIssuer
mov ebx, 0x6e9267bc
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.6e8cf1d0
mov edx, dword [ebp - 0x2c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea edi, [ebp - 0x20]
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], 1
call fcn.6e924fc0
sub esp, 0x20
test eax, eax
je 0x6e8d0430
mov eax, dword [ebp - 0x20]
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x2c], ecx
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x6e8d0430
xor edx, edx
xor eax, eax
mov dword [esp + 0x10], edi
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], 1
call fcn.6e924fc0
xor edx, edx
sub esp, 0x20
test eax, eax
je 0x6e8d037e
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
test eax, eax
je 0x6e8d0440
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], ebx
and eax, 4
cmp eax, 1
sbb eax, eax
xor edi, edi
and eax, 0x7fffe
add eax, 2
mov dword [ebp - 0x2c], eax
jmp 0x6e8d023e
test byte [0x6e9267bc], 8
jne 0x6e8d03f0
inc edi
cmp edi, dword [esi]
jae 0x6e8d0440
mov eax, dword [esi + 4]
lea ebx, [edi*4]
test byte [0x6e9267bc], 8
mov eax, dword [eax + ebx]
jne 0x6e8d03b0
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x1c], ecx
lea ecx, [ebp - 0x1c]
xor ebx, ebx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x20], edx
xor edx, edx
mov dword [esp + 0x18], ebx
mov ebx, 1
mov dword [esp + 0x14], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.6e924fb0
sub esp, 0x24
test eax, eax
je 0x6e8d0228
mov dword [esp], 2
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x2000
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sym.crypt32.dll_CertOpenStore
mov edx, 1
sub esp, 0x14
mov ebx, eax
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.crypt32.dll_CertAddCertificateContextToStore
mov eax, dword [ebp + 0xc]
xor ecx, ecx
sub esp, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.crypt32.dll_CertFindCertificateInStore
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
mov dword [esp], eax
call sym.crypt32.dll_CertFreeCertificateContext
xor eax, eax
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.crypt32.dll_CertCloseStore
mov edx, dword [ebp - 0x30]
sub esp, 8
test edx, edx
je 0x6e8d0235
test byte [0x6e9267bc], 8
je 0x6e8d037e
mov ecx, str.Found_downloaded_issuer__p_n
mov ebx, str.CRYPT_FindIssuer
mov dword [esp + 0x10], edx
mov edi, 0x6e9267bc
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], 3
mov dword [ebp - 0x2c], edx
call fcn.6e8cf1d0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
xor edx, edx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [ebp - 0x2c]
mov eax, edx
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0xffffffff
call fcn.6e8cfde0
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.Trying_URL__s_n
mov dword [esp + 0xc], eax
mov eax, str.CRYPT_FindIssuer
mov dword [esp + 8], eax
mov eax, 0x6e9267bc
mov dword [esp + 4], eax
call fcn.6e8cf1d0
mov eax, dword [esi + 4]
mov eax, dword [eax + ebx]
jmp 0x6e8d0258
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + 0x34]
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.CryptRetrieveObjectByUrlW_failed:__u_n
mov dword [esp + 0xc], eax
mov eax, str.CRYPT_FindIssuer
mov dword [esp + 8], eax
mov eax, 0x6e9267bc
mov dword [esp + 4], eax
call fcn.6e8cf1d0
jmp 0x6e8d0235
xor edx, edx
jmp 0x6e8d0098
xor edx, edx
jmp 0x6e8d037e