Function at 0x14002189c
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.1400082fc
mov r13, qword [r12]
lea rsi, str.ERROR
mov edi, r15d
mov rcx, qword [rsi]
mov rdx, r13
call fcn.140028dbc
mov r8d, 1
test eax, eax
je 0x140021916
add edi, r8d
lea rax, [0x1400c7038]
add rsi, 8
cmp rsi, rax
jl 0x1400218ee
cmp edi, 0x61
je 0x140068058
cmp edi, 0x60
ja case.0x140021938.88
lea rdx, [0x140000000]
movsxd rax, edi
mov ecx, dword [rdx + rax*4 + 0x219a8]
add rcx, rdx
jmp rcx
lea rdx, [rbx + 0x190]
mov rcx, r14
call fcn.1400074b0
lea rcx, [rsp + 0x30]
call fcn.140009250
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, [0x1400b5ae8]
mov rcx, r14
call fcn.140006e28
jmp case.0x140021938.88
lea rdx, [rbx + 0x170]
jmp 0x140021941
mov rcx, r14
call fcn.1400108b0
mov eax, 1
mov dword [r14 + 0x10], eax
mov dword [r14], eax
jmp case.0x140021938.88
lea rdx, [0x1400dcfa8]
lea rcx, [rbp - 0x58]
call fcn.14000e3e4
mov rdx, r12
lea rcx, [rbp - 0x58]
call fcn.14000ca68
xor r9d, r9d
mov dword [rbp + 0x248], r15d
lea r8, [rbp + 0x248]
lea rdx, [rbp - 0x58]
call fcn.140022820
test rax, rax
jne 0x140068099
or r15d, 0xffffffff
jmp 0x1400680a4
mov rdx, rax
mov rcx, r14
call fcn.14000ecdc
lea rcx, [rbp - 0x58]
jmp 0x1400681c4
lea rdx, [0x1400dd004]
jmp 0x14002197d
lea rdx, [0x1400c43a8]
jmp 0x14002197d
lea rdx, reloc.WSOCK32.dll_htons
jmp 0x14002197d
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
call fcn.140002f40
mov ebx, dword [rax + 0x1c]
jmp 0x1400680ef
mov ebx, dword [rbx + 0x244]
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], ebx
jmp case.0x140021938.88
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, 8
add rcx, rbx
call fcn.140002f40
mov rcx, r14
lea rdx, [rax + 0x28]
call fcn.14000ecdc
nop
jmp case.0x140021938.88
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r8d, word [rsp + 0x5e]
lea rdx, str._.3d
jmp 0x140068150
mov r8d, r15d
lea rdx, [0x1400dc300]
lea rcx, [rbp - 0x30]
call fcn.140023fdc
jmp 0x140068176
lea rdx, [rbp + 0x238]
mov dword [rbp + 0x238], 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rbp - 0x30]
jmp 0x14002197d
lea rcx, [rbp + 0x248]
call fcn.14009a57c
lea r8, [0x1400dd01c]
jmp 0x1400681a7
lea rcx, [rbp + 0x248]
call fcn.14009a57c
lea r8, [0x1400dd044]
mov rcx, rax
lea rdx, [rsp + 0x50]
call fcn.14009a4b4
mov rdx, rax
mov rcx, r14
call fcn.1400074b0
lea rcx, [rsp + 0x50]
call fcn.140009250
nop
jmp case.0x140021938.88
lea rcx, [rbp + 0x248]
call fcn.14009a57c
lea r8, [0x1400dd024]
jmp 0x1400681a7
lea rcx, [rbp + 0x248]
call fcn.14009a57c
lea r8, [0x1400dd02c]
jmp 0x1400681a7
lea rcx, [rbp + 0x248]
call fcn.14009a57c
lea r8, [0x1400dc300]
jmp 0x1400681a7
lea rcx, [rbp + 0x248]
call fcn.14009a57c
lea r8, [0x1400dd034]
jmp 0x1400681a7
lea rcx, [rbp + 0x248]
call fcn.14009a57c
lea r8, [0x1400dd03c]
jmp 0x1400681a7
lea rcx, [rbp + 0x248]
call fcn.14009a57c
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.14009a52c
test rax, rax
je 0x140068146
mov r8d, dword [rax + 0x18]
inc r8d
jmp 0x140068149
mov ecx, reloc.OLEAUT32.dll_SafeArrayDestroyData
jmp 0x140068275
mov ecx, 7
lea rdx, [rsp + 0x30]
call fcn.14007c24c
jmp 0x14006828b
lea rcx, [rsp + 0x30]
call fcn.1400047e8
lea rdx, [rsp + 0x30]
jmp 0x140021941
mov ecx, 0x2b
jmp 0x140068275
mov ecx, 5
jmp 0x140068275
mov ecx, SafeArrayRedim
jmp 0x140068275
mov ecx, 0x19
jmp 0x140068275
mov ecx, 0x2e
jmp 0x140068275
mov ecx, reloc.OLEAUT32.dll_CreateStdDispatch
jmp 0x140068275
mov ecx, reloc.WSOCK32.dll_socket
jmp 0x140068275
mov ecx, socket
jmp 0x140068275
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
jmp 0x140068275
mov ecx, RegisterActiveObject
jmp 0x140068275
mov ecx, 0x1a
jmp 0x140068275
mov ecx, reloc.WSOCK32.dll_recv
jmp 0x140068275
mov ecx, 6
jmp 0x140068275
mov ecx, 2
jmp 0x140068275
mov ecx, reloc.WSOCK32.dll_inet_ntoa
jmp 0x140068275
lea rdx, [rbp + 0x238]
mov dword [rbp + 0x238], 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
jmp 0x140068176
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je case.0x140021938.88
jmp 0x140068176
cmp byte [0x1400ef458], r15b
je 0x140068381
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x60], r15
call fcn.14009a464
mov edx, 0x104
lea rcx, [rbp - 0x30]
call rax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140068176
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140068176
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x140068176
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], r15d
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 6
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 9
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 5
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 0xa
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 3
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 2
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 7
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 8
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 4
jmp case.0x140021938.88
cmp byte [0x1400ef3ac], r8b
jmp 0x1400684b9
cmp byte [0x1400efe9d], r8b
mov ebx, r15d
sete bl
jmp 0x1400680ef
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 0x40
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 0x41
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 0x42
jmp case.0x140021938.88
mov rcx, r14
call fcn.1400108b0
mov dword [r14 + 0x10], 1
mov dword [r14], 0x43
jmp case.0x140021938.88
lea rdx, [rbx + 0x150]
jmp 0x140021941
mov edx, dword [rbx + 0x1c0]
call fcn.140076f00
mov ebx, eax
jmp 0x1400680ef
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x140068176
movzx eax, word [0x1400ef45a]
test eax, eax
je 0x14006859c
cmp eax, 6
je 0x140068590
cmp eax, 9
lea rdx, str.UNKNOWN
lea rcx, [0x1400dd068]
cmove rdx, rcx
jmp 0x14002197d
lea rdx, str.IA64
jmp 0x14002197d
lea rdx, [0x1400dd050]
jmp 0x14002197d
xor ecx, ecx
mov eax, 0x80000001
cpuid
bt edx, 0x1d
lea rcx, [0x1400dd068]
lea rdx, [0x1400dd050]
cmovae rcx, rdx
mov rdx, rcx
jmp 0x14002197d
lea rdx, str.WIN32_NT
jmp 0x14002197d
cmp byte [0x1400ef454], r8b
jne 0x1400685f0
lea rdx, str.WIN_10
jmp 0x14002197d
cmp byte [0x1400ef456], r8b
jne 0x140068605
lea rdx, str.WIN_2016
jmp 0x14002197d
cmp byte [0x1400ef450], r8b
jne 0x14006861a
lea rdx, str.WIN_81
jmp 0x14002197d
cmp byte [0x1400ef452], r8b
jne 0x14006862f
lea rdx, str.WIN_2012R2
jmp 0x14002197d
cmp byte [0x1400ef44e], r8b
jne 0x140068644
lea rdx, str.WIN_2012
jmp 0x14002197d
cmp byte [0x1400ef44c], r8b
jne 0x140068659
lea rdx, str.WIN_8
jmp 0x14002197d
cmp byte [0x1400ef44a], r8b
jne 0x14006866e
lea rdx, str.WIN_2008R2
jmp 0x14002197d
cmp byte [0x1400ef448], r8b
jne 0x140068683
lea rdx, str.WIN_7
jmp 0x14002197d
cmp byte [0x1400ef446], r8b
jne 0x140068698
lea rdx, str.WIN_2008
jmp 0x14002197d
cmp byte [0x1400ef444], r8b
jne 0x1400686ad
lea rdx, str.WIN_VISTA
jmp 0x14002197d
cmp byte [0x1400ef442], r8b
jne 0x1400686c2
lea rdx, str.WIN_2003
jmp 0x14002197d
cmp byte [0x1400ef440], r8b
jne 0x1400686e9
cmp byte [0x1400ef45c], r15b
lea rdx, str.WIN_XPe
lea rax, str.WIN_XP
cmove rdx, rax
jmp 0x14002197d
lea rdx, str.UNKNOWN
jmp 0x14002197d
mov ebx, dword [0x1400ef418]
jmp 0x1400680ef
lea rdx, [0x1400ef420]
jmp 0x140021941
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.14000616c
jmp 0x140068176
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.14000616c
movzx ecx, word [rbp - 0x30]
lea rdx, [rbp - 0x30]
mov r8d, 4
mov dword [rbp + 0x238], ecx
call fcn.14000e380
jmp 0x140068176
lea rcx, [rbp - 0x58]
call qword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
lea rdx, [rbp - 0x58]
jmp 0x14002197d
lea rdx, str.3__3__15__3
lea rcx, [rbp - 0x30]
call fcn.14002857c
lea rcx, [rbp - 0x30]
mov ebx, r15d
mov r13d, r15d
call fcn.140028558
test eax, eax
jle 0x1400687fd
mov rdi, r15
lea r12, [rbp - 0x30]
mov esi, 0x2e
movzx eax, word [r12]
mov rcx, rdi
cmp ax, 0x20
je 0x1400687e8
inc ebx
inc rdi
cmp ax, 0x2c
jne 0x1400687e3
mov word [rbp + rcx*2 - 0x30], si
jmp 0x1400687e8
mov word [rbp + rcx*2 - 0x30], ax
lea rcx, [rbp - 0x30]
inc r13d
add r12, 2
call fcn.140028558
cmp r13d, eax
jl 0x1400687c3
movsxd rax, ebx
mov word [rbp + rax*2 - 0x30], r15w
jmp 0x140068176
mov ecx, r8d
jmp 0x140068815
mov ecx, 4
lea rdx, [rbp - 0x78]
call fcn.14007c14c
lea rdx, [rbp - 0x78]
jmp 0x14002197d
mov ecx, 2
jmp 0x140068815
mov ecx, 3
jmp 0x140068815
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [rbp - 0x80]
jmp 0x1400680ef
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [rbp - 0x7c]
jmp 0x1400680ef
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.USER32.dll_GetDC]
mov edx, reloc.WSOCK32.dll_ioctlsocket
jmp 0x14006889d
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.USER32.dll_GetDC]
mov edx, reloc.WSOCK32.dll_WSACleanup
mov rcx, rax
mov rdi, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rcx, r14
mov ebx, eax
call fcn.1400108b0
mov rdx, rdi
mov dword [r14 + 0x10], 1
mov rcx, rsi
mov dword [r14], ebx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
jmp case.0x140021938.88
lea rcx, str.COMSPEC
jmp 0x1400688e0
lea rcx, str.USERDNSDOMAIN
lea rdx, [rbp - 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x140068176
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, [rbp - 0x30]
call fcn.140004968
jmp 0x140068176
mov eax, dword [0x1400ef4a0]
mov ebx, r15d
add eax, 0xfffffffd
cmp eax, r8d
setbe bl
jmp 0x1400680ef
lea rcx, str.USERPROFILE
jmp 0x1400688e0
lea rcx, str.HOMEDRIVE
jmp 0x1400688e0
lea rcx, str.HOMEPATH
jmp 0x1400688e0
lea rcx, str.HOMESHARE
jmp 0x1400688e0
lea rcx, str.LOGONSERVER
jmp 0x1400688e0
lea rcx, str.USERDOMAIN
jmp 0x1400688e0
lea rdx, [rbx + 0x248]
jmp 0x140021941
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xorps xmm6, xmm6
mov rcx, r14
cvtsi2sd xmm6, rax
call fcn.1400108b0
mov dword [r14 + 0x10], 3
movsd qword [r14], xmm6
jmp case.0x140021938.88