Function at 0x14022d80c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
lea rax, vtable.sense::DynamicMpEngineModuleBase.0
mov qword [rcx], rax
xor r12d, r12d
mov qword [rcx + 8], r12
lea rbx, str.SOFTWAREMicrosoftWindows_Defender
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.14004a9e4
nop
lea r14, [0x14030cae0]
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.14004a9e4
nop
lea rsi, str.InstallLocation
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.14004a9e4
mov dword [rsp + 0x30], 0x4000000
mov byte [rsp + 0x28], r12b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.1401c5ecc
nop
lea rcx, [rsp + 0x78]
call fcn.14004b500
nop
lea rcx, [rbp - 0x68]
call fcn.14004b500
nop
lea rcx, [rbp - 0x48]
call fcn.14004b500
cmp byte [rsp + 0x40], r12b
je 0x14022d968
mov dword [rsp + 0x48], 0x80070490
call fcn.14004acb4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x14022da87
lea rax, [rsp + 0x48]
mov qword [rbp], rax
mov qword [rbp + 8], 4
lea rax, str.The_call_to_read_from_the_registry_the_install_location_of_MpClient.dll_failed
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], 0x9e
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], VarR8FromUI1
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], Compress
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039ecb4]
call fcn.140001158
jmp 0x14022da87
mov r8d, SafeArrayGetDim
lea rdx, str.MpClient.dll
lea rcx, [rsp + 0x58]
call fcn.14005b1c8
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140061d90
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov r15, qword [rdi + 8]
test r15, r15
je 0x14022d9c8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [rdi + 8], rsi
test rsi, rsi
jne 0x14022da87
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rsp + 0x48], ecx
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x14022da87
lea rax, [rsp + 0x48]
mov qword [rbp], rax
mov qword [rbp + 8], 4
lea rax, str.Failed_to_load_MpClient.dll_module
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], VarR8FromUI1
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov rax, r12
test rcx, rcx
je 0x14022da4e
mov r14, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14022da44
mov qword [rbp + 0x20], r14
lea eax, [rax*2 + 2]
mov dword [rbp + 0x28], eax
mov dword [rbp + 0x2c], r12d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14039ec79]
mov rcx, r10
call fcn.140001158
nop
lea rcx, [rsp + 0x58]
call fcn.14004b500
nop
mov rax, rdi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1402ae860
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret