Function at 0x140121c88
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 [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [0x140045ee0]
lea esi, [rbx + 1]
call fcn.140129990
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call sub.msvcrt.dll_memset
test rdi, rdi
jne 0x140121d1e
lea r9d, [rbx + 0x57]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
lea edx, [rdi + 0x3a]
lea rax, [0x140045fa0]
jmp 0x14012216d
xor edx, edx
mov r8d, 0x220
mov rcx, rdi
call sub.msvcrt.dll_memset
lea rdx, [rdi + 0x34]
lea rcx, [rdi + 0x38]
mov dword [rdx], 0x10
mov dword [rdi + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140121d95
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x3b
mov rcx, qword [0x140154018]
mov r9d, eax
lea rax, [0x140043890]
jmp 0x14012216d
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.1401296bc
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x140121de2
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
lea edx, [r9 + 0x2e]
lea rax, [0x140045f88]
jmp 0x14012216d
lea rcx, [0x140045fc8]
mov r8d, 6
mov rdx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140121e36
lea r9d, [rax + 0xa]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
lea edx, [r9 + 0x33]
lea rax, [0x140045fb0]
jmp 0x14012216d
cmp eax, 6
jbe 0x140121e77
mov r9d, 0x32
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
lea edx, [r9 + 0xc]
lea rax, [0x140046018]
jmp 0x14012216d
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 0x140121ec6
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x3f
jmp 0x140121d7f
call fcn.140125da0
mov dword [rdi + 0x20], eax
test eax, eax
jne 0x140121f0f
mov r9d, 0x65e
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
mov edx, 0x40
lea rax, [0x140045b08]
jmp 0x14012216d
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.1401296bc
mov qword [rdi], rax
test rax, rax
je 0x14012213e
mov edx, r14d
mov rcx, rax
mov r15d, r14d
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemWindowsDirectoryW]
mov r14d, eax
test eax, eax
je 0x14012210b
cmp eax, r15d
ja 0x140121f17
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.1401296bc
mov qword [rdi + 8], rax
test rax, rax
je 0x1401220d2
mov edx, ebp
mov rcx, rax
mov r14d, ebp
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemDirectoryW]
mov ebp, eax
test eax, eax
je 0x140122097
cmp eax, r14d
ja 0x140121f63
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x30]
mov word [rax + r14*2], bx
call fcn.1401206bc
test eax, eax
jne 0x140121ff9
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x45
jmp 0x140121d7f
lea rcx, [rdi + 0x174]
call qword [sym.imp.api_ms_win_core_timezone_l1_1_0.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
jne 0x140122046
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x46
jmp 0x140121d7f
lea rcx, [rsp + 0x30]
call fcn.140129d40
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x140122182
lea r9d, [rax + 0xe]
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
lea edx, [r9 + 0x39]
lea rax, [0x140046030]
jmp 0x14012216d
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x44
jmp 0x140121d7f
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
lea edx, [r9 + 0x35]
lea rax, [0x140046048]
jmp 0x14012216d
mov esi, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov edx, 0x42
jmp 0x140121d7f
mov r9d, 0xe
mov esi, ebx
mov ebx, r9d
mov rcx, qword [0x140154018]
lea rax, [0x140154018]
cmp rcx, rax
je 0x140122182
test byte [rcx + 0x1c], 8
je 0x140122182
lea edx, [r9 + 0x33]
lea rax, [0x140045ff8]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140046518]
mov qword [rsp + 0x20], rax
call fcn.14011834c
lea rcx, [0x140045ee0]
call fcn.1401299d0
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.14005dc70
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