Function at 0x414b80
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime

Disassembly:
sub esp, 0x94
push ebp
push esi
xor esi, esi
push edi
push esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
xor edi, edi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414bbd
test al, 0x50
je 0x414bc7
mov ebp, 2
jmp 0x414f43
cmp dword [0x1b56978], esi
push ebx
jne 0x414cba
mov ebx, str.crypt32.dll
call fcn.00412890
xor ecx, ecx
cmp ecx, str.crypt32.dll
mov ebx, eax
je 0x414bee
test ebx, ebx
je 0x414bfb
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
mov dword [0x1b56978], esi
je 0x414cba
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptMsgClose
push esi
call ebx
mov edx, dword [0x1b56978]
push str.CertCloseStore
push edx
mov dword [0x1b5697c], eax
call ebx
mov dword [0x1b56980], eax
mov eax, dword [0x1b56978]
push str.CertFreeCertificateContext
push eax
call ebx
mov ecx, dword [0x1b56978]
push str.CertFindCertificateInStore
push ecx
mov dword [0x1b56984], eax
call ebx
mov edx, dword [0x1b56978]
push str.CryptMsgGetParam
push edx
mov dword [0x1b56988], eax
call ebx
mov dword [0x1b5698c], eax
mov eax, dword [0x1b56978]
push str.CryptQueryObject
push eax
call ebx
mov ecx, dword [0x1b56978]
push str.CertGetNameStringA
push ecx
mov dword [0x1b56990], eax
call ebx
mov edx, dword [0x1b56978]
push str.CryptDecodeObjectEx
push edx
mov dword [0x1b56994], eax
call ebx
mov dword [0x1b56998], eax
mov eax, dword [0x1b56978]
push str.CertGetIssuerCertificateFromStore
push eax
call ebx
mov dword [0x1b5699c], eax
jmp 0x414cc0
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x1b5697c], 0
je 0x414f3d
cmp dword [0x1b56980], 0
je 0x414f3d
cmp dword [0x1b56984], 0
je 0x414f3d
cmp dword [0x1b56988], 0
je 0x414f3d
cmp dword [0x1b5698c], 0
je 0x414f3d
mov eax, dword [0x1b56990]
test eax, eax
je 0x414f3d
cmp dword [0x1b56994], 0
je 0x414f3d
cmp dword [0x1b56998], 0
je 0x414f3d
cmp dword [0x1b5699c], 0
je 0x414f3d
push 0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0xbc]
lea ecx, [esp + 0x40]
push ecx
push 0
push 2
push 0x400
push edx
push 1
call eax
mov edi, eax
test edi, edi
jne 0x414d78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x414f42
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 6
push ecx
call dword [0x1b5698c]
mov edi, eax
test edi, edi
jne 0x414da1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x414f42
mov edx, dword [esp + 0x20]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jne 0x414dc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
xor edi, edi
jmp 0x414f42
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push esi
push 0
push 6
push ecx
call dword [0x1b5698c]
mov edi, eax
test edi, edi
jne 0x414def
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x414f42
mov edx, dword [esi + 4]
mov dword [esp + 0x4c], edx
mov eax, dword [esi + 8]
push 0
mov dword [esp + 0x54], eax
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x38]
push eax
push 0xb0000
push 0
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x10]
push 0x10001
push ecx
mov dword [esp + 0x54], edx
call dword [0x1b56988]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x414e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
xor edi, edi
jmp 0x414f42
cmp dword [esp + 0xac], 0
je 0x414e70
push eax
call fcn.004144e0
mov edx, dword [esp + 0xb0]
add esp, 4
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebp, ebp
jne 0x414f42
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
call fcn.004146a0
add esp, 4
test eax, eax
jne 0x414e99
call fcn.00414790
test eax, eax
jne 0x414e99
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x414f42
cmp dword [0x1b569e4], 0
jne 0x414ec4
xor eax, eax
mov ecx, str.wintrust.dll
call fcn.00414b40
test eax, eax
mov dword [0x1b569e4], eax
je 0x414ec4
push str.WinVerifyTrust
push eax
call ebx
mov dword [0x1b569e8], eax
xor edi, edi
cmp dword [0x1b569e8], edi
je 0x414f3d
xor esi, esi
mov ecx, dword [esp + 0xa8]
call fcn.00412aa0
test eax, eax
je 0x414eec
add esi, 1
cmp esi, 1
mov ebp, eax
jb 0x414ed0
jmp 0x414ef1
mov edi, 1
cmp ebp, 0x800b010a
jne 0x414f42
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x34], 0
call dword [0x1b5699c]
mov esi, eax
test esi, esi
je 0x414f42
mov eax, dword [esi + 0xc]
add eax, 0x44
call fcn.00412b60
test eax, eax
je 0x414f34
mov edi, 1
xor ebp, ebp
push esi
call dword [0x1b56984]
jmp 0x414f42
mov ebp, 0x7e
pop ebx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x414f5d
push eax
call dword [0x1b56984]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x414f6e
push 0
push eax
call dword [0x1b56980]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x414f7d
push eax
call dword [0x1b5697c]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x94