Function at 0x1400919dc
Capabilities:
Check if file exists
Get common file path
Get disk size
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r14
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x1400e6870]
xor rax, rsp
mov qword [rbp + 0x380], rax
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r8, str.SpecRequiredProcessorCount
mov ebx, 4
mov dword [rcx + 8], 8
lea rax, [rsp + 0x40]
mov dword [rcx], ebx
mov rdi, rcx
mov dword [rcx + 0x10], 5
mov byte [rcx + 0x18], 0
lea rdx, str.SoftwareMicrosoftHVSI
mov qword [rsp + 0x28], rax
lea r14d, [rbx + 0xc]
and qword [rsp + 0x20], 0
mov r12, 0xffffffff80000002
mov r9d, r14d
mov dword [rsp + 0x44], ebx
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140091a7f
mov eax, dword [rsp + 0x40]
mov dword [rdi], eax
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x30], rax
lea r8, str.SpecRequiredMemoryInGB
lea rax, [rsp + 0x40]
mov r9d, r14d
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftHVSI
and qword [rsp + 0x20], 0
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140091ac8
mov eax, dword [rsp + 0x40]
mov dword [rdi + 8], eax
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x30], rax
lea r8, str.SpecRequiredFreeDiskSpaceInGB
lea rax, [rsp + 0x40]
mov r9d, r14d
mov qword [rsp + 0x28], rax
lea rdx, str.SoftwareMicrosoftHVSI
and qword [rsp + 0x20], 0
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x140091b11
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0x10], eax
and qword [rsp + 0x48], 0
mov ecx, 0xffff
and qword [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
mov dword [rdi + 4], eax
call qword [sym.imp.KERNEL32.dll_GetPhysicallyInstalledSystemMemory]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
shr rcx, 0x14
neg eax
sbb eax, eax
xor r9d, r9d
and eax, ecx
xor r8d, r8d
xor ecx, ecx
mov dword [rdi + 0xc], eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
mov ebx, 0x208
shr rcx, 0x1e
mov r8d, ebx
neg eax
sbb eax, eax
xor edx, edx
and eax, ecx
lea rcx, [rsp + 0x60]
mov dword [rdi + 0x14], eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, ebx
lea rcx, [rbp + 0x170]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, 0x103
lea rcx, [rbp + 0x170]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetWindowsDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140091cc8
mov r14d, 0x104
lea r8, [rbp + 0x170]
mov edx, r14d
lea rcx, [rsp + 0x60]
call fcn.140003680
test eax, eax
js 0x140091cea
lea r8, str.ContainersServicedWindowsDefenderApplicationGuard.wim
mov edx, r14d
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAppend]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140091cea
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
jne 0x140091ce2
lea r8, [rbp + 0x170]
mov edx, r14d
lea rcx, [rsp + 0x60]
call fcn.140003680
test eax, eax
js 0x140091cea
lea r8, str.ContainersWindowsDefenderApplicationGuard.wim
mov edx, r14d
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAppend]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140091cea
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
jne 0x140091ce2
lea r8, [rbp + 0x170]
mov edx, r14d
lea rcx, [rsp + 0x60]
call fcn.140003680
test eax, eax
js 0x140091cea
lea r8, str.ContainerImageshvsi.wim
mov edx, r14d
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAppend]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x140091cea
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop dword [rax + rax]
test eax, eax
jne 0x140091ce2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140091cea
mov byte [rdi + 0x18], 1
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400abb00
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret