Function at 0x10076a80
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x100c7210]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], 0x80004005
mov eax, dword [ebp - 0x428]
cmp dword [eax + 0x24], 0
je 0x10076ab9
jmp 0x10076eb2
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.10053730
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x210]
push eax
call fcn.100537aa
add esp, 4
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jle 0x10076b3b
mov ecx, dword [ebp - 0x214]
movzx edx, word [ebp + ecx*2 - 0x212]
cmp edx, 0x5c
je 0x10076b3b
mov eax, dword [ebp - 0x214]
mov word [ebp + eax*2 - 0x210], 0x5c
mov ecx, dword [ebp - 0x214]
mov word [ebp + ecx*2 - 0x20e], 0
mov word [ebp - 0x420], 0
push 0x206
push 0
lea edx, [ebp - 0x41e]
push edx
call fcn.10053730
add esp, 0xc
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push 0x104
lea ecx, [ebp - 0x420]
push ecx
call fcn.1005836f
add esp, 0x10
push 0xffffffffffffffff
push str.Wintrust.dll
push 0x104
lea edx, [ebp - 0x420]
push edx
call fcn.10058438
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x428]
cmp dword [edx + 0x28], 0
jne 0x10076bbe
jmp 0x10076ebc
push str.WinVerifyTrust
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x428]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x428]
cmp dword [eax + 0x30], 0
jne 0x10076bf2
jmp 0x10076ebc
push 0xffffffffffffffff
lea ecx, [ebp - 0x210]
push ecx
push 0x104
lea edx, [ebp - 0x420]
push edx
call fcn.1005836f
add esp, 0x10
push 0xffffffffffffffff
push str.Crypt32.dll
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.10058438
add esp, 0x10
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x428]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 0x428]
cmp dword [eax + 0x2c], 0
jne 0x10076c56
jmp 0x10076ebc
push str.CryptQueryObject
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x34], eax
push str.CryptMsgGetParam
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x38], eax
push str.CryptMsgClose
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x3c], eax
push str.CertFindCertificateInStore
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x40], eax
push str.CertFreeCertificateContext
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x44], eax
push str.CertCloseStore
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x48], eax
push str.CertGetNameStringW
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x4c], eax
push str.CryptCATAdminAcquireContext
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x50], eax
push str.CryptCATAdminReleaseContext
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x54], eax
push str.CryptCATAdminCalcHashFromFileHandle
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x58], eax
push str.CryptCATAdminEnumCatalogFromHash
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x5c], eax
push str.CryptCATAdminReleaseCatalogContext
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x60], eax
push str.CryptCATCatalogInfoFromContext
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 0x428]
cmp dword [edx + 0x34], 0
je 0x10076e80
mov eax, dword [ebp - 0x428]
cmp dword [eax + 0x38], 0
je 0x10076e80
mov ecx, dword [ebp - 0x428]
cmp dword [ecx + 0x3c], 0
je 0x10076e80
mov edx, dword [ebp - 0x428]
cmp dword [edx + 0x40], 0
je 0x10076e80
mov eax, dword [ebp - 0x428]
cmp dword [eax + 0x44], 0
je 0x10076e80
mov ecx, dword [ebp - 0x428]
cmp dword [ecx + 0x48], 0
je 0x10076e80
mov edx, dword [ebp - 0x428]
cmp dword [edx + 0x4c], 0
je 0x10076e80
mov eax, dword [ebp - 0x428]
cmp dword [eax + 0x50], 0
je 0x10076e80
mov ecx, dword [ebp - 0x428]
cmp dword [ecx + 0x54], 0
je 0x10076e80
mov edx, dword [ebp - 0x428]
cmp dword [edx + 0x58], 0
je 0x10076e80
mov eax, dword [ebp - 0x428]
cmp dword [eax + 0x5c], 0
je 0x10076e80
mov ecx, dword [ebp - 0x428]
cmp dword [ecx + 0x60], 0
je 0x10076e80
mov edx, dword [ebp - 0x428]
cmp dword [edx + 0x64], 0
jne 0x10076e84
jmp 0x10076ebc
push 0
push 0
mov eax, dword [ebp - 0x428]
add eax, 0x68
push eax
mov ecx, dword [ebp - 0x428]
mov edx, dword [ecx + 0x50]
call edx
test eax, eax
jne 0x10076ea5
jmp 0x10076ebc
mov eax, dword [ebp - 0x428]
mov dword [eax + 0x24], 1
mov dword [ebp - 0x424], 0
cmp dword [ebp - 0x424], 0
jge 0x10076f2d
mov ecx, dword [ebp - 0x428]
cmp dword [ecx + 0x2c], 0
je 0x10076eee
mov edx, dword [ebp - 0x428]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x428]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x428]
cmp dword [edx + 0x28], 0
je 0x10076f17
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x428]
mov dword [edx + 0x28], 0
push 0x38
push 0
mov eax, dword [ebp - 0x428]
add eax, 0x30
push eax
call fcn.10053730
add esp, 0xc
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053547
mov esp, ebp
pop ebp
ret