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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x180154010]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor r12d, r12d
mov qword [rbp - 0x78], rcx
mov r15, rcx
mov qword [rsp + 0x70], r12
xor ecx, ecx
mov qword [rbp - 0x80], r12
mov esi, r12d
mov r13d, r12d
mov edi, r12d
mov ebx, r12d
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180025e5d
test al, 0x50
jne 0x180025e5d
mov rax, qword [0x18015b7d8]
test rax, rax
jne 0x1800254dc
lea rcx, str.crypt32.dll
call fcn.180022970
mov qword [0x18015b7d8], rax
test rax, rax
je 0x180025679
cmp qword [0x18015b550], rbx
jne 0x18002550c
lea rdx, str.CryptMsgClose
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b550], rax
test rax, rax
je 0x180025679
mov rax, qword [0x18015b7d8]
cmp qword [0x18015b558], rbx
jne 0x18002553c
lea rdx, str.CertCloseStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b558], rax
test rax, rax
je 0x180025679
mov rax, qword [0x18015b7d8]
cmp qword [0x18015b758], rbx
jne 0x18002556c
lea rdx, str.CertFreeCertificateContext
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b758], rax
test rax, rax
je 0x180025679
mov rax, qword [0x18015b7d8]
cmp qword [0x18015b7e0], rbx
jne 0x18002559c
lea rdx, str.CertFindCertificateInStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b7e0], rax
test rax, rax
je 0x180025679
mov rax, qword [0x18015b7d8]
cmp qword [0x18015b6d8], rbx
jne 0x1800255cc
lea rdx, str.CryptMsgGetParam
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b6d8], rax
test rax, rax
je 0x180025679
mov rax, qword [0x18015b7d8]
cmp qword [0x18015b6a0], rbx
jne 0x1800255fc
lea rdx, str.CryptQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b6a0], rax
test rax, rax
je 0x180025679
mov rax, qword [0x18015b7d8]
cmp qword [0x18015b718], rbx
jne 0x180025628
lea rdx, str.CertGetNameStringA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b718], rax
test rax, rax
je 0x180025679
mov rax, qword [0x18015b7d8]
cmp qword [0x18015b6b0], rbx
jne 0x180025654
lea rdx, str.CryptDecodeObjectEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b6b0], rax
test rax, rax
je 0x180025679
mov rax, qword [0x18015b7d8]
cmp qword [0x18015b728], rbx
jne 0x180025683
lea rdx, str.CertGetIssuerCertificateFromStore
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b728], rax
test rax, rax
jne 0x180025683
mov ebx, 0x7e
jmp 0x180025e62
mov qword [rsp + 0x50], r12
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, r15
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea ecx, [r9 - 1]
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov rax, qword [0x18015b6a0]
mov dword [rsp + 0x20], r12d
call qword [case.0x18002b58a.0]
mov edi, eax
test eax, eax
jne 0x1800256ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180025e62
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rax, qword [0x18015b6d8]
xor r8d, r8d
lea edx, [r9 + 6]
call qword [case.0x18002b58a.0]
mov edi, eax
test eax, eax
jne 0x180025726
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180025e62
mov edx, dword [rsp + 0x6c]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x18002574d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edi, r12d
jmp 0x180025e62
mov rcx, qword [rbp - 0x80]
lea rax, [rsp + 0x6c]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [0x18015b6d8]
mov r9, rsi
lea edx, [r8 + 6]
call qword [case.0x18002b58a.0]
mov edi, eax
test eax, eax
jne 0x180025785
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180025e62
movups xmm0, xmmword [rsi + 8]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], r12
mov r9d, 0xb0000
movaps xmmword [rbp + 0x40], xmm0
xor r8d, r8d
movups xmm1, xmmword [rsi + 0x18]
mov qword [rsp + 0x20], rax
mov edx, 0x10001
mov rax, qword [0x18015b7e0]
movups xmmword [rbp + 0x18], xmm1
call qword [case.0x18002b58a.0]
mov r13, rax
test rax, rax
jne 0x1800257db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edi, r12d
jmp 0x180025e62
test r14, r14
je 0x180025848
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 [0x18015b718]
mov rcx, r13
lea edx, [r9 + 4]
call qword [case.0x18002b58a.0]
mov r8d, 7
lea rdx, str.NVIDIA
lea rcx, [rbp + 0x100]
call fcn.180092ad0
mov ecx, r12d
test eax, eax
sete cl
mov dword [r14], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x180025e62
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.180026220
mov rcx, qword [rsp + 0x78]
test eax, eax
cmove rcx, r12
mov r12, qword [rsp + 0x70]
xor r14d, r14d
mov qword [rsp + 0x78], rcx
xor edi, edi
mov qword [rsp + 0x60], r14
cmp dword [rsi + 0x78], edi
jbe 0x1800259a4
nop dword [rax]
test r14d, r14d
jne 0x1800259a4
lea rcx, [rdi + rdi*2]
lea r15, [rcx*8]
mov rcx, qword [rsi + 0x80]
lea rdx, str.1.2.840.113549.1.9.6
mov rcx, qword [r15 + rcx]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x180025999
mov rax, qword [rsi + 0x80]
mov edx, 0x1f4
mov ecx, 0x10001
mov r8, qword [r15 + rax + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor r15d, r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, dword [r8]
mov rax, qword [0x18015b6b0]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x8000
call qword [case.0x18002b58a.0]
test eax, eax
je 0x1800259a4
mov rax, qword [rsp + 0x60]
mov r9d, 0xb0000
mov qword [rsp + 0x28], r15
xor r8d, r8d
mov edx, 0x10001
mov rcx, r12
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 [0x18015b7e0]
movups xmmword [rbp + 0x108], xmm1
call qword [case.0x18002b58a.0]
mov r15, rax
test rax, rax
je 0x1800259a4
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0xe0]
call fcn.180026220
test eax, eax
je 0x180025989
mov rcx, qword [rbp + 0xe0]
add rcx, 0x1312d00
cmp qword [rsp + 0x78], rcx
setbe r14b
mov rax, qword [0x18015b758]
mov rcx, r15
call qword [case.0x18002b58a.0]
inc edi
cmp edi, dword [rsi + 0x78]
jb 0x180025880
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r12d, r12d
test r14d, r14d
jne 0x180025b09
mov r15d, r12d
mov qword [rsp + 0x60], r12
mov edi, r12d
cmp dword [rsi + 0x78], r12d
jbe 0x180025adc
mov rcx, qword [rsi + 0x80]
lea rdx, str.1.3.6.1.4.1.311.3.3.1
mov r14d, edi
lea rax, [r14 + r14*2]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1800259ff
inc edi
cmp edi, dword [rsi + 0x78]
jb 0x1800259d0
jmp 0x180025adc
mov rax, qword [rsi + 0x80]
lea rdx, [r14 + r14*2]
mov ecx, 0x10001
mov r8, qword [rax + rdx*8 + 0x10]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov edx, 0x21
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, dword [r8]
mov rax, qword [0x18015b6b0]
mov r8, qword [r8 + 8]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x8000
call qword [case.0x18002b58a.0]
test eax, eax
je 0x180025adc
mov rcx, qword [rsp + 0x60]
xor r8d, r8d
mov edx, dword [rcx + 8]
mov rcx, qword [rcx + 0x10]
call fcn.180026570
mov rdi, rax
test rax, rax
je 0x180025adc
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]
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, [rdi + 2]
cmp rcx, rax
setbe r15b
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15d, r15d
jne 0x180025b09
mov edi, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x180025e62
mov ebx, 0x80096005
jmp 0x180025e62
mov ecx, 0x23f0
call fcn.180028c10
mov r15, qword [rbp - 0x78]
test eax, eax
jne 0x180025cd5
mov rcx, r15
call fcn.180023ea0
test eax, eax
je 0x180025cd5
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp + 0xf0], rax
mov r15d, r12d
mov dword [rbp + 0xf8], eax
mov rax, qword [0x18015b7b8]
movups xmmword [rbp + 0xe0], xmm0
test rax, rax
jne 0x180025b73
lea rcx, str.Advapi32.dll
call fcn.180022970
mov qword [0x18015b7b8], rax
test rax, rax
je 0x180025cc4
cmp qword [0x18015b7c8], 0
jne 0x180025ba4
lea rdx, str.OpenSCManagerW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b7c8], rax
test rax, rax
je 0x180025cc4
mov rax, qword [0x18015b7b8]
cmp qword [0x18015b780], 0
jne 0x180025bd5
lea rdx, str.OpenServiceW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b780], rax
test rax, rax
je 0x180025cc4
mov rax, qword [0x18015b7b8]
cmp qword [0x18015b6e8], 0
jne 0x180025c06
lea rdx, str.QueryServiceStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b6e8], rax
test rax, rax
je 0x180025cc4
mov rax, qword [0x18015b7b8]
cmp qword [0x18015b730], 0
jne 0x180025c30
lea rdx, str.CloseServiceHandle
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b730], rax
test rax, rax
je 0x180025cc4
mov rax, qword [0x18015b7c8]
xor edx, edx
xor ecx, ecx
mov r8d, 0x80000000
call qword [case.0x18002b58a.0]
mov r14, rax
test rax, rax
je 0x180025cbf
mov rcx, rax
lea rdx, str.CryptSvc
mov rax, qword [0x18015b780]
mov r8d, 4
call qword [case.0x18002b58a.0]
mov rdi, rax
test rax, rax
je 0x180025caf
mov rcx, rax
lea rdx, [rbp + 0xe0]
mov rax, qword [0x18015b6e8]
call qword [case.0x18002b58a.0]
test eax, eax
je 0x180025c9f
mov ecx, dword [rbp + 0xe4]
add ecx, 0xfffffffc
cmp ecx, 3
setbe r15b
mov rax, qword [0x18015b730]
mov rcx, rdi
call qword [case.0x18002b58a.0]
mov rax, qword [0x18015b730]
mov rcx, r14
call qword [case.0x18002b58a.0]
test r15d, r15d
jne 0x180025cd1
mov edi, 1
mov ebx, r12d
jmp 0x180025e62
mov r15, qword [rbp - 0x78]
mov rcx, qword [0x18015b7a8]
test rcx, rcx
jne 0x180025cfc
lea rcx, str.wintrust.dll
call fcn.180022970
mov qword [0x18015b7a8], rax
mov rcx, rax
test rax, rax
je 0x180025d21
mov rax, qword [0x18015b7d0]
test rax, rax
jne 0x180025d2e
lea rdx, str.WinVerifyTrust
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18015b7d0], rax
test rax, rax
jne 0x180025d2e
mov edi, r12d
mov ebx, 0x7e
jmp 0x180025e62
mov edi, r12d
mov r14d, r12d
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rbp - 0x10]
mov qword [rbp - 0x1c], r12
or dword [rbp - 0x18], 0x1000
lea r8, [rbp - 0x60]
mov qword [rbp - 0x38], rcx
lea rdx, [rbp + 0xe0]
xorps xmm0, xmm0
mov dword [rbp + 0xe0], 0xaac56b
mov rcx, 0xffffffffffffffff
mov dword [rbp + 0xe4], 0x11d0cd44
mov dword [rbp + 0xe8], 0xc000c28c
mov dword [rbp + 0xec], 0xee95c24f
mov qword [rbp - 0x10], 0x20
movdqu xmmword [rbp], xmm0
mov qword [rbp - 8], r15
mov qword [rbp - 0x5c], r12
mov qword [rbp - 0x54], r12
mov dword [rbp - 0x4c], r12d
mov qword [rbp - 0x40], 1
mov qword [rbp - 0x2c], r12
mov qword [rbp - 0x24], r12
mov dword [rbp - 0x14], r12d
mov dword [rbp - 0x60], 0x50
mov dword [rbp - 0x48], 2
mov dword [rbp - 0x44], 1
mov dword [rbp - 0x30], r12d
call qword [case.0x18002b58a.0]
test eax, eax
je 0x180025dfb
inc r14d
mov ebx, eax
cmp r14d, 1
jae 0x180025e00
mov rax, qword [0x18015b7d0]
jmp 0x180025d40
mov edi, 1
cmp ebx, 0x800b010a
jne 0x180025e62
mov rcx, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
mov rax, qword [0x18015b728]
xor r8d, r8d
mov rdx, r13
mov dword [rsp + 0x68], r12d
call qword [case.0x18002b58a.0]
mov r14, rax
test rax, rax
je 0x180025e62
mov rcx, qword [rax + 0x18]
add rcx, 0x78
call fcn.180024250
test eax, eax
je 0x180025e4b
mov edi, 1
mov ebx, r12d
mov rax, qword [0x18015b758]
mov rcx, r14
call qword [case.0x18002b58a.0]
jmp 0x180025e62
mov ebx, 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r13, r13
je 0x180025e80
mov rax, qword [0x18015b758]
mov rcx, r13
call qword [case.0x18002b58a.0]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x180025e99
mov rax, qword [0x18015b558]
xor edx, edx
call qword [case.0x18002b58a.0]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x180025eaf
mov rax, qword [0x18015b550]
call qword [case.0x18002b58a.0]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.18003f930
mov rbx, qword [rsp + 0x360]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret