Function at 0x47164e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x471666
mov dword [ebp - 0x10], ebx
jmp 0x47168e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.004c5de0
mov eax, esp
push esi
push dword [ebp + 8]
push eax
call fcn.00404eef
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
je 0x4719d2
mov byte [eax], bl
cmp dword [0x4d5460], 0xffffffff
jne 0x471732
push str.crypt32.dll
mov dword [0x4d5460], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x471732
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CertGetNameStringA
push esi
call edi
push str.CryptQueryObject
push esi
mov dword [0x4d5460], eax
call edi
push str.CryptMsgGetParam
push esi
mov dword [0x4d8818], eax
call edi
push str.CertFindCertificateInStore
push esi
mov dword [0x4d8814], eax
call edi
push str.CertCloseStore
push esi
mov dword [0x4d8810], eax
call edi
push str.CryptMsgClose
push esi
mov dword [0x4d880c], eax
call edi
push str.CertFreeCertificateContext
push esi
mov dword [0x4d8808], eax
call edi
push str.CryptDecodeObject
push esi
mov dword [0x4d8804], eax
call edi
mov dword [0x4d8800], eax
jmp 0x471738
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4d5460], ebx
je 0x471aa7
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 2
push 0x400
push dword [ebp - 0x10]
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
push 1
call dword [0x4d8818]
test eax, eax
je 0x4719c6
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 6
push dword [ebp - 4]
call dword [0x4d8814]
test eax, eax
je 0x4719a9
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4719a9
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push 6
push dword [ebp - 4]
call dword [0x4d8814]
push 0x1c
xor eax, eax
pop ecx
lea edi, [ebp - 0xe4]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
push ebx
mov dword [ebp - 0xcc], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xc8], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0xe0], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xe4]
push eax
push 0xb0000
push ebx
push 0x10001
push dword [ebp + 8]
call dword [0x4d8810]
mov edi, eax
cmp edi, ebx
je 0x471825
push 0x104
push dword [ebp + 0xc]
push ebx
push ebx
push 4
push edi
call dword [0x4d5460]
push edi
call dword [0x4d8804]
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x47182e
mov byte [eax], bl
mov ecx, dword [ebp + 0xc]
cmp byte [ecx], bl
je 0x47199b
cmp eax, ebx
je 0x47199b
xor edi, edi
cmp dword [esi + 0x3c], ebx
mov dword [ebp - 8], ebx
jbe 0x47199b
mov dword [ebp - 0xc], ebx
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
push str.1.2.840.113549.1.9.6
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x471896
inc edi
cmp edi, dword [esi + 0x3c]
jne 0x471888
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
push str.1.3.6.1.4.1.311.3.3.1
push dword [eax + ecx]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x471901
add dword [ebp - 0xc], 0xc
cmp edi, dword [esi + 0x3c]
jb 0x471852
jmp 0x47199b
mov eax, dword [esi + 0x40]
lea edi, [edi + edi*2]
shl edi, 2
lea ecx, [ebp - 0x28]
mov eax, dword [eax + edi + 8]
push ecx
push ebx
push ebx
push dword [eax]
push dword [eax + 4]
push 0x1f4
push 0x10001
call dword [0x4d8800]
cmp eax, ebx
je 0x47199b
push dword [ebp - 0x28]
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x47199b
mov ecx, dword [esi + 0x40]
mov edi, dword [ecx + edi + 8]
lea ecx, [ebp - 0x28]
push ecx
push eax
push ebx
push dword [edi]
push dword [edi + 4]
push 0x1f4
push 0x10001
call dword [0x4d8800]
mov edi, eax
jmp 0x471918
push str.__RFC3161
xor edi, edi
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x14], 1
cmp dword [ebp - 8], ebx
je 0x47199b
cmp edi, ebx
je 0x471991
push 0x1c
xor eax, eax
pop ecx
lea edi, [ebp - 0xe4]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
push ebx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xcc], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc8], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xe0], ecx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xdc], eax
lea eax, [ebp - 0xe4]
push eax
push 0xb0000
push ebx
push 0x10001
push dword [ebp + 8]
call dword [0x4d8810]
mov edi, eax
cmp edi, ebx
je 0x471991
push 0x104
push dword [ebp + 0x14]
push ebx
push ebx
push 4
push edi
call dword [0x4d5460]
push edi
call dword [0x4d8804]
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop ecx
cmp dword [ebp + 8], ebx
je 0x4719b8
push ebx
push dword [ebp + 8]
call dword [0x4d880c]
cmp dword [ebp - 4], ebx
je 0x4719c6
push dword [ebp - 4]
call dword [0x4d8808]
mov eax, dword [ebp + 0xc]
cmp byte [eax], bl
jne 0x4719d8
jmp 0x471aa7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp + 0x10], ebx
je 0x471b02
cmp dword [0x4d5464], 0xffffffff
jne 0x471a0c
push str.wintrust.dll
mov dword [0x4d5464], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
je 0x471a0c
push str.WinVerifyTrust
push eax
call edi
mov dword [0x4d5464], eax
cmp dword [0x4d5464], ebx
je 0x471aa7
xor eax, eax
lea edi, [ebp - 0x6c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xb
mov dword [ebp - 0x24], 0xaac56b
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10]
pop ecx
push 2
mov dword [ebp - 0x68], eax
xor eax, eax
cmp dword [ebp - 0x14], ebx
lea edi, [ebp - 0x58]
pop esi
rep stosd dword es:[edi], eax
push 1
lea ecx, [ebp - 0x6c]
pop eax
mov dword [ebp - 0x6c], 0x10
mov word [ebp - 0x20], 0xcd44
mov word [ebp - 0x1e], 0x11d0
mov byte [ebp - 0x1c], 0x8c
mov byte [ebp - 0x1b], 0xc2
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], 0xc0
mov byte [ebp - 0x18], 0x4f
mov byte [ebp - 0x17], 0xc2
mov byte [ebp - 0x16], 0x95
mov byte [ebp - 0x15], 0xee
mov dword [ebp - 0x58], 0x2c
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], 0x110
mov dword [ebp - 0x40], ecx
je 0x471a95
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call sub.WINTRUST.dll_WinVerifyTrust
test eax, eax
je 0x471aab
xor eax, eax
jmp 0x471b05
cmp dword [ebp - 0x14], ebx
je 0x471b02
push dword [ebp - 0x38]
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
cmp eax, ebx
je 0x471af0
push ebx
push ebx
push ebx
push eax
call sub.WINTRUST.dll_WTHelperGetProvSignerFromChain
cmp eax, ebx
je 0x471af0
cmp dword [eax + 0x20], ebx
je 0x471af0
push ebx
push dword [eax + 0x24]
call sub.WINTRUST.dll_WTHelperGetProvCertFromChain
cmp eax, ebx
je 0x471af0
push 0x104
push dword [ebp + 0x14]
push ebx
push ebx
push 4
push dword [eax + 4]
call dword [0x4d5460]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x3c], esi
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [0x4d5464]
push 1
pop eax
lea esp, [ebp - 0xf0]
pop edi
pop esi
pop ebx
leave
ret