Function at 0x140015c70
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 [0x1400c7368]
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 0x1400166b3
test al, 0x50
jne 0x1400166b3
mov rax, qword [0x1400c9d60]
test rax, rax
jne 0x140015d0d
xor edx, edx
lea rcx, str.crypt32.dll
call fcn.1400113e0
mov qword [0x1400c9d60], rax
test rax, rax
je 0x140015eaa
cmp qword [0x1400c9d68], rbx
jne 0x140015d3d
lea rdx, str.CryptMsgClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d68], rax
test rax, rax
je 0x140015eaa
mov rax, qword [0x1400c9d60]
cmp qword [0x1400c9d70], rbx
jne 0x140015d6d
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d70], rax
test rax, rax
je 0x140015eaa
mov rax, qword [0x1400c9d60]
cmp qword [0x1400c9d78], rbx
jne 0x140015d9d
lea rdx, str.CertFreeCertificateContext
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d78], rax
test rax, rax
je 0x140015eaa
mov rax, qword [0x1400c9d60]
cmp qword [0x1400c9d80], rbx
jne 0x140015dcd
lea rdx, str.CertFindCertificateInStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d80], rax
test rax, rax
je 0x140015eaa
mov rax, qword [0x1400c9d60]
cmp qword [0x1400c9d88], rbx
jne 0x140015dfd
lea rdx, str.CryptMsgGetParam
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d88], rax
test rax, rax
je 0x140015eaa
mov rax, qword [0x1400c9d60]
cmp qword [0x1400c9d90], rbx
jne 0x140015e2d
lea rdx, str.CryptQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d90], rax
test rax, rax
je 0x140015eaa
mov rax, qword [0x1400c9d60]
cmp qword [0x1400c9d98], rbx
jne 0x140015e59
lea rdx, str.CertGetNameStringA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9d98], rax
test rax, rax
je 0x140015eaa
mov rax, qword [0x1400c9d60]
cmp qword [0x1400c9da0], rbx
jne 0x140015e85
lea rdx, str.CryptDecodeObjectEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9da0], rax
test rax, rax
je 0x140015eaa
mov rax, qword [0x1400c9d60]
cmp qword [0x1400c9da8], rbx
jne 0x140015eb4
lea rdx, str.CertGetIssuerCertificateFromStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9da8], rax
test rax, rax
jne 0x140015eb4
mov ebx, 0x7e
jmp 0x1400166b8
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 [0x1400c9d90]
mov dword [rsp + 0x20], r15d
call qword [0x1400a2660]
mov esi, eax
test eax, eax
jne 0x140015f1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400166b8
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400c9d88]
xor r8d, r8d
lea edx, [r9 + 6]
call qword [0x1400a2660]
mov esi, eax
test eax, eax
jne 0x140015f57
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1400166b8
mov edx, dword [rsp + 0x6c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x140015f81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, r15d
mov rcx, rdi
mov ebx, eax
jmp 0x1400166ba
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400c9d88]
mov r9, rdi
lea edx, [r8 + 6]
call qword [0x1400a2660]
mov esi, eax
test eax, eax
jne 0x140015fbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
jmp 0x1400166ba
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 [0x1400c9d80]
movups xmmword [rbp + 0x18], xmm1
call qword [0x1400a2660]
mov r12, rax
test rax, rax
jne 0x140016015
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, r15d
mov rcx, rdi
mov ebx, eax
jmp 0x1400166ba
test r14, r14
je 0x140016082
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 [0x1400c9d98]
mov rcx, r12
lea edx, [r9 + 4]
call qword [0x1400a2660]
mov r8d, 7
lea rdx, str.NVIDIA
lea rcx, [rbp + 0x100]
call fcn.140072cbc
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 0x140016698
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x68], ebx
mov rcx, rdi
call fcn.14000f800
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 0x1400161e2
nop word [rax + rax]
test esi, esi
jne 0x1400161e2
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 0x1400161d7
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 [0x1400c9da0]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x8000
call qword [0x1400a2660]
test eax, eax
je 0x1400161e2
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 [0x1400c9d80]
movups xmmword [rbp + 0x108], xmm1
call qword [0x1400a2660]
mov r14, rax
test rax, rax
je 0x1400161e2
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0xe0]
call fcn.14000f800
test eax, eax
je 0x1400161c7
mov rcx, qword [rbp + 0xe0]
add rcx, 0x1312d00
cmp qword [rsp + 0x78], rcx
setbe sil
mov rax, qword [0x1400c9d78]
mov rcx, r14
call qword [0x1400a2660]
inc ebx
cmp ebx, dword [rdi + 0x78]
jb 0x1400160c0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r15d, r15d
test esi, esi
jne 0x140016352
mov r14d, r15d
mov esi, r15d
mov ebx, r15d
mov qword [rsp + 0x60], r15
cmp dword [rdi + 0x78], r15d
jbe 0x14001632a
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 0x140016249
inc ebx
cmp ebx, dword [rdi + 0x78]
jb 0x140016210
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140016338
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 [0x1400c9da0]
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 0x14001632a
mov edx, dword [rsi + 8]
xor r8d, r8d
mov rcx, qword [rsi + 0x10]
call fcn.140011a60
mov rbx, rax
test rax, rax
je 0x14001632a
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 0x140016352
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, 0x80096005
test ebx, ebx
cmove ebx, eax
jmp 0x140016698
mov ecx, 0x23f0
call fcn.1400111a0
test eax, eax
jne 0x14001652c
mov rcx, r13
call fcn.140010e80
test eax, eax
je 0x14001652c
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0xf0], rax
mov r14d, r15d
mov dword [rbp + 0xf8], eax
mov rax, qword [0x1400c9db0]
movups xmmword [rbp + 0xe0], xmm0
test rax, rax
jne 0x1400163ba
xor edx, edx
lea rcx, str.Advapi32.dll
call fcn.1400113e0
mov qword [0x1400c9db0], rax
test rax, rax
je 0x14001651f
cmp qword [0x1400c9dd8], 0
jne 0x1400163eb
lea rdx, [0x1400a6a20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9dd8], rax
test rax, rax
je 0x14001651f
mov rax, qword [0x1400c9db0]
cmp qword [0x1400c9de0], 0
jne 0x14001641c
lea rdx, [0x1400a6a30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9de0], rax
test rax, rax
je 0x14001651f
mov rax, qword [0x1400c9db0]
cmp qword [0x1400c9df0], 0
jne 0x14001644d
lea rdx, str.QueryServiceStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9df0], rax
test rax, rax
je 0x14001651f
mov rax, qword [0x1400c9db0]
cmp qword [0x1400c9df8], 0
jne 0x140016477
lea rdx, [0x1400a6a58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9df8], rax
test rax, rax
je 0x14001651f
mov rax, qword [0x1400c9dd8]
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [0x1400a2660]
mov rsi, rax
test rax, rax
je 0x14001651a
mov rcx, rax
lea rdx, str.CryptSvc
mov rax, qword [0x1400c9de0]
mov r8d, 4
call qword [0x1400a2660]
mov rbx, rax
test rax, rax
je 0x14001650a
mov rcx, rax
lea rdx, [rbp + 0xe0]
mov rax, qword [0x1400c9df0]
call qword [0x1400a2660]
test eax, eax
je 0x1400164fa
mov ecx, dword [rbp + 0xe4]
sub ecx, 4
je 0x1400164f4
sub ecx, 1
je 0x1400164f4
sub ecx, 1
je 0x1400164f4
cmp ecx, 1
jne 0x1400164fa
mov r14d, 1
mov rax, qword [0x1400c9df8]
mov rcx, rbx
call qword [0x1400a2660]
mov rax, qword [0x1400c9df8]
mov rcx, rsi
call qword [0x1400a2660]
test r14d, r14d
jne 0x14001652c
mov esi, 1
mov ebx, r15d
jmp 0x140016698
mov rax, qword [0x1400c9e40]
test rax, rax
jne 0x140016552
xor edx, edx
lea rcx, str.wintrust.dll
call fcn.1400113e0
mov qword [0x1400c9e40], rax
test rax, rax
je 0x14001657d
mov r9, qword [0x1400c9e48]
test r9, r9
jne 0x14001658a
lea rdx, str.WinVerifyTrust
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c9e48], rax
mov r9, rax
test rax, rax
jne 0x14001658a
mov esi, r15d
mov ebx, 0x7e
jmp 0x140016698
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 0x14001663d
mov ebx, dword [rsp + 0x68]
lea esi, [rax + 1]
cmp ebx, 0x800b010a
jne 0x140016698
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
mov rax, qword [0x1400c9da8]
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x68], r15d
call qword [0x1400a2660]
mov r14, rax
test rax, rax
je 0x140016698
mov rcx, qword [rax + 0x18]
add rcx, 0x78
call fcn.14000fd10
test eax, eax
je 0x140016688
mov esi, 1
mov ebx, r15d
mov rax, qword [0x1400c9d78]
mov rcx, r14
call qword [0x1400a2660]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [0x1400c9d78]
mov rcx, r12
call qword [0x1400a2660]
jmp 0x1400166c0
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 0x140016701
mov rax, qword [0x1400c9d70]
xor edx, edx
call qword [0x1400a2660]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140016717
mov rax, qword [0x1400c9d68]
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.140035e00
add rsp, 0x330
pop rsi
pop rbx
pop rbp
ret