Function at 0x1400827cc
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x14017b278]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov r14, rdx
mov rbx, rcx
xor r15d, r15d
test rdx, rdx
je 0x140082a72
cmp r15w, word [rdx]
je 0x140082a72
lea rsi, [rcx + 0x10]
mov qword [rsp + 0x48], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edi, [r15 + 1]
mov byte [rsp + 0x50], dil
cmp qword [rbx + 8], r15
jne 0x140082a36
mov r12d, 0x208
mov r8d, r12d
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14009b2d0
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_SafeArrayGetDim
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
lea r8, str.Install_Dir
lea rdx, str.SOFTWAREMcAfeePlatform
mov rcx, 0xffffffff80000002
call fcn.1400103f0
test eax, eax
jne 0x1400828b5
cmp dword [rsp + 0x40], edi
jne 0x1400828b5
lea r8, str.core_vtploader.dll
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.14009fb00
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400829c1
mov r8, r12
xor edx, edx
lea rcx, [rbp + 0x1b0]
call fcn.14009b2d0
mov r8d, r12d
lea rdx, [rbp + 0x1b0]
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400829c1
mov r8, r12
xor edx, edx
lea rcx, [rbp + 0x3c0]
call fcn.14009b2d0
xor r9d, r9d
lea r8, [rbp + 0x3c0]
mov edx, 0x104
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov r8b, r15b
lea rdx, [rbp + 0x3c0]
lea rcx, [rsp + 0x58]
call fcn.14007f12c
nop
mov r8b, r15b
lea rdx, str._vtploader.dll
lea rcx, [rsp + 0x78]
call fcn.14007f12c
nop
lea rcx, [rsp + 0x58]
call fcn.140082aa4
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.14007fc7c
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140082984
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
call fcn.140026990
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.1400a68cc
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400829c1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
call fcn.140026990
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140082a54
lea rax, [0x140189c58]
mov qword [rsp + 0x28], rax
mov eax, dword [reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x20], eax
lea r9, [0x14017b1f0]
lea r8, str.Intel_Corporation
mov edx, dword [reloc.OLEAUT32.dll_VariantCopy]
lea rcx, [rbp - 0x60]
call fcn.1400813a4
test eax, eax
je 0x140082a30
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
je 0x140082a30
lea rdx, str.ValidateModule
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
cmp qword [rbx + 8], r15
je 0x140082a5b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dil, r15b
mov byte [rsp + 0x50], r15b
mov rax, qword [rbx + 8]
mov rcx, r14
call rax
mov ebx, eax
jmp 0x140082a60
mov ebx, 2
jmp 0x140082a60
mov ebx, 5
test dil, dil
je 0x140082a6e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x140082a77
mov eax, 0x57
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.140086e90
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret