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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x978
mov eax, dword [0x471080]
xor eax, esp
mov dword [esp + 0x974], eax
push esi
push edi
push 0x30
lea eax, [esp + 0x24]
mov dword [esp + 0x60], edx
mov esi, ecx
mov dword [esp + 0x1c], 0
push 0
push eax
mov dword [esp + 0x20], esi
call fcn.0043fa60
push 0x20c
xorps xmm0, xmm0
mov dword [esp + 0xa0], 0
lea eax, [esp + 0xd0]
movaps xmmword [esp + 0x70], xmm0
push 0
push eax
movaps xmmword [esp + 0x88], xmm0
movaps xmmword [esp + 0x98], xmm0
call fcn.0043fa60
add esp, 0x18
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push 0
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminAcquireContext]
test eax, eax
je 0x42196a
push 0
push 0
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
cmp esi, 0xffffffff
jne 0x421980
push dword [esp + 0x14]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x974]
xor ecx, esp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x2d4]
mov dword [esp + 0x10], 0x64
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WINTRUST.dll_CryptCATAdminCalcHashFromFileHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 2
lea eax, [eax*2 + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0043e0c3
mov edi, eax
add esp, 4
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov dword [esp + 0x54], edi
test eax, eax
je 0x421a18
nop word [eax + eax]
movzx eax, byte [esp + ecx + 0x2d0]
shr eax, 4
movzx eax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ecx*4], ax
movzx eax, byte [esp + ecx + 0x2d0]
and eax, 0xf
movzx eax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ecx*4 + 2], ax
inc ecx
mov eax, dword [esp + 0xc]
cmp ecx, eax
jb 0x4219e0
xor ecx, ecx
push ecx
push ecx
mov word [edi + eax*4], cx
lea eax, [esp + 0x2d8]
push dword [esp + 0x14]
push eax
push dword [esp + 0x20]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash]
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x421a66
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x34], 1
jmp 0x421aa5
push 0
lea eax, [esp + 0xc4]
push eax
push esi
call dword [sym.imp.WINTRUST.dll_CryptCATCatalogInfoFromContext]
lea eax, [esp + 0xc4]
mov dword [esp + 0x70], 0x24
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x48], 0
push eax
push 0xffffffffffffffff
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], 0x110
mov dword [esp + 0x48], 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 2
mov dword [esp + 0x2c], 0x30
mov dword [esp + 0xac], 0xaac56b
mov dword [esp + 0xb0], 0x11d0cd44
mov dword [esp + 0xb4], 0xc000c28c
mov dword [esp + 0xb8], 0xee95c24f
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
test eax, eax
js 0x421cb4
push dword [esp + 0x40]
mov dword [esp + 0x1c], 0
call dword [sym.imp.WINTRUST.dll_WTHelperProvDataFromStateData]
test eax, eax
je 0x421c5b
push 0
push 0
push 0
push eax
call dword [sym.imp.WINTRUST.dll_WTHelperGetProvSignerFromChain]
mov esi, eax
mov dword [esp + 0x50], esi
test esi, esi
je 0x421c57
push 0
push esi
call dword [sym.imp.WINTRUST.dll_WTHelperGetProvCertFromChain]
mov dword [esp + 0x58], eax
test eax, eax
je 0x421c57
push 0
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.WINTRUST.dll_WTHelperGetProvCertFromChain]
mov esi, eax
test esi, esi
je 0x421bf5
mov edi, dword [esp + 0x50]
nop word [eax + eax]
push 0x320
lea eax, [esp + 0x65c]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
lea eax, [esp + 0x658]
push 0x190
push eax
push 0
push 0
push 4
push dword [esi + 4]
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
inc eax
push eax
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.WINTRUST.dll_WTHelperGetProvCertFromChain]
mov esi, eax
test esi, esi
jne 0x421ba0
mov edi, dword [esp + 0x54]
push 0x320
lea eax, [esp + 0x33c]
push 0
push eax
call fcn.0043fa60
add esp, 0xc
lea eax, [esp + 0x338]
push 0x18f
push eax
mov eax, dword [esp + 0x60]
push 0
push 0
push 4
push dword [eax + 4]
call dword [sym.imp.CRYPT32.dll_CertGetNameStringW]
lea edx, [esp + 0x338]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x421c36
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x338]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.00409600
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
mov dword [esp + 0x3c], 2
push eax
lea eax, [esp + 0xb4]
mov dword [esp + 0x3c], 0
push eax
push 0xffffffffffffffff
mov dword [esp + 0x54], 0
mov dword [esp + 0xbc], 0x189a3842
mov dword [esp + 0xc0], 0x11d13041
mov dword [esp + 0xc4], 0xc000e185
mov dword [esp + 0xc8], 0xee95c24f
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
test esi, esi
je 0x421cc5
push 0
push esi
push dword [esp + 0x18]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseCatalogContext]
push 0
push dword [esp + 0x14]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
push edi
call fcn.0043e0be
mov ecx, dword [esp + 0x980]
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret