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

Disassembly:
sub esp, 0x90
push ebx
push ebp
push esi
push edi
xor esi, esi
mov dword [esp + 0x14], 0
xor ebx, ebx
mov dword [esp + 0x10], 0
push esi
xor edi, edi
mov dword [esp + 0x1c], ebx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [esp + 0xa4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001530d
test al, 0x50
jne 0x1001530d
cmp dword [0x1001f66c], ebx
jne 0x10015122
push str.crypt32.dll
call fcn.10011940
xor ecx, ecx
mov dword [esp + 0x24], eax
add esp, 4
cmp ecx, str.crypt32.dll
je 0x10015066
test eax, eax
je 0x10015077
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x1001f66c], esi
test esi, esi
je 0x10015122
push str.CryptMsgClose
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
push str.CertCloseStore
push dword [0x1001f66c]
mov dword [0x1001f670], eax
call esi
push str.CertFreeCertificateContext
push dword [0x1001f66c]
mov dword [0x1001f674], eax
call esi
push str.CertFindCertificateInStore
push dword [0x1001f66c]
mov dword [0x1001f678], eax
call esi
push str.CryptMsgGetParam
push dword [0x1001f66c]
mov dword [0x1001f67c], eax
call esi
push str.CryptQueryObject
push dword [0x1001f66c]
mov dword [0x1001f680], eax
call esi
push str.CertGetNameStringA
push dword [0x1001f66c]
mov dword [0x1001f684], eax
call esi
push str.CryptDecodeObject
push dword [0x1001f66c]
mov dword [0x1001f688], eax
call esi
mov ecx, eax
mov dword [0x1001f68c], ecx
jmp 0x10015128
mov ecx, dword [0x1001f68c]
cmp dword [0x1001f670], ebx
je 0x10015300
cmp dword [0x1001f674], ebx
je 0x10015300
cmp dword [0x1001f678], ebx
je 0x10015300
cmp dword [0x1001f67c], ebx
je 0x10015300
cmp dword [0x1001f680], ebx
je 0x10015300
mov eax, dword [0x1001f684]
test eax, eax
je 0x10015300
cmp dword [0x1001f688], ebx
je 0x10015300
test ecx, ecx
je 0x10015300
push 0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push 0
push 2
push 0x400
push dword [esp + 0xc8]
push 1
call eax
mov esi, eax
test esi, esi
jne 0x100151c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10015315
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 6
push dword [esp + 0x20]
call dword [0x1001f680]
mov esi, eax
test esi, esi
jne 0x100151eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10015315
push dword [esp + 0x1c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10015208
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10015315
lea eax, [esp + 0x1c]
push eax
push edi
push 0
push 6
push dword [esp + 0x20]
call dword [0x1001f680]
mov esi, eax
test esi, esi
jne 0x1001522d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10015315
mov eax, dword [edi + 4]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [edi + 0x10]
push 0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push eax
push 0xb0000
push 0
push 0x10001
push dword [esp + 0x28]
call dword [0x1001f67c]
mov ebp, eax
test ebp, ebp
jne 0x10015277
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10015315
cmp dword [esp + 0xa8], ebx
je 0x1001529c
push ebp
call fcn.100127c0
mov ecx, dword [esp + 0xac]
add esp, 4
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10015315
lea eax, [esp + 0x18]
push eax
push edi
call fcn.100125c0
mov ebx, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x10015315
mov eax, dword [ebx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x10]
push 0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
push eax
push 0xb0000
push 0
push 0x10001
push dword [esp + 0x28]
call dword [0x1001f67c]
mov ebp, eax
test ebp, ebp
jne 0x100152f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10015315
mov esi, 1
jmp 0x10015315
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret
push 0x7e
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
push ebx
call edi
test ebp, ebp
je 0x1001532c
push ebp
call dword [0x1001f678]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1001533d
push 0
push eax
call dword [0x1001f674]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001534c
push eax
call dword [0x1001f670]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret