Function at 0x49cc80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7a08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x534008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.wintrust.dll
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
call fcn.0040a260
mov dword [ebp - 4], 0
cmp dword [edi + 0x28], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jne 0x49cce4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
mov dword [edi + 0x28], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.crypt32.dll
lea ecx, [ebp - 0x28]
call fcn.0040a260
mov dword [ebp - 4], 1
cmp dword [edi + 0x2c], 0
jne 0x49cd1e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
mov dword [edi + 0x2c], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.CryptCATAdminCalcHashFromFileHandle
lea ecx, [ebp - 0x28]
call fcn.0040a260
mov dword [ebp - 4], 2
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x18], eax
je 0x49cd64
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x49cd64
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov dword [edi], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.CryptCATAdminAcquireContext
lea ecx, [ebp - 0x28]
call fcn.0040a260
xor eax, eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x18], eax
je 0x49cda6
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x49cda6
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov dword [edi + 4], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.CryptCATAdminEnumCatalogFromHash
lea ecx, [ebp - 0x28]
call fcn.0040a260
xor eax, eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0x18], eax
je 0x49cde9
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x49cde9
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov dword [edi + 8], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.CryptCATCatalogInfoFromContext
lea ecx, [ebp - 0x28]
call fcn.0040a260
xor eax, eax
mov dword [ebp - 4], 5
cmp dword [ebp - 0x18], eax
je 0x49ce2c
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x49ce2c
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov dword [edi + 0xc], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.CryptCATAdminReleaseContext
lea ecx, [ebp - 0x28]
call fcn.0040a260
xor eax, eax
mov dword [ebp - 4], 6
cmp dword [ebp - 0x18], eax
je 0x49ce6f
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x49ce6f
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov dword [edi + 0x10], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.CryptCATAdminReleaseCatalogContext
lea ecx, [ebp - 0x28]
call fcn.0040a260
xor eax, eax
mov dword [ebp - 4], 7
cmp dword [ebp - 0x18], eax
je 0x49ceb2
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x49ceb2
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov dword [edi + 0x14], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.WTHelperProvDataFromStateData
lea ecx, [ebp - 0x28]
call fcn.0040a260
xor eax, eax
mov dword [ebp - 4], 8
cmp dword [ebp - 0x18], eax
je 0x49cef5
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x49cef5
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov dword [edi + 0x1c], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.WinVerifyTrust
lea ecx, [ebp - 0x28]
call fcn.0040a260
xor eax, eax
mov dword [ebp - 4], 9
cmp dword [ebp - 0x18], eax
je 0x49cf38
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x49cf38
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov dword [edi + 0x18], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.WTHelperGetProvSignerFromChain
lea ecx, [ebp - 0x28]
call fcn.0040a260
xor eax, eax
mov dword [ebp - 4], 0xa
cmp dword [ebp - 0x18], eax
je 0x49cf7b
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x49cf7b
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov dword [edi + 0x20], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push str.CertNameToStrW
lea ecx, [ebp - 0x28]
call fcn.0040a260
xor eax, eax
mov dword [ebp - 4], 0xb
cmp dword [ebp - 0x18], eax
je 0x49cfbe
mov ecx, dword [edi + 0x2c]
test ecx, ecx
je 0x49cfbe
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call esi
mov dword [edi + 0x24], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x54
mov dword [edi + 0x38], eax
call fcn.004b5eed
mov esi, eax
add esp, 4
mov dword [ebp - 0x30], esi
push str.Monitor_CryptSvc_Thread
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xc
call fcn.0040a260
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xd
push eax
mov ecx, esi
mov dword [ebp - 0x2c], 1
call fcn.004c6550
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
mov dword [edi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040a1a0
mov ecx, dword [edi + 0x30]
push edi
push 0x49d080
call fcn.004c6960
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5edc
mov esp, ebp
pop ebp
ret