Function at 0x140210d3c
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2d0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov rdi, rcx
mov qword [rsp + 0x30], rcx
lea rax, vtable.sense::DynamicMpEngineModuleBase.0
mov qword [rcx], rax
xor r15d, r15d
mov qword [rcx + 8], r15
mov r8d, 0x104
lea rdx, [rbp - 0x50]
lea rbx, str.ProgramFiles
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140210e36
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 + 0x30], ecx
call fcn.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140210f77
lea rax, [rsp + 0x30]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 4
lea rax, str.The_call_to_get_environment_variable_failed
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 0x58
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], SetCompressorInformation
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14034f80d]
call fcn.140001078
jmp 0x140210f77
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.140048750
nop
mov r8d, reloc.Cabinet.dll_CreateCompressor
lea rdx, str.Windows_DefenderMpClient.dll
lea rcx, [rsp + 0x40]
call fcn.140054efc
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14005b588
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov rsi, rax
mov r14, qword [rdi + 8]
test r14, r14
je 0x140210ea5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.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 0x140210f6c
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 + 0x30], ecx
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140210f6c
lea rax, [rsp + 0x30]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 4
lea rax, str.Failed_to_load_MpClient.dll_module
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], VarR8FromUI1
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
lea rdx, [0x1402cb810]
mov rax, r15
test rcx, rcx
je 0x140210f32
mov rdx, rcx
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140210f28
mov qword [rbp - 0x60], rdx
lea eax, [rax*2 + 2]
mov dword [rbp - 0x58], eax
mov dword [rbp - 0x54], r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x14034f7d2]
mov rcx, r10
call fcn.140001078
nop
lea rcx, [rsp + 0x40]
call fcn.1400492c0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14027a710
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret