Function at 0x1400219b0
Capabilities:
Identify system language via api

Disassembly:
push rbp
push r15
sub rsp, 0x58
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx r15d, ax
test rbp, rbp
jne 0x1400219e3
mov eax, 0x400
jmp 0x140021b46
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 + 0x50], r14
test al, al
je 0x140021bd9
mov r8d, eax
mov ecx, ebx
mov rax, qword [rbp + 0x10]
mov edx, r15d
cmp dword [rax], edx
je 0x140021b5b
inc rcx
add rax, 4
cmp rcx, r8
jl 0x140021a17
mov dword [0x1401e0ecc], ebx
mov rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r9, qword [rbp + 0x10]
lea r8, str._04X
mov edx, 5
lea rcx, [rsp + 0x30]
mov r9d, dword [rdi + r9]
call fcn.14001fd80
lea r8, [rsp + 0x30]
mov edx, 4
lea rcx, [0x140021980]
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
cmp dword [0x1401e0ecc], 0
jne 0x140021a91
movzx eax, byte [rbp + 1]
inc ebx
add rdi, 4
cmp ebx, eax
jl 0x140021a40
jmp 0x140021bdf
mov rax, qword [0x1401d05a0]
lea rsi, [0x1401e6720]
mov rcx, qword [rbp + 0x10]
lea r9, str.Detected_installed_Windows_Language_Pack_for_0x_04X___s_
mov r14d, 0xffc
sub r14, rax
lea rdi, [rax + rsi]
mov rdx, r14
movsxd rax, ebx
mov rbx, 0xffffffffffffffff
mov r8, rbx
lea r15, [rax*4]
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x28], rax
mov eax, dword [rcx + r15]
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140004fd0
mov byte [rdi + r14 - 1], 0
nop
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140021af0
mov word [rbx + rsi], 0xa0d
add rbx, 2
mov qword [0x1401d05a0], rbx
cmp rbx, 0x1000
jae 0x140021c56
mov byte [rbx + rsi], 0
mov ecx, 0x400
mov rax, qword [rbp + 0x10]
or cx, word [rax + r15]
movzx eax, cx
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b2a30
add rsp, 0x58
pop r15
pop rbp
ret
mov rax, qword [0x1401d05a0]
lea rsi, [0x1401e6720]
mov dword [rsp + 0x20], edx
lea r9, str.Will_use_default_UI_locale_0x_04X
mov r14d, 0xffc
mov rbx, 0xffffffffffffffff
sub r14, rax
mov r8, rbx
lea rdi, [rax + rsi]
mov rdx, r14
mov rcx, rdi
call fcn.140004fd0
mov byte [rdi + r14 - 1], 0
nop dword [rax]
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140021ba0
mov word [rbx + rsi], 0xa0d
add rbx, 2
mov qword [0x1401d05a0], rbx
cmp rbx, 0x1000
jae 0x140021c56
mov eax, 0x400
mov byte [rbx + rsi], 0
or ax, r15w
jmp 0x140021b2c
mov dword [0x1401e0ecc], ebx
mov rax, qword [0x1401d05a0]
lea rsi, [0x1401e6720]
mov r14d, 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 r14, rax
mov rbx, 0xffffffffffffffff
mov r8, rbx
mov rdx, r14
lea rdi, [rax + rsi]
mov rax, qword [rbp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140004fd0
mov byte [rdi + r14 - 1], 0
inc rbx
cmp byte [rsi + rbx], 0
jne 0x140021c25
mov word [rbx + rsi], 0xa0d
add rbx, 2
mov qword [0x1401d05a0], rbx
cmp rbx, 0x1000
jae 0x140021c56
mov byte [rbx + rsi], 0
mov eax, 0x400
jmp 0x140021b2c
call fcn.1400b2b58
int3