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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x748d58
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x3c], esi
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
push eax
push 0x20019
push 0
push str.SoftwareAdobeALCID
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x663b65
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push str.CCLangPref
push dword [ebp - 0x38]
call edi
test eax, eax
jne 0x663b5c
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x663b5c
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006d0f4b
mov esi, eax
add esp, 4
test esi, esi
je 0x663b59
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push str.CCLangPref
push dword [ebp - 0x38]
call edi
test eax, eax
jne 0x663b50
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x663b37
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.00426d40
push esi
call fcn.006d0c28
add esp, 4
mov esi, dword [ebp - 0x3c]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov word [ebp - 0x30], ax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], eax
movq qword [ebp - 0x50], xmm0
movq qword [ebp - 0x48], xmm0
call fcn.00426ce0
lea eax, [ebp - 0x60]
cmp esi, eax
je 0x663bd2
mov ecx, esi
call fcn.00426ce0
movups xmm0, xmmword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
movups xmmword [esi], xmm0
mov word [ebp - 0x60], ax
movq xmm0, qword [ebp - 0x48]
movq qword [esi + 0x10], xmm0
lea ecx, [ebp - 0x60]
call fcn.00426ce0
cmp dword [esi + 0x10], 0
jne 0x663d8e
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
mov edi, esi
and edi, 0x3ff
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov edx, eax
shr si, 0xa
shr ax, 0xa
and edx, 0x3ff
movzx ecx, ax
cmp dx, di
movzx eax, si
cmovne ecx, eax
lea eax, [edi - 1]
movzx ecx, cx
cmp eax, 0x26
ja case.0x663c29.3
jmp dword [eax*4 + 0x663db0]
cmp ecx, 2
mov eax, str.en_US
mov edx, str.en_GB
cmove eax, edx
jmp 0x663d83
cmp ecx, 5
je 0x663c5e
cmp ecx, 7
je 0x663c5e
cmp ecx, 6
je 0x663c5e
mov eax, str.en_AE
jmp 0x663d83
mov eax, str.fr_MA
jmp 0x663d83
cmp ecx, 3
mov eax, str.fr_FR
mov edx, str.fr_CA
cmove eax, edx
jmp 0x663d83
cmp ecx, 2
mov eax, str.es_ES
mov edx, str.es_MX
cmove eax, edx
jmp 0x663d83
cmp ecx, 2
je 0x663ca6
cmp ecx, 4
je 0x663ca6
mov eax, str.zh_TW
jmp 0x663d83
mov eax, str.zh_CN
jmp 0x663d83
mov eax, str.en_IL
jmp 0x663d83
mov eax, str.da_DK
jmp 0x663d83
mov eax, 0x7ef824
jmp 0x663d83
mov eax, str.fi_FI
jmp 0x663d83
mov eax, str.de_DE
jmp 0x663d83
mov eax, str.it_IT
jmp 0x663d83
mov eax, str.ja_JP
jmp 0x663d83
mov eax, str.ko_KR
jmp 0x663d83
mov eax, str.sv_SE
jmp 0x663d83
mov eax, str.pl_PL
jmp 0x663d83
mov eax, str.cs_CZ
jmp 0x663d83
mov eax, str.tr_TR
jmp 0x663d83
mov eax, str.el_GR
jmp 0x663d83
mov eax, str.ru_RU
jmp 0x663d83
mov eax, str.ro_RO
jmp 0x663d83
mov eax, str.hr_HR
jmp 0x663d83
mov eax, str.lv_LV
jmp 0x663d83
mov eax, str.et_EE
jmp 0x663d83
mov eax, str.sk_SK
jmp 0x663d83
mov eax, str.sl_SI
jmp 0x663d83
mov eax, str.hu_HU
jmp 0x663d83
mov eax, str.nb_NO
jmp 0x663d83
mov eax, str.bg_BG
jmp 0x663d83
mov eax, str.uk_UA
jmp 0x663d83
mov eax, str.pt_BR
jmp 0x663d83
mov eax, str.lt_LT
jmp 0x663d83
mov eax, str.en_US
mov ecx, dword [ebp - 0x3c]
push 5
push eax
call fcn.00426d40
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret