Function at 0x140021130
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x60
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx r8d, ax
test rbp, rbp
jne 0x14002116f
mov eax, 0x400
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x60
pop rbp
ret
movzx eax, byte [rbp + 1]
mov qword [rsp + 0x78], rbx
xor ebx, ebx
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
test al, al
je 0x140021369
mov edx, eax
mov ecx, ebx
mov rax, qword [rbp + 0x10]
mov r14d, r8d
cmp dword [rax], r14d
je 0x1400212ee
inc rcx
add rax, 4
cmp rcx, rdx
jl 0x1400211a7
mov dword [0x1401e0e4c], ebx
mov rdi, rbx
nop word [rax + rax]
mov r9, qword [rbp + 0x10]
lea r8, str._04X
mov edx, 5
lea rcx, [rsp + 0x30]
mov r9d, dword [r9 + rdi]
call fcn.14001f4e0
lea r8, [rsp + 0x30]
mov edx, 4
lea rcx, [0x140021100]
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
cmp dword [0x1401e0e4c], 0
jne 0x140021221
movzx eax, byte [rbp + 1]
inc ebx
add rdi, 4
cmp ebx, eax
jl 0x1400211d0
jmp 0x14002136f
mov rax, qword [0x1401d0520]
lea rsi, [0x1401e67a0]
mov rcx, qword [rbp + 0x10]
lea r9, str.Detected_installed_Windows_Language_Pack_for_0x_04X___s_
mov r15d, 0xffc
sub r15, rax
lea rdi, [rax + rsi]
mov rdx, r15
movsxd rax, ebx
mov rbx, 0xffffffffffffffff
mov r8, rbx
lea r14, [rax*4]
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + r14]
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140004960
mov byte [rdi + r15 - 1], 0
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140021280
mov word [rbx + rsi], 0xa0d
add rbx, 2
mov qword [0x1401d0520], rbx
cmp rbx, 0x1000
jae 0x1400213e6
mov byte [rbx + rsi], 0
mov ecx, 0x400
mov rax, qword [rbp + 0x10]
or cx, word [rax + r14]
movzx eax, cx
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x60
pop rbp
ret
mov rax, qword [0x1401d0520]
lea rsi, [0x1401e67a0]
mov r15d, 0xffc
mov dword [rsp + 0x20], r14d
sub r15, rax
lea r9, str.Will_use_default_UI_locale_0x_04X
mov rbx, 0xffffffffffffffff
mov rdx, r15
lea rdi, [rax + rsi]
mov r8, rbx
mov rcx, rdi
call fcn.140004960
mov byte [rdi + r15 - 1], 0
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140021330
mov word [rbx + rsi], 0xa0d
add rbx, 2
mov qword [0x1401d0520], rbx
cmp rbx, 0x1000
jae 0x1400213e6
mov eax, 0x400
mov byte [rbx + rsi], 0
or ax, r14w
jmp 0x1400212bc
mov dword [0x1401e0e4c], ebx
mov rax, qword [0x1401d0520]
lea rsi, [0x1401e67a0]
mov r15d, 0xffc
lea r9, str.NOTE:_No_Windows_Language_Pack_is_installed_for__s_on_this_system._r_nThis_means_that_some_controls_may_still_be_displayed_using_the_system_locale.
sub r15, rax
mov rbx, 0xffffffffffffffff
mov r8, rbx
mov rdx, r15
lea rdi, [rax + rsi]
mov rax, qword [rbp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140004960
mov byte [rdi + r15 - 1], 0
inc rbx
cmp byte [rsi + rbx], 0
jne 0x1400213b5
mov word [rbx + rsi], 0xa0d
add rbx, 2
mov qword [0x1401d0520], rbx
cmp rbx, 0x1000
jae 0x1400213e6
mov byte [rbx + rsi], 0
mov eax, 0x400
jmp 0x1400212bc
call fcn.1400b20a8
int3