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

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
lea rbp, [r11 - 0x248]
sub rsp, 0x330
mov rax, qword [0x1400c7338]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov qword [r11 + 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov r13, rcx
mov qword [r11 - 0x30], r14
xor ecx, ecx
mov qword [r11 - 0x38], r15
mov r14, rdx
xor r15d, r15d
mov qword [rsp + 0x70], r15
mov esi, r15d
mov qword [rbp - 0x80], r15
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140016693
test al, 0x50
jne 0x140016693
mov rax, qword [0x1400c9d30]
test rax, rax
jne 0x140015ced
xor edx, edx
lea rcx, str.crypt32.dll
call fcn.1400113c0
mov qword [0x1400c9d30], rax
test rax, rax
je 0x140015e8a
cmp qword [0x1400c9d38], rbx
jne 0x140015d1d
lea rdx, str.CryptMsgClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d38], rax
test rax, rax
je 0x140015e8a
mov rax, qword [0x1400c9d30]
cmp qword [0x1400c9d40], rbx
jne 0x140015d4d
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d40], rax
test rax, rax
je 0x140015e8a
mov rax, qword [0x1400c9d30]
cmp qword [0x1400c9d48], rbx
jne 0x140015d7d
lea rdx, str.CertFreeCertificateContext
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d48], rax
test rax, rax
je 0x140015e8a
mov rax, qword [0x1400c9d30]
cmp qword [0x1400c9d50], rbx
jne 0x140015dad
lea rdx, str.CertFindCertificateInStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d50], rax
test rax, rax
je 0x140015e8a
mov rax, qword [0x1400c9d30]
cmp qword [0x1400c9d58], rbx
jne 0x140015ddd
lea rdx, str.CryptMsgGetParam
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d58], rax
test rax, rax
je 0x140015e8a
mov rax, qword [0x1400c9d30]
cmp qword [0x1400c9d60], rbx
jne 0x140015e0d
lea rdx, str.CryptQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d60], rax
test rax, rax
je 0x140015e8a
mov rax, qword [0x1400c9d30]
cmp qword [0x1400c9d68], rbx
jne 0x140015e39
lea rdx, str.CertGetNameStringA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d68], rax
test rax, rax
je 0x140015e8a
mov rax, qword [0x1400c9d30]
cmp qword [0x1400c9d70], rbx
jne 0x140015e65
lea rdx, str.CryptDecodeObjectEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d70], rax
test rax, rax
je 0x140015e8a
mov rax, qword [0x1400c9d30]
cmp qword [0x1400c9d78], rbx
jne 0x140015e94
lea rdx, str.CertGetIssuerCertificateFromStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d78], rax
test rax, rax
jne 0x140015e94
mov ebx, 0x7e
jmp 0x140016698
mov qword [rsp + 0x50], r15
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
mov r9d, 2
lea rax, [rsp + 0x70]
mov r8d, 0x400
mov qword [rsp + 0x40], rax
mov rdx, r13
lea rax, [rbp - 0x74]
mov qword [rsp + 0x38], rax
lea ecx, [r9 - 1]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1400c9d60]
mov dword [rsp + 0x20], r15d
call qword [0x1400a2660]
mov esi, eax
test eax, eax
jne 0x140015eff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140016698
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400c9d58]
xor r8d, r8d
lea edx, [r9 + 6]
call qword [0x1400a2660]
mov esi, eax
test eax, eax
jne 0x140015f37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140016698
mov edx, dword [rsp + 0x6c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x140015f61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, r15d
mov rcx, rdi
mov ebx, eax
jmp 0x14001669a
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400c9d58]
mov r9, rdi
lea edx, [r8 + 6]
call qword [0x1400a2660]
mov esi, eax
test eax, eax
jne 0x140015f9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
jmp 0x14001669a
movups xmm0, xmmword [rdi + 8]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], r15
mov r9d, 0xb0000
movaps xmmword [rbp + 0x40], xmm0
xor r8d, r8d
movups xmm1, xmmword [rdi + 0x18]
mov qword [rsp + 0x20], rax
mov edx, 0x10001
mov rax, qword [0x1400c9d50]
movups xmmword [rbp + 0x18], xmm1
call qword [0x1400a2660]
mov r12, rax
test rax, rax
jne 0x140015ff5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, r15d
mov rcx, rdi
mov ebx, eax
jmp 0x14001669a
test r14, r14
je 0x140016062
xor r9d, r9d
mov dword [rsp + 0x28], 0x100
lea rax, [rbp + 0x100]
mov byte [rbp + 0x100], bl
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rax, qword [0x1400c9d68]
mov rcx, r12
lea edx, [r9 + 4]
call qword [0x1400a2660]
mov r8d, 7
lea rdx, str.NVIDIA
lea rcx, [rbp + 0x100]
call fcn.140072c9c
mov ecx, r15d
test eax, eax
sete cl
mov dword [r14], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x140016678
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x68], ebx
mov rcx, rdi
call fcn.14000f7e0
mov rcx, qword [rsp + 0x78]
test eax, eax
cmove rcx, r15
mov r15, qword [rsp + 0x70]
xor esi, esi
mov qword [rsp + 0x78], rcx
xor ebx, ebx
mov qword [rsp + 0x60], rsi
cmp dword [rdi + 0x78], ebx
jbe 0x1400161c2
nop word [rax + rax]
test esi, esi
jne 0x1400161c2
lea rcx, [rbx + rbx*2]
lea r14, [rcx*8]
mov rcx, qword [rdi + 0x80]
lea rdx, str.1.2.840.113549.1.9.6
mov rcx, qword [r14 + rcx]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1400161b7
mov rax, qword [rdi + 0x80]
mov edx, 0x1f4
mov ecx, 0x10001
mov r8, qword [r14 + rax + 0x10]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
xor r14d, r14d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, dword [r8]
mov rax, qword [0x1400c9d70]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x8000
call qword [0x1400a2660]
test eax, eax
je 0x1400161c2
mov rax, qword [rsp + 0x60]
mov r9d, 0xb0000
mov qword [rsp + 0x28], r14
xor r8d, r8d
mov edx, 0x10001
mov rcx, r15
movups xmm0, xmmword [rax + 8]
movaps xmmword [rbp + 0x130], xmm0
movups xmm1, xmmword [rax + 0x18]
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400c9d50]
movups xmmword [rbp + 0x108], xmm1
call qword [0x1400a2660]
mov r14, rax
test rax, rax
je 0x1400161c2
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0xe0]
call fcn.14000f7e0
test eax, eax
je 0x1400161a7
mov rcx, qword [rbp + 0xe0]
add rcx, 0x1312d00
cmp qword [rsp + 0x78], rcx
setbe sil
mov rax, qword [0x1400c9d48]
mov rcx, r14
call qword [0x1400a2660]
inc ebx
cmp ebx, dword [rdi + 0x78]
jb 0x1400160a0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r15d, r15d
test esi, esi
jne 0x140016332
mov r14d, r15d
mov esi, r15d
mov ebx, r15d
mov qword [rsp + 0x60], r15
cmp dword [rdi + 0x78], r15d
jbe 0x14001630a
mov rcx, qword [rdi + 0x80]
lea rdx, str.1.3.6.1.4.1.311.3.3.1
mov esi, ebx
lea rax, [rsi + rsi*2]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140016229
inc ebx
cmp ebx, dword [rdi + 0x78]
jb 0x1400161f0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140016318
mov rax, qword [rdi + 0x80]
lea rdx, [rsi + rsi*2]
mov ecx, 0x10001
mov r8, qword [rax + rdx*8 + 0x10]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov edx, 0x21
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, dword [r8]
mov rax, qword [0x1400c9d70]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x8000
call qword [0x1400a2660]
mov rsi, qword [rsp + 0x60]
test eax, eax
je 0x14001630a
mov edx, dword [rsi + 8]
xor r8d, r8d
mov rcx, qword [rsi + 0x10]
call fcn.140011a40
mov rbx, rax
test rax, rax
je 0x14001630a
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [rbp + 0xe0]
movzx eax, word [rbp + 0xe8]
mov rsi, qword [rsp + 0x60]
imul rdx, rcx, 0x64
movzx ecx, word [rbp + 0xe2]
add rdx, rcx
movzx ecx, word [rbp + 0xe6]
imul r8, rdx, 0x64
add r8, rcx
imul rcx, r8, 0x64
add rcx, rax
movzx eax, word [rbp + 0xea]
imul rdx, rcx, 0x64
add rdx, rax
movzx eax, word [rbp + 0xec]
imul rcx, rdx, 0x64
add rcx, rax
lea rax, [rbx + 2]
cmp rcx, rax
setbe r14b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14d, r14d
jne 0x140016332
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, 0x80096005
test ebx, ebx
cmove ebx, eax
jmp 0x140016678
mov ecx, 0x23f0
call fcn.140011180
test eax, eax
jne 0x14001650c
mov rcx, r13
call fcn.140010e60
test eax, eax
je 0x14001650c
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0xf0], rax
mov r14d, r15d
mov dword [rbp + 0xf8], eax
mov rax, qword [0x1400c9d80]
movups xmmword [rbp + 0xe0], xmm0
test rax, rax
jne 0x14001639a
xor edx, edx
lea rcx, str.Advapi32.dll
call fcn.1400113c0
mov qword [0x1400c9d80], rax
test rax, rax
je 0x1400164ff
cmp qword [0x1400c9da8], 0
jne 0x1400163cb
lea rdx, [0x1400a6980]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9da8], rax
test rax, rax
je 0x1400164ff
mov rax, qword [0x1400c9d80]
cmp qword [0x1400c9db0], 0
jne 0x1400163fc
lea rdx, [0x1400a6990]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9db0], rax
test rax, rax
je 0x1400164ff
mov rax, qword [0x1400c9d80]
cmp qword [0x1400c9dc0], 0
jne 0x14001642d
lea rdx, str.QueryServiceStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9dc0], rax
test rax, rax
je 0x1400164ff
mov rax, qword [0x1400c9d80]
cmp qword [0x1400c9dc8], 0
jne 0x140016457
lea rdx, [0x1400a69b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9dc8], rax
test rax, rax
je 0x1400164ff
mov rax, qword [0x1400c9da8]
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [0x1400a2660]
mov rsi, rax
test rax, rax
je 0x1400164fa
mov rcx, rax
lea rdx, str.CryptSvc
mov rax, qword [0x1400c9db0]
mov r8d, 4
call qword [0x1400a2660]
mov rbx, rax
test rax, rax
je 0x1400164ea
mov rcx, rax
lea rdx, [rbp + 0xe0]
mov rax, qword [0x1400c9dc0]
call qword [0x1400a2660]
test eax, eax
je 0x1400164da
mov ecx, dword [rbp + 0xe4]
sub ecx, 4
je 0x1400164d4
sub ecx, 1
je 0x1400164d4
sub ecx, 1
je 0x1400164d4
cmp ecx, 1
jne 0x1400164da
mov r14d, 1
mov rax, qword [0x1400c9dc8]
mov rcx, rbx
call qword [0x1400a2660]
mov rax, qword [0x1400c9dc8]
mov rcx, rsi
call qword [0x1400a2660]
test r14d, r14d
jne 0x14001650c
mov esi, 1
mov ebx, r15d
jmp 0x140016678
mov rax, qword [0x1400c9e10]
test rax, rax
jne 0x140016532
xor edx, edx
lea rcx, str.wintrust.dll
call fcn.1400113c0
mov qword [0x1400c9e10], rax
test rax, rax
je 0x14001655d
mov r9, qword [0x1400c9e18]
test r9, r9
jne 0x14001656a
lea rdx, str.WinVerifyTrust
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9e18], rax
mov r9, rax
test rax, rax
jne 0x14001656a
mov esi, r15d
mov ebx, 0x7e
jmp 0x140016678
lea rax, [rbp - 0x10]
mov qword [rbp - 0x1c], r15
or dword [rbp - 0x18], 0x1000
lea r8, [rbp - 0x60]
mov qword [rbp - 0x38], rax
lea rdx, [rbp + 0xe0]
xorps xmm0, xmm0
mov dword [rbp + 0xe0], 0xaac56b
mov rax, r9
mov dword [rbp + 0xe4], 0x11d0cd44
mov rcx, 0xffffffffffffffff
mov dword [rbp + 0xe8], 0xc000c28c
mov esi, r15d
mov dword [rbp + 0xec], 0xee95c24f
mov qword [rbp - 0x10], 0x20
movdqu xmmword [rbp], xmm0
mov qword [rbp - 8], r13
mov qword [rbp - 0x5c], r15
mov qword [rbp - 0x54], r15
mov dword [rbp - 0x4c], r15d
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x2c], r15
mov qword [rbp - 0x24], r15
mov dword [rbp - 0x14], r15d
mov dword [rbp - 0x60], 0x50
mov dword [rbp - 0x48], 2
mov dword [rbp - 0x44], 1
mov dword [rbp - 0x30], r15d
call qword [0x1400a2660]
mov ebx, eax
test eax, eax
jne 0x14001661d
mov ebx, dword [rsp + 0x68]
lea esi, [rax + 1]
cmp ebx, 0x800b010a
jne 0x140016678
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
mov rax, qword [0x1400c9d78]
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x68], r15d
call qword [0x1400a2660]
mov r14, rax
test rax, rax
je 0x140016678
mov rcx, qword [rax + 0x18]
add rcx, 0x78
call fcn.14000fcf0
test eax, eax
je 0x140016668
mov esi, 1
mov ebx, r15d
mov rax, qword [0x1400c9d48]
mov rcx, r14
call qword [0x1400a2660]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [0x1400c9d48]
mov rcx, r12
call qword [0x1400a2660]
jmp 0x1400166a0
mov ebx, 2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x310]
mov r14, qword [rsp + 0x318]
mov r13, qword [rsp + 0x320]
mov r12, qword [rsp + 0x328]
mov rdi, qword [rsp + 0x360]
test rcx, rcx
je 0x1400166e1
mov rax, qword [0x1400c9d40]
xor edx, edx
call qword [0x1400a2660]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400166f7
mov rax, qword [0x1400c9d38]
call qword [0x1400a2660]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140035de0
add rsp, 0x330
pop rsi
pop rbx
pop rbp
ret