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

Disassembly:
push 0xffffffffffffffff
push 0x1210975c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14c], ebx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x10]
push ebx
push eax
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftSpeechVoices
mov byte [esp + 0x158], 1
call fcn.120e1db0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jl 0x120e1794
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0x12167f48
mov ecx, dword [eax]
push 0x12167f48
push eax
call dword [ecx + 0x48]
mov esi, eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x14c], bl
cmp eax, ebx
je 0x120e17a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jne 0x120e1bb2
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ebx
push ecx
mov edx, dword [eax]
push 1
push eax
call dword [edx + 0xc]
test eax, eax
jne 0x120e1bb2
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x14], ebx
lea edx, [esp + 0xb0]
mov byte [esp + 0x14c], 2
push edx
xor esi, esi
mov dword [esp + 0xb4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x120e19b5
cmp dword [esp + 0xc0], 2
je 0x120e18ac
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0x20
push eax
push 0x20019
push ebx
push str..DefaultControl_PaneldesktopResourceLocale
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x120e1847
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x120e19bb
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x50]
push ecx
push edx
push ebx
push ebx
push 0x12167f44
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x120e1875
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x120e1877
xor esi, esi
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jl 0x120e19bb
push 0x10
lea edx, [esp + 0x54]
push ebx
push edx
call fcn.120e5dd1
add esp, 0xc
mov esi, eax
cmp si, bx
je 0x120e19bb
mov eax, esi
jmp 0x120e19c1
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
fild qword [esp + 0x34]
fcomp qword [0x1211c720]
fnstsw ax
test ah, 1
jne 0x120e190d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x120e19b5
push str.GetUserDefaultUILanguage
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x120e18fe
call eax
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x120e189c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x120e189c
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], 0x40
push ecx
push 0x20019
push ebx
push str..DEFAULTControl_PanelInternational
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x120e1942
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x120e19bb
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x30]
lea eax, [esp + 0x70]
push edx
push eax
push ebx
push ebx
push str.Locale
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x120e1970
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x120e1972
xor esi, esi
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jl 0x120e19bb
push 0x10
lea eax, [esp + 0x74]
push ebx
push eax
call fcn.120e6977
mov esi, eax
add esp, 0xc
cmp si, 0x401
je 0x120e19ac
cmp si, 0x40d
je 0x120e19ac
cmp si, 0x41e
jne 0x120e189c
mov esi, 0x409
mov eax, esi
jmp 0x120e19c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [esp + 0x18]
and eax, 0xffff
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.120e1d50
mov edx, dword [esi]
add esp, 8
lea eax, [esp + 0x14]
lea ecx, [esp + 0x3c]
push eax
push ecx
push esi
call dword [edx + 0x18]
cmp eax, 0x8004503a
jne 0x120e19fb
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
push ebx
push esi
call dword [edx + 0x18]
cmp eax, ebx
jl 0x120e1b05
mov eax, dword [esp + 0x158]
cmp eax, ebx
mov eax, dword [esp + 0x14]
je 0x120e1a80
cmp eax, ebx
je 0x120e1a41
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call ebp
mov edi, eax
push edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
cmp esi, ebx
je 0x120e1a43
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call ebp
jmp 0x120e1a43
xor esi, esi
mov eax, dword [esp + 0x158]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x120e1a6e
cmp cl, bl
je 0x120e1a6a
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x120e1a6e
add eax, 2
add esi, 2
cmp cl, bl
jne 0x120e1a4a
xor eax, eax
jmp 0x120e1a73
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x120e1b3d
jmp 0x120e1b05
cmp eax, ebx
je 0x120e1aaf
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call ebp
mov edi, eax
push edi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
cmp esi, ebx
je 0x120e1ab1
mov eax, dword [esp + 0x14]
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push eax
push ebx
push ebx
call ebp
jmp 0x120e1ab1
xor esi, esi
push esi
lea ecx, [esp + 0x14]
call fcn.120f63e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 3
call fcn.120f6857
push str.chinese
lea ecx, [esp + 0x14]
call fcn.120f3988
test eax, eax
jge 0x120e1b6d
push 0x121387a0
lea ecx, [esp + 0x14]
call fcn.120f3988
test eax, eax
jge 0x120e1b6d
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 2
call fcn.120f637a
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esp + 0x14]
mov byte [esp + 0x14c], bl
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push ebx
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x120e17d1
jmp 0x120e1bb2
mov eax, dword [esp + 0x154]
mov edx, dword [esp + 0x18]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
xor ecx, ecx
cmp eax, ebx
mov eax, dword [esp + 0x18]
setge cl
mov edx, dword [eax]
push eax
mov dword [esp + 0x24], ecx
call dword [edx + 8]
mov eax, dword [esp + 0x14]
push eax
jmp 0x120e1bac
mov ecx, dword [esp + 0x154]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x48]
xor edx, edx
cmp eax, ebx
mov eax, dword [esp + 0x18]
setge dl
mov ecx, dword [eax]
push eax
mov dword [esp + 0x24], edx
call dword [ecx + 8]
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 2
call fcn.120f637a
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
cmp eax, ebx
mov dword [esp + 0x140], 0xffffffff
pop ebx
je 0x120e1bcf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x134]
mov eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x140
ret