Function at 0x51ee70
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x88
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.wintrust.dll
mov byte [eax], bl
call edi
mov ebp, eax
cmp ebp, ebx
je 0x51f0ae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinVerifyTrust
push ebp
call esi
push str.WTHelperProvDataFromStateData
push ebp
mov dword [0x6d27f0], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebp
mov dword [0x6d27e0], eax
call esi
push str.WTHelperGetProvCertFromChain
push ebp
mov dword [0x6d27e4], eax
call esi
push str.Crypt32.dll
mov dword [0x6d27e8], eax
call edi
mov edi, eax
mov eax, dword [0x6d27f0]
cmp eax, ebx
mov dword [esp + 0x30], edi
je 0x51f0a7
cmp dword [0x6d27e0], ebx
je 0x51f0a7
cmp dword [0x6d27e4], ebx
je 0x51f0a7
cmp dword [0x6d27e8], ebx
je 0x51f0a7
cmp edi, ebx
je 0x51f0a7
push str.CertGetNameStringW
push edi
call esi
cmp eax, ebx
mov dword [0x6d27ec], eax
jne 0x51ef45
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x88
ret 8
xor ecx, ecx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x20], ecx
xor eax, eax
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x34]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov ecx, 0xd
rep stosd dword es:[edi], eax
mov eax, 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [esp + 0x4c], eax
push ecx
mov esi, 2
mov al, 0xc2
push edx
push ebx
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 0x34
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x68], 0x210
mov dword [esp + 0x1c], 0xaac56b
mov word [esp + 0x20], 0xcd44
mov word [esp + 0x22], 0x11d0
mov byte [esp + 0x24], 0x8c
mov byte [esp + 0x25], al
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], 0xc0
mov byte [esp + 0x28], 0x4f
mov byte [esp + 0x29], al
mov byte [esp + 0x2a], 0x95
mov byte [esp + 0x2b], 0xee
call dword [0x6d27f0]
test eax, eax
jne 0x51f088
mov eax, dword [esp + 0x54]
push eax
call dword [0x6d27e0]
cmp eax, ebx
je 0x51f073
cmp dword [eax + 0x40], ebx
je 0x51f073
push ebx
push ebx
push ebx
push eax
call dword [0x6d27e4]
cmp eax, ebx
je 0x51f073
cmp dword [eax + 0xc], ebx
je 0x51f073
push ebx
push eax
call dword [0x6d27e8]
cmp eax, ebx
je 0x51f073
mov edx, dword [eax + 4]
lea ecx, [esp + 0x68]
push 0x17
push ecx
push ebx
push ebx
push 4
push edx
call dword [0x6d27ec]
test eax, eax
je 0x51f073
lea eax, [esp + 0x68]
push 0x6bc7f0
push eax
call fcn.005e77e4
add esp, 8
test eax, eax
jne 0x51f073
mov ecx, dword [esp + 0xa0]
mov byte [ecx], 1
lea edx, [esp + 0x34]
lea eax, [esp + 0x10]
push edx
push eax
push ebx
mov dword [esp + 0x5c], esi
call dword [0x6d27f0]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
call esi
mov ecx, dword [esp + 0x30]
push ecx
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x88
ret 8
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x88
ret 8