Function at 0x140020cd4
Capabilities:
Get common file path
Get comspec environment variable
Get hostname
Get keyboard layout
Get session user name
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x2f0
mov r12, rdx
movaps xmmword [rax - 0x48], xmm6
mov rbx, rcx
xor r15d, r15d
mov edx, 0x104
mov word [rbp - 0x30], r15w
lea rcx, [rsp + 0x30]
mov r14, r8
call fcn.1400082f0
mov r13, qword [r12]
lea rsi, str.ERROR
mov edi, r15d
mov rcx, qword [rsi]
mov rdx, r13
call fcn.14002952c
mov r8d, 1
test eax, eax
je 0x140020d4e
add edi, r8d
lea rax, [0x1400c8058]
add rsi, 8
cmp rsi, rax
jl 0x140020d26
cmp edi, 0x61
je 0x14006809a
cmp edi, 0x60
ja case.0x140020d70.88
lea rdx, [0x140000000]
movsxd rax, edi
mov ecx, dword [rdx + rax*4 + 0x20de4]
add rcx, rdx
jmp rcx
lea rdx, [rbx + 0x190]
mov rcx, r14
call fcn.140005c40
lea rcx, [rsp + 0x30]
call fcn.140008a8c
lea r11, [rsp + 0x2f0]
mov eax, r15d
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [0x1400b6580]
mov rcx, r14
call fcn.140020f68
jmp case.0x140020d70.88
lea rdx, [rbx + 0x170]
jmp 0x140020d79
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 1
mov dword [r14 + 0x10], 1
jmp case.0x140020d70.88
lea rdx, [0x1400de038]
lea rcx, [rbp - 0x58]
call fcn.14000d54c
mov rdx, r12
lea rcx, [rbp - 0x58]
call fcn.140005cac
xor r9d, r9d
mov dword [rbp + 0x248], r15d
lea r8, [rbp + 0x248]
lea rdx, [rbp - 0x58]
call fcn.140021530
test rax, rax
jne 0x1400680db
or r15d, 0xffffffff
jmp 0x1400680e6
mov rdx, rax
mov rcx, r14
call fcn.14000d76c
lea rcx, [rbp - 0x58]
jmp 0x1400681fe
lea rdx, [0x1400de094]
jmp 0x140020db5
lea rdx, [0x1400c53d8]
jmp 0x140020db5
lea rdx, [0x1400de098]
jmp 0x140020db5
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
call fcn.140001d90
mov ebx, dword [rax + 0x1c]
jmp 0x140068131
mov ebx, dword [rbx + 0x244]
mov rcx, r14
call fcn.14000fd20
mov dword [r14], ebx
jmp 0x140020dd7
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
call fcn.140001d90
mov rcx, r14
lea rdx, [rax + 0x28]
call fcn.14000d76c
nop
jmp case.0x140020d70.88
lea rcx, [rsp + 0x50]
call qword [0x1400b5490]
movzx r8d, word [rsp + 0x5e]
lea rdx, str._.3d
jmp 0x14006818a
mov r8d, r15d
lea rdx, [0x1400dd320]
lea rcx, [rbp - 0x30]
call fcn.140024720
jmp 0x1400681b0
lea rdx, [rbp + 0x238]
mov dword [rbp + 0x238], 0x104
lea rcx, [rbp - 0x30]
call qword [0x1400b5100]
lea rdx, [rbp - 0x30]
jmp 0x140020db5
lea rcx, [rbp + 0x248]
call fcn.14009aedc
lea r8, [0x1400de0ac]
jmp 0x1400681e1
lea rcx, [rbp + 0x248]
call fcn.14009aedc
lea r8, [0x1400de0d4]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14009ae14
mov rdx, rax
mov rcx, r14
call fcn.140005c40
lea rcx, [rsp + 0x50]
call fcn.140008a8c
nop
jmp case.0x140020d70.88
lea rcx, [rbp + 0x248]
call fcn.14009aedc
lea r8, [0x1400de0b4]
jmp 0x1400681e1
lea rcx, [rbp + 0x248]
call fcn.14009aedc
lea r8, [0x1400de0bc]
jmp 0x1400681e1
lea rcx, [rbp + 0x248]
call fcn.14009aedc
lea r8, [0x1400dd320]
jmp 0x1400681e1
lea rcx, [rbp + 0x248]
call fcn.14009aedc
lea r8, [0x1400de0c4]
jmp 0x1400681e1
lea rcx, [rbp + 0x248]
call fcn.14009aedc
lea r8, [0x1400de0cc]
jmp 0x1400681e1
lea rcx, [rbp + 0x248]
call fcn.14009aedc
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14009ae8c
test rax, rax
je 0x140068180
mov r8d, dword [rax + 0x18]
inc r8d
jmp 0x140068183
mov ecx, 0x26
jmp 0x1400682af
mov ecx, 7
lea rdx, [rsp + 0x30]
call fcn.14007c9ac
jmp 0x1400682c5
lea rcx, [rsp + 0x30]
call fcn.140003808
lea rdx, [rsp + 0x30]
jmp 0x140020d79
mov ecx, 0x2b
jmp 0x1400682af
mov ecx, 5
jmp 0x1400682af
mov ecx, 0x23
jmp 0x1400682af
mov ecx, 0x19
jmp 0x1400682af
mov ecx, 0x2e
jmp 0x1400682af
mov ecx, 0x1f
jmp 0x1400682af
mov ecx, 0x17
jmp 0x1400682af
mov ecx, 0x16
jmp 0x1400682af
mov ecx, 0x18
jmp 0x1400682af
mov ecx, 0x1c
jmp 0x1400682af
mov ecx, 0x1a
jmp 0x1400682af
mov ecx, 0x10
jmp 0x1400682af
mov ecx, 6
jmp 0x1400682af
mov ecx, 2
jmp 0x1400682af
mov ecx, 0xb
jmp 0x1400682af
lea rdx, [rbp + 0x238]
mov dword [rbp + 0x238], 0x104
lea rcx, [rbp - 0x30]
call qword [0x1400b55e8]
jmp 0x1400681b0
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [0x1400b55f0]
test eax, eax
je case.0x140020d70.88
jmp 0x1400681b0
cmp byte [0x1400f045a], r15b
je 0x1400683bb
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
call fcn.14009ad2c
mov edx, 0x104
lea rcx, [rbp - 0x30]
call rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400681b0
call qword [0x1400b5320]
jmp 0x1400681b0
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [0x1400b55d0]
jmp 0x1400681b0
mov rcx, r14
call fcn.14000fd20
mov dword [r14], r15d
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 6
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 9
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 5
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 0xa
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 3
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 2
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 7
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 8
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 4
jmp 0x140020dd7
cmp byte [0x1400f03ac], r8b
jmp 0x1400684a3
cmp byte [0x1400f0e9d], r8b
mov ebx, r15d
sete bl
jmp 0x1400684bd
mov eax, dword [0x1400f04a0]
mov ebx, r15d
add eax, 0xfffffffd
cmp eax, r8d
setbe bl
mov rcx, r14
call fcn.14000fd20
mov dword [r14 + 0x10], 1
mov dword [r14], ebx
jmp case.0x140020d70.88
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 0x40
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 0x41
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 0x42
jmp 0x140020dd7
mov rcx, r14
call fcn.14000fd20
mov dword [r14], 0x43
jmp 0x140020dd7
lea rdx, [rbx + 0x150]
jmp 0x140020d79
mov edx, dword [rbx + 0x1c4]
call fcn.140077660
mov ebx, eax
jmp 0x140068131
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [0x1400b5640]
jmp 0x1400681b0
movzx eax, word [0x1400f045c]
test eax, eax
je 0x14006858d
cmp eax, 6
je 0x140068581
cmp eax, 9
lea rdx, str.UNKNOWN
lea rcx, [0x1400de0f8]
cmove rdx, rcx
jmp 0x140020db5
lea rdx, str.IA64
jmp 0x140020db5
lea rdx, [0x1400de0e0]
jmp 0x140020db5
xor ecx, ecx
mov eax, 0x80000001
cpuid
bt edx, 0x1d
lea rcx, [0x1400de0f8]
lea rdx, [0x1400de0e0]
cmovae rcx, rdx
mov rdx, rcx
jmp 0x140020db5
lea rdx, str.WIN32_NT
jmp 0x140020db5
cmp byte [0x1400f0454], r8b
jne 0x1400685e1
lea rdx, str.WIN_10
jmp 0x140020db5
cmp byte [0x1400f0458], r8b
jne 0x1400685f6
lea rdx, str.WIN_2019
jmp 0x140020db5
cmp byte [0x1400f0456], r8b
jne 0x14006860b
lea rdx, str.WIN_2016
jmp 0x140020db5
cmp byte [0x1400f0450], r8b
jne 0x140068620
lea rdx, str.WIN_81
jmp 0x140020db5
cmp byte [0x1400f0452], r8b
jne 0x140068635
lea rdx, str.WIN_2012R2
jmp 0x140020db5
cmp byte [0x1400f044e], r8b
jne 0x14006864a
lea rdx, str.WIN_2012
jmp 0x140020db5
cmp byte [0x1400f044c], r8b
jne 0x14006865f
lea rdx, str.WIN_8
jmp 0x140020db5
cmp byte [0x1400f044a], r8b
jne 0x140068674
lea rdx, str.WIN_2008R2
jmp 0x140020db5
cmp byte [0x1400f0448], r8b
jne 0x140068689
lea rdx, str.WIN_7
jmp 0x140020db5
cmp byte [0x1400f0446], r8b
jne 0x14006869e
lea rdx, str.WIN_2008
jmp 0x140020db5
cmp byte [0x1400f0444], r8b
jne 0x1400686b3
lea rdx, str.WIN_VISTA
jmp 0x140020db5
cmp byte [0x1400f0442], r8b
jne 0x1400686c8
lea rdx, str.WIN_2003
jmp 0x140020db5
cmp byte [0x1400f0440], r8b
jne 0x1400686ef
cmp byte [0x1400f045e], r15b
lea rdx, str.WIN_XPe
lea rax, str.WIN_XP
cmove rdx, rax
jmp 0x140020db5
lea rdx, str.UNKNOWN
jmp 0x140020db5
mov ebx, dword [0x1400f0418]
jmp 0x140068131
lea rdx, [0x1400f0420]
jmp 0x140020d79
lea rax, [rbp - 0x30]
mov r9d, 0x104
lea r8, str.InstallLanguage
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlNlsLanguage
mov rcx, 0xffffffff80000002
call fcn.140004e54
jmp 0x1400681b0
lea rax, [rbp - 0x30]
mov r9d, 0x104
lea r8, str.SchemeLangID
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelAppearance
mov rcx, 0xffffffff80000001
call fcn.140004e54
movzx ecx, word [rbp - 0x30]
lea rdx, [rbp - 0x30]
mov r8d, 4
mov dword [rbp + 0x238], ecx
call fcn.14000d5dc
jmp 0x1400681b0
lea rcx, [rbp - 0x58]
call qword [0x1400b5d70]
lea rdx, [rbp - 0x58]
jmp 0x140020db5
lea rcx, [rbp - 0x30]
call fcn.14009ad7c
jmp 0x1400681b0
mov ecx, r8d
jmp 0x1400687b2
mov ecx, 4
lea rdx, [rbp - 0x78]
call fcn.14007c8ac
lea rdx, [rbp - 0x78]
jmp 0x140020db5
mov ecx, 2
jmp 0x1400687b2
mov ecx, 3
jmp 0x1400687b2
call qword [0x1400b5ca0]
mov rcx, rax
lea rdx, [rsp + 0x78]
call qword [0x1400b5dd0]
mov ebx, dword [rbp - 0x80]
jmp 0x140068131
call qword [0x1400b5ca0]
mov rcx, rax
lea rdx, [rsp + 0x78]
call qword [0x1400b5dd0]
mov ebx, dword [rbp - 0x7c]
jmp 0x140068131
call qword [0x1400b5ca0]
mov rcx, rax
mov rsi, rax
call qword [0x1400b5ec0]
mov edx, 0xc
jmp 0x14006883a
call qword [0x1400b5ca0]
mov rcx, rax
mov rsi, rax
call qword [0x1400b5ec0]
mov edx, 0x74
mov rcx, rax
mov rdi, rax
call qword [0x1400b5198]
mov rcx, r14
mov ebx, eax
call fcn.14000fd20
mov rdx, rdi
mov dword [r14 + 0x10], 1
mov rcx, rsi
mov dword [r14], ebx
call qword [0x1400b5cd8]
nop
jmp case.0x140020d70.88
lea rcx, str.COMSPEC
jmp 0x14006887d
lea rcx, str.USERDNSDOMAIN
lea rdx, [rbp - 0x30]
mov r8d, 0x104
call qword [0x1400b5588]
jmp 0x1400681b0
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [0x1400b5478]
lea rcx, [rbp - 0x30]
call fcn.140023750
jmp 0x1400681b0
lea rcx, str.USERPROFILE
jmp 0x14006887d
lea rcx, str.HOMEDRIVE
jmp 0x14006887d
lea rcx, str.HOMEPATH
jmp 0x14006887d
lea rcx, str.HOMESHARE
jmp 0x14006887d
lea rcx, str.LOGONSERVER
jmp 0x14006887d
lea rcx, str.USERDOMAIN
jmp 0x14006887d
lea rdx, [rbx + 0x248]
jmp 0x140020d79
call qword [0x1400b55f8]
mov eax, eax
xorps xmm6, xmm6
mov rcx, r14
cvtsi2sd xmm6, rax
call fcn.14000fd20
mov dword [r14 + 0x10], 3
movsd qword [r14], xmm6
jmp case.0x140020d70.88