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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rax + 8], r12
mov qword [rax - 0x30], r13
xor r13d, r13d
mov qword [rax - 0x38], r15
mov r14d, r13d
mov r15, rcx
mov qword [rsp + 0x60], r13
xor ecx, ecx
mov qword [rsp + 0x68], r13
mov r12d, r13d
mov esi, r13d
mov edi, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000697c
test al, 0x50
jne 0x14000697c
mov rax, qword [0x1400db6b8]
test rax, rax
jne 0x1400064ed
xor edx, edx
lea rcx, str.crypt32.dll
call fcn.140004930
mov qword [0x1400db6b8], rax
test rax, rax
je 0x14000668a
cmp qword [0x1400dbd08], rsi
jne 0x14000651d
lea rdx, str.CryptMsgClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dbd08], rax
test rax, rax
je 0x14000668a
mov rax, qword [0x1400db6b8]
cmp qword [0x1400dbd00], rsi
jne 0x14000654d
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dbd00], rax
test rax, rax
je 0x14000668a
mov rax, qword [0x1400db6b8]
cmp qword [0x1400db720], rsi
jne 0x14000657d
lea rdx, str.CertFreeCertificateContext
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400db720], rax
test rax, rax
je 0x14000668a
mov rax, qword [0x1400db6b8]
cmp qword [0x1400db6b0], rsi
jne 0x1400065ad
lea rdx, str.CertFindCertificateInStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400db6b0], rax
test rax, rax
je 0x14000668a
mov rax, qword [0x1400db6b8]
cmp qword [0x1400dbb98], rsi
jne 0x1400065dd
lea rdx, str.CryptMsgGetParam
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dbb98], rax
test rax, rax
je 0x14000668a
mov rax, qword [0x1400db6b8]
cmp qword [0x1400dbbc8], rsi
jne 0x14000660d
lea rdx, str.CryptQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dbbc8], rax
test rax, rax
je 0x14000668a
mov rax, qword [0x1400db6b8]
cmp qword [0x1400db960], rsi
jne 0x140006639
lea rdx, str.CertGetNameStringA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400db960], rax
test rax, rax
je 0x14000668a
mov rax, qword [0x1400db6b8]
cmp qword [0x1400dbbb8], rsi
jne 0x140006665
lea rdx, str.CryptDecodeObjectEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dbbb8], rax
test rax, rax
je 0x14000668a
mov rax, qword [0x1400db6b8]
cmp qword [0x1400db748], rsi
jne 0x140006694
lea rdx, str.CertGetIssuerCertificateFromStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400db748], rax
test rax, rax
jne 0x140006694
mov edi, 0x7e
jmp 0x140006981
mov rbx, qword [0x1400dbbc8]
mov rcx, rbx
call qword [fcn.140009620]
mov qword [rsp + 0x50], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
mov r9d, 2
lea rax, [rsp + 0x60]
mov r8d, 0x400
mov qword [rsp + 0x40], rax
mov rdx, r15
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x38], rax
lea ecx, [r9 - 1]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
call rbx
mov esi, eax
test eax, eax
jne 0x14000670a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140006981
mov rbx, qword [0x1400dbb98]
mov rcx, rbx
call qword [fcn.140009620]
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [r9 + 6]
call rbx
mov esi, eax
test eax, eax
jne 0x14000674a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140006981
mov edx, dword [rbp + 0x98]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
jne 0x140006773
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, r13d
jmp 0x140006981
mov rbx, qword [0x1400dbb98]
mov rcx, rbx
call qword [fcn.140009620]
mov rcx, qword [rsp + 0x68]
lea rax, [rbp + 0x98]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9, r14
lea edx, [r8 + 6]
call rbx
mov esi, eax
test eax, eax
jne 0x1400067b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140006981
movups xmm0, xmmword [r14 + 8]
mov rbx, qword [0x1400db6b0]
mov rcx, rbx
movaps xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [r14 + 0x18]
movups xmmword [rbp - 0x78], xmm0
call qword [fcn.140009620]
mov rcx, qword [rsp + 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], r13
mov r9d, 0xb0000
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x10001
call rbx
mov r12, rax
test rax, rax
jne 0x140006810
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, r13d
jmp 0x140006981
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140006a20
test eax, eax
jne 0x140006828
xor eax, eax
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
mov rcx, r14
call fcn.140006af0
test eax, eax
jne 0x14000686c
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.140006f00
test eax, eax
jne 0x14000686c
mov esi, r13d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x140006981
mov edi, 0x80096005
jmp 0x140006981
mov ecx, 0x23f0
call fcn.140008540
test eax, eax
jne 0x140006897
mov rcx, r15
call fcn.140004f90
test eax, eax
je 0x140006897
call fcn.140006260
test eax, eax
jne 0x140006897
lea esi, [rax + 1]
jmp 0x140006981
mov rax, qword [0x1400db6e0]
test rax, rax
jne 0x1400068bd
xor edx, edx
lea rcx, str.wintrust.dll
call fcn.140004930
mov qword [0x1400db6e0], rax
test rax, rax
je 0x1400068e2
cmp qword [0x1400db6c0], rdi
jne 0x1400068ef
lea rdx, str.WinVerifyTrust
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400db6c0], rax
test rax, rax
jne 0x1400068ef
mov esi, r13d
mov edi, 0x7e
jmp 0x140006981
mov esi, r13d
mov ebx, r13d
mov rcx, r15
call fcn.140005160
test eax, eax
je 0x14000690c
inc ebx
mov edi, eax
cmp ebx, 1
jb 0x1400068f5
jmp 0x140006911
mov esi, 1
cmp edi, 0x800b010a
jne 0x140006981
mov rbx, qword [0x1400db748]
mov rcx, rbx
mov dword [rbp + 0xa0], r13d
call qword [fcn.140009620]
mov rcx, qword [rsp + 0x60]
lea r9, [rbp + 0xa0]
xor r8d, r8d
mov rdx, r12
call rbx
mov r15, rax
test rax, rax
je 0x140006981
mov rcx, qword [rax + 0x18]
add rcx, 0x78
call fcn.140005240
test eax, eax
je 0x140006965
mov esi, 1
mov edi, r13d
mov rbx, qword [0x1400db720]
mov rcx, rbx
call qword [fcn.140009620]
mov rcx, r15
call rbx
jmp 0x140006981
mov edi, 2
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r15, qword [rsp + 0x150]
mov r13, qword [rsp + 0x158]
test r12, r12
je 0x1400069b4
mov rbx, qword [0x1400db720]
mov rcx, rbx
call qword [fcn.140009620]
mov rcx, r12
call rbx
mov r14, qword [rsp + 0x60]
mov r12, qword [rsp + 0x190]
test r14, r14
je 0x1400069dd
mov rbx, qword [0x1400dbd00]
mov rcx, rbx
call qword [fcn.140009620]
xor edx, edx
mov rcx, r14
call rbx
mov r14, qword [rsp + 0x68]
test r14, r14
je 0x1400069fc
mov rbx, qword [0x1400dbd08]
mov rcx, rbx
call qword [fcn.140009620]
mov rcx, r14
call rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
add rsp, 0x160
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret