Function at 0x14002cea0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x4e0
mov rax, qword [0x1400820d8]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov r14, rcx
test rcx, rcx
je 0x14002d1b3
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14002d1b3
xor edi, edi
cmp dword [0x1400820a0], edi
je 0x14002cfb0
mov dword [rsp + 0xc8], edi
mov dword [rsp + 0xcc], edi
mov dword [rsp + 0xb0], edi
mov r15d, edi
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14002cf7e
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002cf6e
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0xcc]
lea rcx, [rsp + 0xc8]
call rax
movzx eax, word [rsp + 0xb0]
mov dword [rsp + 0xb0], eax
mov ebx, 1
mov r15d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002cf83
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14002cf83
mov ebx, 1
test r15d, r15d
je 0x14002cfa8
mov eax, dword [rsp + 0xc8]
cmp eax, 6
jne 0x14002cfa0
cmp dword [rsp + 0xcc], 2
jae 0x14002cfa2
cmp eax, eax
jbe 0x14002cfa8
mov dword [0x1400850b0], ebx
mov dword [0x1400820a0], edi
jmp 0x14002cfb5
mov ebx, 1
cmp dword [0x1400850b0], 0
jne 0x14002cfc5
mov eax, ebx
jmp 0x14002d1b5
mov qword [rsp + 0x90], 0x20
mov qword [rsp + 0x98], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xb8], 0xaac56b
mov dword [rsp + 0xbc], 0x11d0cd44
mov dword [rsp + 0xc0], 0xc000c28c
mov dword [rsp + 0xc4], 0xee95c24f
mov qword [rsp + 0x40], 0x50
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x70], 1
mov eax, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 2
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], rdi
or eax, 0x1080
mov dword [rsp + 0x88], eax
mov dword [rsp + 0x8c], edi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x68], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xb8]
xor ecx, ecx
call sub.WINTRUST.dll_WinVerifyTrust
test eax, eax
je 0x14002d094
cmp eax, 0x800b0101
je 0x14002d094
xor eax, eax
jmp 0x14002d1b5
mov rcx, qword [rsp + 0x78]
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
test rax, rax
je 0x14002d169
cmp dword [rax + 0x78], 0
jbe 0x14002d169
mov rax, qword [rax + 0x80]
test rax, rax
je 0x14002d169
mov rax, qword [rax + 0x38]
test rax, rax
je 0x14002d169
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14002d169
cmp dword [rax + 0xc], 0
jbe 0x14002d169
mov rax, qword [rcx]
test rax, rax
je 0x14002d169
cmp dword [rax + 0xc], 0
jbe 0x14002d169
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14002d169
mov rax, qword [rcx]
test rax, rax
je 0x14002d169
mov rsi, qword [rax + 8]
test rsi, rsi
je 0x14002d169
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xd0]
call fcn.140035530
mov dword [rsp + 0x28], 0x200
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CertGetNameStringW]
dec eax
cmp eax, 0x1fe
ja 0x14002d169
lea rcx, [rsp + 0xd0]
call fcn.14002d1e0
test eax, eax
cmovne edi, ebx
mov dword [rsp + 0x30], edi
mov rbx, qword [rsp + 0x78]
xor edx, edx
lea r8d, [rdx + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140035530
mov dword [rsp + 0x40], 0x50
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x70], 2
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xb8]
xor ecx, ecx
call sub.WINTRUST.dll_WinVerifyTrust
jmp 0x14002d1af
mov eax, edi
jmp 0x14002d1b5
xor eax, eax
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140030ed0
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret