Function at 0x140020488
Capabilities:
Identify system language via api

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x5c8]
sub rsp, 0x6a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402ee230]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rdi, rcx
mov r14d, 0x104
mov r13d, 1
xor r12d, r12d
cmp qword [rcx + 0x230], r12
jne 0x1400205e6
mov word [rsp + 0x20], r12w
mov dword [rsp + 0x24], r12d
xor r8d, r8d
lea rdx, [rsp + 0x24]
lea rcx, str.UserDefinedLocale
call fcn.140001194
test eax, eax
jne 0x14002052e
lea rcx, [rsp + 0x20]
call fcn.140001238
test eax, eax
jne 0x140020520
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [rsp + 0x20], ax
jmp 0x140020525
movzx eax, word [rsp + 0x20]
movzx ecx, ax
mov dword [rsp + 0x24], ecx
jmp 0x140020532
mov ecx, dword [rsp + 0x24]
call fcn.1400015dc
mov ebx, eax
movzx esi, ax
mov eax, 0x3ff
and si, ax
shr bx, 0xa
mov word [rsp + 0x60], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call fcn.1401bf0f0
call fcn.14005bf80
mov r8d, r14d
lea rdx, [rsp + 0x60]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1400205ab
lea ecx, [rax - 1]
movsxd rax, ecx
test ecx, ecx
js 0x1400205ab
cmp word [rsp + rax*2 + 0x60], 0x5c
je 0x1400205a2
sub ecx, r13d
sub rax, r13
jns 0x140020590
jmp 0x1400205ab
movsxd rax, ecx
mov word [rsp + rax*2 + 0x62], r12w
lea rdx, str.nvCplUIR.dll
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x230], rax
test rax, rax
je 0x1400205df
test si, si
jne 0x1400205e6
cmp bx, r13w
jne 0x1400205e6
xor al, al
jmp 0x1400208e4
call fcn.14005e1bc
mov r11, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140020606
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.140001990
call fcn.14005e1bc
mov r11, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140020642
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.140001990
mov word [rbp + 0x170], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x172]
call fcn.1401bf0f0
mov r8d, r14d
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rbp + 0x170]
mov rdx, r14
lea rcx, [rbp + 0x380]
call fcn.1401bf720
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, [0x140223c10]
mov rdx, r14
lea rcx, [rbp + 0x170]
call fcn.1401c00ac
lea r8, str.nvCplUIR.dll
mov rdx, r14
lea rcx, [rbp + 0x170]
call fcn.1401c00ac
lea r8, [0x1402238b8]
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x40]
call fcn.140059e1c
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140002378
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x140020724
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x1402238b8]
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x48]
call fcn.140059e1c
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002378
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14002076a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14005e1bc
mov r11, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x14002078a
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.140001990
mov rbx, qword [rsp + 0x30]
mov r9, rbx
mov r8, qword [rsp + 0x28]
lea rdx, str.___n___Client_version:__s__Resource_binary_version:__s
lea rcx, [rsp + 0x38]
call fcn.1400023f8
mov r11d, r12d
test rbx, rbx
setne r11b
test r11d, r11d
jne 0x1400207de
mov ecx, 0x80004005
call fcn.140001000
int3
mov rdx, rbx
mov rcx, qword [rsp + 0x28]
call fcn.1401bf934
test eax, eax
je 0x140020863
mov rcx, rdi
call fcn.14001e6e8
test eax, eax
jne 0x140020863
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14002081b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x14002083b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400205df
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400205df
mov rbx, qword [rdi + 0x230]
call fcn.14005bf80
mov qword [rax + 0x18], rbx
mov rax, qword [rdi + 0x230]
xchg qword [0x1402fce40], rax
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400208a1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x1400208c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x28]
lea rdx, [rax - 0x18]
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x1400208e1
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, r13b
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.1401be9b0
lea r11, [rsp + 0x6a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret