Function at 0x1002a8d1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], esi
cmp ebx, esi
jne 0x1002a90d
push 0x57
pop eax
jmp 0x1002ab11
push edi
mov edi, str.crypt32.dll
call fcn.1002a72e
mov edi, eax
cmp edi, esi
jne 0x1002a934
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x1002ab10
push 0x7e
pop eax
jmp 0x1002ab10
call fcn.1002a600
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CertGetNameStringA
push edi
mov dword [ebp - 0x40], eax
call esi
push str.CertOpenStore
push edi
mov dword [ebp - 0x30], eax
call esi
push str.CertCloseStore
push edi
mov dword [ebp - 0x34], eax
call esi
push str.CertFreeCertificateContext
push edi
mov dword [ebp - 0x38], eax
call esi
mov dword [ebp - 0x3c], eax
xor eax, eax
cmp dword [ebp - 0x30], eax
je 0x1002aa77
cmp dword [ebp - 0x34], eax
je 0x1002aa77
cmp dword [ebp - 0x38], eax
je 0x1002aa77
cmp dword [ebp - 0x3c], eax
je 0x1002aa77
cmp dword [ebp - 0x40], eax
jne 0x1002aa35
push str.CertVerifySubjectCertificateContext
push edi
call esi
push str.CertFindCertificateInStore
push edi
mov dword [ebp - 4], eax
call esi
push str.CryptMsgGetParam
push edi
mov dword [ebp - 8], eax
call esi
push str.CryptMsgControl
push edi
mov dword [ebp - 0xc], eax
call esi
push str.CertGetSubjectCertificateFromStore
push edi
mov dword [ebp - 0x10], eax
call esi
push str.CertFreeCertificateChain
push edi
mov dword [ebp - 0x14], eax
call esi
push str.CryptMsgClose
push edi
mov dword [ebp - 0x18], eax
call esi
push str.CryptQueryObject
push edi
mov dword [ebp - 0x1c], eax
call esi
push str.CryptDecodeObject
push edi
mov dword [ebp - 0x20], eax
call esi
cmp dword [ebp - 4], 0
mov esi, eax
je 0x1002aa77
cmp dword [ebp - 8], 0
je 0x1002aa77
cmp dword [ebp - 0xc], 0
je 0x1002aa77
cmp dword [ebp - 0x10], 0
je 0x1002aa77
cmp dword [ebp - 0x14], 0
je 0x1002aa77
cmp dword [ebp - 0x18], 0
je 0x1002aa77
cmp dword [ebp - 0x1c], 0
je 0x1002aa77
cmp dword [ebp - 0x20], 0
je 0x1002aa77
test esi, esi
jne 0x1002aa94
jmp 0x1002aa77
push str.CertGetIntendedKeyUsage
push edi
call esi
push str.CertGetEnhancedKeyUsage
push edi
mov dword [ebp - 0x24], eax
call esi
push str.CertEnumCertificatesInStore
push edi
mov dword [ebp - 0x28], eax
call esi
push str.CertVerifyTimeValidity
push edi
mov dword [ebp - 0x2c], eax
call esi
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x44], eax
je 0x1002aa77
cmp dword [ebp - 0x28], 0
je 0x1002aa77
cmp dword [ebp - 0x2c], 0
je 0x1002aa77
test eax, eax
jne 0x1002aa91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1002aa86
push 0x7f
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x1002ab10
mov esi, dword [ebp - 0x48]
push 0x48
push 0
push ebx
call fcn.10108c60
mov eax, dword [ebp - 0x30]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x3c]
add esp, 0xc
cmp dword [ebp - 0x40], 0
mov dword [ebx], edi
mov dword [ebx + 0xc], eax
jne 0x1002aaf6
mov eax, dword [ebp - 4]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], esi
jmp 0x1002ab0e
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x44], eax
xor eax, eax
pop edi
pop esi
leave
ret