Function at 0x140012150
Capabilities:
Identify system language via api
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14008b040]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.140002aa0
mov rcx, rax
test rax, rax
je 0x1400123d6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [0x14008f918]
lea rdx, str.Software_s
lea rcx, [rsp + 0x58]
call fcn.14000e1f0
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14008fe88], eax
jle 0x140012218
lea rcx, [0x14008fe88]
call fcn.140045a7c
cmp dword [0x14008fe88], 0xffffffff
jne 0x140012218
lea rax, str.InstallerLanguageDWORD
mov qword [0x14008fdb0], rax
lea rax, str.InstallerLanguage
mov qword [0x14008fdb8], rax
lea rax, str.Language
mov qword [0x14008fdc0], rax
lea rcx, [0x14008fe88]
call fcn.140045a10
lea rsi, [0x14008fdb0]
xor ebp, ebp
lea r14, [0x14008fdc8]
mov rbx, qword [rsp + 0x58]
nop dword [rax]
mov rdi, qword [rsi]
mov dword [rsp + 0x40], ebp
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400122a7
mov dword [rsp + 0x44], 4
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140012319
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012327
mov dword [rsp + 0x4c], 4
mov dword [rsp + 0x50], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x140012319
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140012327
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [rsp + 0x40]
test edi, edi
jne 0x140012382
add rsi, 8
cmp rsi, r14
jne 0x140012230
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx r8d, ax
mov edx, ebp
mov r9, qword [0x14008fa10]
test r9d, r9d
je 0x140012380
mov r10, qword [0x14008fa08]
mov r11d, 0x3ff
and r8w, r11w
mov rcx, rbp
movzx eax, word [rcx + r10]
and ax, r11w
cmp ax, r8w
je 0x1400123c9
lea eax, [rdx + 1]
mov edx, eax
add rcx, 4
shr eax, 0x1f
cmp eax, r9d
jne 0x140012360
mov edi, ebp
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001239f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rVariantCopy + 8]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400454d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
movsxd rax, edx
movzx edi, word [r10 + rax*4]
and edi, r11d
jmp 0x140012382
mov ecx, 0x80004005
call fcn.140002830
int3