Function at 0x10001497
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x10034560
sub esp, 0xac
mov eax, dword [0x100a0000]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x10088aec]
push ebp
mov ebp, dword [esp + 0xbc]
mov dword [esp + 0xa4], eax
mov ax, word [0x10088af0]
push edi
mov edi, dword [esp + 0xb8]
mov word [esp + 0xac], ax
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x54], str.1.3.6.1.5.5.7.3.1
mov dword [esp + 0x58], str.1.3.6.1.4.1.311.10.3.3
mov dword [esp + 0x5c], str.2.16.840.1.113730.4.1
cmp eax, 1
jae 0x100345ee
mov eax, 0x80090327
jmp 0x10034906
push ebx
push esi
lea eax, [esp + 0xb0]
push eax
push 0x10000
push 0
push 0x10001
push 2
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov ebx, eax
test ebx, ebx
jne 0x1003461c
mov esi, 0x80090304
jmp 0x100348d7
mov eax, dword [edi]
lea edx, [esp + 0x10]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
push edx
push 3
push ecx
push dword [eax]
push 1
push ebx
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
jne 0x10034644
mov esi, 0x80090304
jmp 0x100348d7
mov esi, dword [edi]
mov ecx, dword [edi + 4]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], 1
cmp eax, 1
jle 0x100346c6
mov ebp, 0xc
lea ecx, [ecx]
mov eax, dword [esi + ebp + 4]
sub eax, dword [esi + ebp]
lea ecx, [esp + 0x48]
push ecx
push 3
push eax
push dword [esi + ebp]
push 1
push ebx
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
je 0x1003463a
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1003469e
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov esi, dword [edi]
mov ecx, dword [edi + 4]
inc dword [esp + 0x18]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add ebp, 0xc
cmp dword [esp + 0x18], eax
jl 0x10034670
mov ebp, dword [esp + 0x1c]
cmp dword [esp + 0x10], 0
jne 0x100346d7
mov esi, 0x80090322
jmp 0x100348d7
push 0x34
lea eax, [esp + 0x80]
push 0
push eax
call fcn.100535f0
lea eax, [esp + 0x68]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x30]
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
mov dword [esp + 0x50], eax
movq qword [esp + 0x30], xmm0
movq qword [esp + 0x48], xmm0
lea eax, [esp + 0x48]
mov dword [esp + 0x38], 0
add esp, 0xc
mov ecx, ebp
mov dword [esp + 0x7c], 0x34
mov dword [esp + 0x80], 1
mov dword [esp + 0x84], 3
mov dword [esp + 0x98], 0x1388
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], str.RSA_SHA256_RSA_SHA384_RSA_SHA512_ECDSA_SHA256_ECDSA_SHA384_ECDSA_SHA512
mov dword [esp + 0x2c], str.RSA_1024_ECDSA_256
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], 1
mov dword [esp + 0xac], 0
mov dword [esp + 0xa8], eax
call fcn.1000277f
test eax, eax
je 0x100347bb
mov ecx, ebp
call fcn.1000277f
mov ecx, ebp
mov dword [esp + 0x1c], eax
call fcn.10003670
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 0x80000000
push 0x46
push dword [esp + 0x1c]
call dword [sym.imp.CRYPT32.dll_CertSetCertificateContextProperty]
mov esi, dword [sym.imp.CRYPT32.dll_CertGetCertificateChain]
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0xcc]
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x10]
push 0
push eax
push 0
call esi
test eax, eax
jne 0x100347f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100348d7
mov eax, dword [esp + 0x14]
test dword [eax + 4], 0x1000040
je 0x1003483d
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
lea eax, [esp + 0x14]
push eax
push 0
push 0x80000001
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x10]
push 0
push eax
push 0
call esi
test eax, eax
jne 0x1003483d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100348d7
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 4]
test esi, esi
jne 0x100348d7
lea eax, [esp + 0x4c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x34]
xorps xmm0, xmm0
push eax
push dword [esp + 0x1c]
movq qword [esp + 0x58], xmm0
movq qword [esp + 0x3c], xmm0
movq qword [esp + 0x60], xmm0
movq qword [esp + 0x74], xmm0
push 4
mov dword [esp + 0x5c], 0x10
mov dword [esp + 0x60], 2
mov dword [esp + 0x64], esi
mov dword [esp + 0x40], 0xc
mov dword [esp + 0x44], 0x1000
movq qword [esp + 0x80], xmm0
mov dword [esp + 0x88], esi
mov dword [esp + 0x78], 0x14
call dword [sym.imp.CRYPT32.dll_CertVerifyCertificateChainPolicy]
test eax, eax
jne 0x100348d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100348d7
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100348e6
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateChain]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100348f5
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
test ebx, ebx
je 0x10034902
push 0
push ebx
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
pop edi
pop ebp
xor ecx, esp
call fcn.10052ab4
add esp, 0xac
ret 0xc