Function at 0x100813f0
Capabilities:
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x6b8
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x6b4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [esp + 0x1c], eax
mov eax, dword [0x100e8974]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x90], 0xf750e6c3
mov dword [esp + 0x94], 0x11d138ee
mov dword [esp + 0x98], 0xc000e585
mov dword [esp + 0x9c], 0xee95c24f
mov dword [esp + 0x24], 0
test eax, eax
je 0x10081486
push 0
push 0
push ecx
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x34]
push ecx
call eax
test eax, eax
jne 0x100814bf
jmp 0x100818e8
cmp dword [esi], 0
jne 0x100814a4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1008149a
push str.CryptCATAdminAcquireContext
push eax
call edi
mov dword [esi], eax
test eax, eax
je 0x100818e8
push 0
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi]
call eax
test eax, eax
je 0x100818e8
mov eax, dword [0x100e8978]
mov dword [esp + 0x28], 0x200
test eax, eax
je 0x100814fe
push 0
lea ecx, [esp + 0x4bc]
push ecx
lea ecx, [esp + 0x30]
push ecx
push dword [esp + 0x28]
push dword [esp + 0x34]
call eax
test eax, eax
jne 0x10081534
mov edx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.10080de0
jmp 0x100818e8
cmp dword [esi + 0x10], 0
jne 0x1008151a
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10081513
push str.CryptCATAdminCalcHashFromFileHandle
push eax
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x100814ed
push 0
lea eax, [esp + 0x4bc]
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x28]
mov eax, dword [esi + 0x10]
call eax
jmp 0x100814e9
xor eax, eax
push 0x206
push eax
mov word [esp + 0x2b8], ax
lea eax, [esp + 0x2ba]
push eax
call sub.MSVCR110.dll_memset
push dword [esp + 0x20]
lea eax, [esp + 0x2c0]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
lea eax, [esp + 0x2c8]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll__wcslwr_s]
add esp, 0x20
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
cmp dword [esi + 0x14], 0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x3c], eax
movdqa xmmword [esp + 0x40], xmm0
lea eax, [esp + 0x2b0]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x4b8]
mov dword [esp + 0x50], 0
mov dword [esp + 0x30], 0x24
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], edx
jne 0x10081631
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10081626
push str.CryptCATAdminEnumCatalogFromHash
push eax
call edi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x14], eax
test eax, eax
je 0x100818b8
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
lea eax, [esp + 0x4c4]
push eax
mov eax, dword [esi + 0x14]
push edx
call eax
mov edi, eax
test edi, edi
je 0x100818b2
mov eax, dword [esp + 0x1c]
mov ecx, eax
inc eax
mov dword [esp + 0x1c], eax
cmp ecx, 5
ja 0x100818a1
push 0x20c
lea eax, [esp + 0xa4]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [esi + 0xc], 0
mov dword [esp + 0xa0], 0x20c
jne 0x100816ab
mov eax, dword [esi + 0x28]
test eax, eax
je 0x100816a0
push str.CryptCATCatalogInfoFromContext
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
test eax, eax
je 0x100817d8
push 0
lea eax, [esp + 0xa4]
push eax
mov eax, dword [esi + 0xc]
push edi
call eax
test eax, eax
je 0x100817d8
lea eax, [esp + 0xa4]
push 0x30
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x64]
push 0
push eax
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x20], eax
mov dword [esp + 0x60], 0x30
setne al
cmp byte [0x100ee428], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 2
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 2
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
jne 0x10081782
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call sym.iImportLib.dll_int___cdecl_elex::os::ISAFE_GetOSVersion_unsigned_long_int___unsigned_long_int__
mov eax, dword [esp + 0x1c]
and eax, 0xff00
add esp, 8
cmp eax, 0x1500
setae al
mov byte [0x100ee428], al
mov dword [esp + 0x88], 0x10
test al, al
je 0x1008178d
mov dword [esp + 0x88], 0x1000
cmp dword [esi + 0x18], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x78], eax
jne 0x100817c0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x100817b9
push str.WinVerifyTrust
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x18], eax
test eax, eax
je 0x100817d8
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x94]
push eax
mov eax, dword [esi + 0x18]
push 0xffffffffffffffff
call eax
test eax, eax
je 0x1008183c
cmp dword [esi + 0x14], 0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jne 0x1008181a
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008180f
push str.CryptCATAdminEnumCatalogFromHash
push eax
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi + 0x14], eax
test eax, eax
je 0x100818b8
lea eax, [esp + 0x2c]
push eax
push 0
push ecx
lea eax, [esp + 0x4c4]
push eax
mov eax, dword [esi + 0x14]
push edx
call eax
mov edi, eax
test edi, edi
jne 0x10081651
jmp 0x100818b2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10081851
push eax
lea eax, [esp + 0x64]
push eax
mov ecx, esi
call sym.iImportLib.dll_private:_long_int___thiscall_CWinTrustVerifier::GetSignerInfo_struct__WINTRUST_DATA_const___class_std::list_class_CWinTrustSignerInfo__class_std::allocator_class_CWinTrustSignerInfo____
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x94]
push eax
mov ecx, esi
mov dword [esp + 0x84], 2
call fcn.10080e60
mov edx, dword [esp + 0x24]
push ecx
push edi
mov ecx, esi
call fcn.10080e20
mov edx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.10080de0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x6b4]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret 0x10
test edi, edi
je 0x100818b2
mov edx, dword [esp + 0x24]
push ecx
push edi
mov ecx, esi
call fcn.10080e20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [esi + 4], 0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
jne 0x100818e0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x100818d9
push str.CryptCATAdminReleaseContext
push eax
call edi
mov ecx, dword [esp + 0x18]
mov dword [esi + 4], eax
test eax, eax
je 0x100818e8
mov eax, dword [esi + 4]
push 0
push ecx
call eax
mov ecx, dword [esp + 0x6bc]
pop edi
pop esi
xor ecx, esp
mov eax, 0x80004005
call fcn.100947be
mov esp, ebp
pop ebp
ret 0x10