Function at 0x1402d3350
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 [0x1403b8c08]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov r14, rcx
test rcx, rcx
je 0x1402d3663
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1402d3663
xor edi, edi
cmp dword [reloc.WS2_32.dll_accept], edi
je 0x1402d3460
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 0x1402d342e
lea rdx, str.RtlGetNtVersionNumbers
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1402d341e
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 0x1402d3433
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1402d3433
mov ebx, 1
test r15d, r15d
je 0x1402d3458
mov eax, dword [rsp + 0xc8]
cmp eax, 6
jne 0x1402d3450
cmp dword [rsp + 0xcc], 2
jae 0x1402d3452
cmp eax, eax
jbe 0x1402d3458
mov dword [0x1403dce40], ebx
mov dword [reloc.WS2_32.dll_accept], edi
jmp 0x1402d3465
mov ebx, 1
cmp dword [0x1403dce40], 0
jne 0x1402d3475
mov eax, ebx
jmp 0x1402d3665
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 0x1402d3544
cmp eax, 0x800b0101
je 0x1402d3544
xor eax, eax
jmp 0x1402d3665
mov rcx, qword [rsp + 0x78]
call sub.WINTRUST.dll_WTHelperProvDataFromStateData
test rax, rax
je 0x1402d3619
cmp dword [rax + 0x78], 0
jbe 0x1402d3619
mov rax, qword [rax + 0x80]
test rax, rax
je 0x1402d3619
mov rax, qword [rax + 0x38]
test rax, rax
je 0x1402d3619
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1402d3619
cmp dword [rax + 0xc], 0
jbe 0x1402d3619
mov rax, qword [rcx]
test rax, rax
je 0x1402d3619
cmp dword [rax + 0xc], 0
jbe 0x1402d3619
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1402d3619
mov rax, qword [rcx]
test rax, rax
je 0x1402d3619
mov rsi, qword [rax + 8]
test rsi, rsi
je 0x1402d3619
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xd0]
call fcn.140289490
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 0x1402d3619
lea rcx, [rsp + 0xd0]
call fcn.1402d3690
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.140289490
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 0x1402d365f
mov eax, edi
jmp 0x1402d3665
xor eax, eax
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140172190
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret