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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14c
push ebx
mov ebx, dword [eax]
cmp dword [ebx + 0x474], 0
push ebp
mov ebp, dword [esp + 0x15c]
jne 0x4a99ad
test ebp, ebp
je 0x4a99ad
pop ebp
xor eax, eax
pop ebx
add esp, 0x14c
ret
mov ecx, dword [esp + 0x164]
mov edx, dword [esp + 0x160]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call fcn.004a93a0
add esp, 0xc
test eax, eax
je 0x4a99dc
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14c
ret
lea ecx, [esp + 0xc8]
push esi
push ecx
call fcn.004a9350
mov esi, eax
add esp, 4
test esi, esi
je 0x4a9a3d
cmp dword [ebx + 0x474], 0
je 0x4a9a0c
push esi
push str.Subject
push ebp
push ebx
call fcn.00497fd0
add esp, 0x10
test ebp, ebp
jne 0x4a9a20
push esi
push ebp
push str._2d_Subject:__s_n
push ebx
call fcn.00498f80
add esp, 0x10
push esi
call dword [0x4f5154]
lea edx, [esp + 0x94]
push edx
call fcn.004a9350
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a9a4c
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14c
ret
cmp dword [ebx + 0x474], 0
je 0x4a9a65
push esi
push str.Issuer
push ebp
push ebx
call fcn.00497fd0
add esp, 0x10
test ebp, ebp
jne 0x4a9a78
push esi
push str.___Issuer:__s_n
push ebx
call fcn.00498f80
add esp, 0xc
push esi
call dword [0x4f5154]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add esp, 4
xor esi, esi
cmp eax, ecx
jae 0x4a9a9d
movzx edx, byte [eax]
shl esi, 8
inc eax
or esi, edx
cmp eax, ecx
jb 0x4a9a90
cmp dword [ebx + 0x474], 0
push edi
je 0x4a9ad6
push esi
push 0x4d17f0
call fcn.0049d490
mov edi, eax
add esp, 8
test edi, edi
je 0x4a9d2d
push edi
push 0x4d17e8
push ebp
push ebx
call fcn.00497fd0
push edi
call dword [0x4f5154]
add esp, 0x14
test ebp, ebp
jne 0x4a9aeb
push esi
inc esi
push esi
push str.___Version:__lu__0x_lx__n
push ebx
call fcn.00498f80
add esp, 0x10
xor eax, eax
lea edx, [esp + 0x58]
call fcn.004a90c0
mov esi, eax
test esi, esi
je 0x4a9d2d
cmp dword [ebx + 0x474], 0
je 0x4a9b19
push esi
push str.Serial_Number
push ebp
push ebx
call fcn.00497fd0
add esp, 0x10
test ebp, ebp
jne 0x4a9b2c
push esi
push str.___Serial_Number:__s_n
push ebx
call fcn.00498f80
add esp, 0xc
push esi
call dword [0x4f5154]
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
add esp, 4
lea edi, [esp + 0x1c]
call fcn.004a96c0
mov esi, eax
test esi, esi
je 0x4a9d2d
cmp dword [ebx + 0x474], 0
je 0x4a9b6a
push esi
push str.Signature_Algorithm
push ebp
push ebx
call fcn.00497fd0
add esp, 0x10
test ebp, ebp
jne 0x4a9b7d
push esi
push str.___Signature_Algorithm:__s_n
push ebx
call fcn.00498f80
add esp, 0xc
push esi
call dword [0x4f5154]
add esp, 4
xor eax, eax
lea edx, [esp + 0xa8]
call fcn.004a90c0
mov esi, eax
test esi, esi
je 0x4a9d2d
cmp dword [ebx + 0x474], 0
je 0x4a9bb8
push esi
push str.Start_Date
push ebp
push ebx
call fcn.00497fd0
add esp, 0x10
test ebp, ebp
jne 0x4a9bcb
push esi
push str.___Start_Date:__s_n
push ebx
call fcn.00498f80
add esp, 0xc
push esi
call dword [0x4f5154]
add esp, 4
xor eax, eax
lea edx, [esp + 0xbc]
call fcn.004a90c0
mov esi, eax
test esi, esi
je 0x4a9d2d
cmp dword [ebx + 0x474], 0
je 0x4a9c06
push esi
push str.Expire_Date
push ebp
push ebx
call fcn.00497fd0
add esp, 0x10
test ebp, ebp
jne 0x4a9c19
push esi
push str.___Expire_Date:__s_n
push ebx
call fcn.00498f80
add esp, 0xc
push esi
call dword [0x4f5154]
mov esi, dword [esp + 0x104]
mov eax, dword [esp + 0x100]
add esp, 4
lea edi, [esp + 0x1c]
call fcn.004a96c0
mov esi, eax
test esi, esi
je 0x4a9d2d
cmp dword [ebx + 0x474], 0
je 0x4a9c5d
push esi
push str.Public_Key_Algorithm
push ebp
push ebx
call fcn.00497fd0
add esp, 0x10
test ebp, ebp
jne 0x4a9c70
push esi
push str.___Public_Key_Algorithm:__s_n
push ebx
call fcn.00498f80
add esp, 0xc
push ebp
push ebx
lea eax, [esp + 0x114]
lea ecx, [esp + 0x24]
mov edx, esi
call fcn.004a9760
push esi
call dword [0x4f5154]
add esp, 0xc
xor eax, eax
lea edx, [esp + 0x80]
call fcn.004a90c0
mov esi, eax
test esi, esi
je 0x4a9d2d
cmp dword [ebx + 0x474], 0
je 0x4a9cbf
push esi
push str.Signature
push ebp
push ebx
call fcn.00497fd0
add esp, 0x10
test ebp, ebp
jne 0x4a9cd2
push esi
push str.___Signature:__s_n
push ebx
call fcn.00498f80
add esp, 0xc
push esi
call dword [0x4f5154]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
push ecx
sub edx, eax
push edx
push eax
push ebx
call fcn.004a1a40
add esp, 0x18
test eax, eax
jne 0x4a9de2
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x3f]
shr ecx, 6
lea eax, [ecx + eax + 0x36]
inc eax
push eax
call dword [0x4f5150]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a9d3d
mov edx, dword [esp + 0x14]
push edx
call dword [0x4f5154]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x14c
ret
mov eax, str._____BEGIN_CERTIFICATE_____
mov esi, edi
call fcn.004a9650
xor ebp, ebp
mov dword [esp + 0x10], eax
cmp dword [esp + 0x18], ebp
jbe 0x4a9d74
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, ebp
lea esi, [edi + ecx]
call fcn.004a9650
add dword [esp + 0x10], eax
add ebp, 0x40
cmp ebp, dword [esp + 0x18]
jb 0x4a9d55
mov edx, dword [esp + 0x10]
lea esi, [edi + edx]
mov eax, str._____END_CERTIFICATE_____
call fcn.004a9650
mov ecx, dword [esp + 0x10]
add eax, edi
mov byte [eax + ecx], 0
mov edx, dword [esp + 0x14]
push edx
call dword [0x4f5154]
add esp, 4
cmp dword [ebx + 0x474], 0
je 0x4a9dbd
mov eax, dword [esp + 0x164]
push edi
push str.Cert
push eax
push ebx
call fcn.00497fd0
add esp, 0x10
cmp dword [esp + 0x164], 0
jne 0x4a9dd6
push edi
push 0x4cc710
push ebx
call fcn.00498f80
add esp, 0xc
push edi
call dword [0x4f5154]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret