Function at 0x140015b90
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 [0x14007f080]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.140001a70
mov rcx, rax
test rax, rax
je 0x140015e16
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
lea r8, [0x140086c38]
lea rdx, str.Software_s
lea rcx, [rsp + 0x58]
call fcn.140002f70
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14008a944], eax
jle 0x140015c58
lea rcx, [0x14008a944]
call fcn.14003ec18
cmp dword [0x14008a944], 0xffffffff
jne 0x140015c58
lea rax, str.InstallerLanguageDWORD
mov qword [0x14008a840], rax
lea rax, str.InstallerLanguage
mov qword [0x14008a848], rax
lea rax, str.Language
mov qword [0x14008a850], rax
lea rcx, [0x14008a944]
call fcn.14003ebac
lea rsi, [0x14008a840]
xor ebp, ebp
lea r14, [0x14008a858]
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 0x140015ce7
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 0x140015d59
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 0x140015d67
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 0x140015d59
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140015d67
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [rsp + 0x40]
test edi, edi
jne 0x140015dc2
add rsi, 8
cmp rsi, r14
jne 0x140015c70
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx r8d, ax
mov edx, ebp
mov r9, qword [0x140086d30]
test r9d, r9d
je 0x140015dc0
mov r10, qword [0x140086d28]
mov r11d, 0x3ff
and r8w, r11w
mov rcx, rbp
movzx eax, word [rcx + r10]
and ax, r11w
cmp ax, r8w
je 0x140015e09
lea eax, [rdx + 1]
mov edx, eax
add rcx, 4
shr eax, 0x1f
cmp eax, r9d
jne 0x140015da0
mov edi, ebp
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140015ddf
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14003f1d0
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 0x140015dc2
mov ecx, 0x80004005
call fcn.1400018b0
int3