Function at 0x180074870
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 [0x180143158]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov r14, rcx
test rcx, rcx
je 0x180074b83
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180074b83
xor edi, edi
cmp dword [0x180143230], edi
je 0x180074980
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 0x18007494e
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18007493e
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 0x180074953
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x180074953
mov ebx, 1
test r15d, r15d
je 0x180074978
mov eax, dword [rsp + 0xc8]
cmp eax, 6
jne 0x180074970
cmp dword [rsp + 0xcc], 2
jae 0x180074972
cmp eax, eax
jbe 0x180074978
mov dword [0x1801547f0], ebx
mov dword [0x180143230], edi
jmp 0x180074985
mov ebx, 1
cmp dword [0x1801547f0], 0
jne 0x180074995
mov eax, ebx
jmp 0x180074b85
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 0x180074a64
cmp eax, 0x800b0101
je 0x180074a64
xor eax, eax
jmp 0x180074b85
mov rcx, qword [rsp + 0x78]
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
test rax, rax
je 0x180074b39
cmp dword [rax + 0x78], 0
jbe 0x180074b39
mov rax, qword [rax + 0x80]
test rax, rax
je 0x180074b39
mov rax, qword [rax + 0x38]
test rax, rax
je 0x180074b39
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x180074b39
cmp dword [rax + 0xc], 0
jbe 0x180074b39
mov rax, qword [rcx]
test rax, rax
je 0x180074b39
cmp dword [rax + 0xc], 0
jbe 0x180074b39
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x180074b39
mov rax, qword [rcx]
test rax, rax
je 0x180074b39
mov rsi, qword [rax + 8]
test rsi, rsi
je 0x180074b39
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xd0]
call fcn.18009b770
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 0x180074b39
lea rcx, [rsp + 0xd0]
call fcn.180074be0
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.18009b770
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 0x180074b7f
mov eax, edi
jmp 0x180074b85
xor eax, eax
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.180050f90
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret