Function at 0x1400d8e04
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 [0x1401543b0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, str.AsrpInitSystemInformation
lea esi, [rbx + 1]
call fcn.140008368
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
test rdi, rdi
jne 0x1400d8e95
lea r9d, [rbx + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
lea edx, [rdi + 0x3a]
lea rax, str.pSystemInfo
jmp 0x1400d92e4
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_1.dll_GetComputerNameW]
test eax, eax
jne 0x1400d8f0c
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x3b
mov rcx, qword [0x140154180]
mov r9d, eax
lea rax, str.GetLastError___
jmp 0x1400d92e4
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.1400ddeec
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400d8f59
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
lea edx, [r9 + 0x2e]
lea rax, str.pSystemInfo__Platform
jmp 0x1400d92e4
mov r8d, 6
lea rcx, str.PROCESSOR_ARCHITECTURE
mov rdx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1400d8fad
lea r9d, [rax + 0xa]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
lea edx, [r9 + 0x33]
lea rax, str.ERROR_BAD_ENVIRONMENT
jmp 0x1400d92e4
cmp eax, 6
jbe 0x1400d8fee
mov r9d, 0x32
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
lea edx, [r9 + 0xc]
lea rax, str.ERROR_NOT_SUPPORTED
jmp 0x1400d92e4
lea rcx, [rdi + 0x58]
mov dword [rcx], 0x11c
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetVersionExW]
test eax, eax
jne 0x1400d903d
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x3f
jmp 0x1400d8ef6
call fcn.1400d4688
mov dword [rdi + 0x20], eax
test eax, eax
jne 0x1400d9086
mov r9d, 0x65e
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
mov edx, 0x40
lea rax, str.ERROR_UNSUPPORTED_TYPE
jmp 0x1400d92e4
mov ebp, 0x104
mov r14d, ebp
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoTaskMemFree]
lea ecx, [r14*2 + 2]
mov qword [rdi], rbx
call fcn.1400ddeec
mov qword [rdi], rax
test rax, rax
je 0x1400d92b5
mov edx, r14d
mov r15d, r14d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemWindowsDirectoryW]
mov r14d, eax
test eax, eax
je 0x1400d9282
cmp eax, r15d
ja 0x1400d908e
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_1.dll_CoTaskMemFree]
lea ecx, [rbp*2 + 2]
mov qword [rdi + 8], rbx
call fcn.1400ddeec
mov qword [rdi + 8], rax
test rax, rax
je 0x1400d9249
mov edx, ebp
mov r14d, ebp
mov rcx, rax
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemDirectoryW]
mov ebp, eax
test eax, eax
je 0x1400d920e
cmp eax, r14d
ja 0x1400d90da
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x30]
mov word [rax + r14*2], bx
call fcn.1400d7860
test eax, eax
jne 0x1400d9170
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x45
jmp 0x1400d8ef6
lea rcx, [rdi + 0x174]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
jne 0x1400d91bd
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x46
jmp 0x1400d8ef6
lea rcx, [rsp + 0x30]
call fcn.1400dd9fc
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400d92f9
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
lea edx, [r9 + 0x39]
lea rax, str.pSystemInfo__SystemPath
jmp 0x1400d92e4
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x44
jmp 0x1400d8ef6
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
lea edx, [r9 + 0x35]
lea rax, str.pSystemInfo__BootSysDirectory
jmp 0x1400d92e4
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x42
jmp 0x1400d8ef6
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154180]
lea rax, [0x140154180]
cmp rcx, rax
je 0x1400d92f9
test byte [rcx + 0x1c], 8
je 0x1400d92f9
lea edx, [r9 + 0x33]
lea rax, str.pSystemInfo__BootWinDirectory
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400ef890]
mov qword [rsp + 0x20], rax
call fcn.1400cc0d8
lea rcx, str.AsrpInitSystemInformation
call fcn.1400084a8
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001ff30
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