Function at 0x1400ef1ec
Capabilities:
Check os version
Get common file path
Get hostname
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x14016b400]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, str.AsrpInitSystemInformation
lea esi, [rbx + 1]
call fcn.140029428
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
test rdi, rdi
jne 0x1400ef27d
lea r9d, [rbx + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
lea edx, [rdi + 0x3a]
lea rax, str.pSystemInfo
jmp 0x1400ef6cc
xor edx, edx
mov r8d, 0x220
mov rcx, rdi
call sub.msvcrt.dll_memset
lea rdx, [rdi + 0x34]
mov dword [rdi + 0x30], esi
lea rcx, [rdi + 0x38]
mov dword [rdx], 0x10
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetComputerNameW]
test eax, eax
jne 0x1400ef2f4
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, 0x3b
mov rcx, qword [section..data]
mov r9d, eax
lea rax, str.GetLastError___
jmp 0x1400ef6cc
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.1400293f0
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400ef341
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
lea edx, [r9 + 0x2e]
lea rax, str.pSystemInfo__Platform
jmp 0x1400ef6cc
mov r8d, 6
lea rcx, str.PROCESSOR_ARCHITECTURE
mov rdx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400ef395
lea r9d, [rax + 0xa]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
lea edx, [r9 + 0x33]
lea rax, str.ERROR_BAD_ENVIRONMENT
jmp 0x1400ef6cc
cmp eax, 6
jbe 0x1400ef3d6
mov r9d, 0x32
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
lea edx, [r9 + 0xc]
lea rax, str.ERROR_NOT_SUPPORTED
jmp 0x1400ef6cc
lea rcx, [rdi + 0x58]
mov dword [rcx], 0x11c
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
test eax, eax
jne 0x1400ef425
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, 0x3f
jmp 0x1400ef2de
call fcn.14002b310
mov dword [rdi + 0x20], eax
test eax, eax
jne 0x1400ef46e
mov r9d, 0x65e
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
mov edx, 0x40
lea rax, str.ERROR_UNSUPPORTED_TYPE
jmp 0x1400ef6cc
mov ebp, 0x104
mov r14d, ebp
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
lea ecx, [r14*2 + 2]
mov qword [rdi], rbx
call fcn.1400293f0
mov qword [rdi], rax
test rax, rax
je 0x1400ef69d
mov edx, r14d
mov r15d, r14d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemWindowsDirectoryW]
mov r14d, eax
test eax, eax
je 0x1400ef66a
cmp eax, r15d
ja 0x1400ef476
mov rax, qword [rdi]
mov word [rax + r15*2], bx
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
lea ecx, [rbp*2 + 2]
mov qword [rdi + 8], rbx
call fcn.1400293f0
mov qword [rdi + 8], rax
test rax, rax
je 0x1400ef631
mov edx, ebp
mov r14d, ebp
mov rcx, rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
mov ebp, eax
test eax, eax
je 0x1400ef5f6
cmp eax, r14d
ja 0x1400ef4c2
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x30]
mov word [rax + r14*2], bx
call fcn.1400299dc
test eax, eax
jne 0x1400ef558
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, 0x45
jmp 0x1400ef2de
lea rcx, [rdi + 0x174]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
jne 0x1400ef5a5
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, 0x46
jmp 0x1400ef2de
lea rcx, [rsp + 0x30]
call fcn.140028f70
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400ef6e1
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
lea edx, [r9 + 0x39]
lea rax, str.pSystemInfo__SystemPath
jmp 0x1400ef6cc
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, 0x44
jmp 0x1400ef2de
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
lea edx, [r9 + 0x35]
lea rax, str.pSystemInfo__BootSysDirectory
jmp 0x1400ef6cc
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, 0x42
jmp 0x1400ef2de
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400ef6e1
test byte [rcx + 0x1c], 8
je 0x1400ef6e1
lea edx, [r9 + 0x33]
lea rax, str.pSystemInfo__BootWinDirectory
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401053e0]
mov qword [rsp + 0x20], rax
call fcn.1400e4514
lea rcx, str.AsrpInitSystemInformation
call fcn.140027f60
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400321c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret