Function at 0x415ee0
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 0x439c7d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x44f014]
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
xor eax, eax
mov dword [ebp - 0x30], 0
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 0x44abb0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415ffb
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 dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415ff2
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x415ff2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00417605
add esp, 4
mov edi, eax
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push 0
push str.CCLangPref
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415fe9
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415fd0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x30]
call fcn.0040a120
push edi
call fcn.00417600
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x30]
lea eax, [ebp - 0x54]
movups xmmword [ebp - 0x54], xmm0
movq xmm0, qword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
movq qword [ebp - 0x44], xmm0
cmp esi, eax
je 0x416072
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x416054
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41604a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416285
mov eax, edx
push ecx
push eax
call fcn.00417151
add esp, 8
movups xmm0, xmmword [ebp - 0x30]
xor eax, eax
mov ecx, 7
mov word [ebp - 0x54], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [esi + 0x10], xmm0
jmp 0x416075
mov ecx, dword [ebp - 0x40]
cmp ecx, 8
jb 0x4160ac
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4160a2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416285
push ecx
push edx
call fcn.00417151
add esp, 8
cmp dword [esi + 0x10], 0
jne 0x416265
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov eax, edi
and eax, 0x3ff
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov edx, eax
shr di, 0xa
shr ax, 0xa
and edx, 0x3ff
movzx ecx, ax
movzx eax, di
mov edi, dword [ebp - 0x3c]
cmp dx, di
cmovne ecx, eax
movzx eax, di
dec eax
movzx ecx, cx
cmp eax, 0x26
ja case.0x416101.3
jmp dword [eax*4 + 0x41628c]
cmp ecx, 2
mov eax, str.en_US
mov edx, str.en_GB
cmove eax, edx
jmp 0x41625b
cmp ecx, 5
je 0x416136
cmp ecx, 7
je 0x416136
cmp ecx, 6
je 0x416136
mov eax, str.en_AE
jmp 0x41625b
mov eax, str.fr_MA
jmp 0x41625b
cmp ecx, 3
mov eax, str.fr_FR
mov edx, str.fr_CA
cmove eax, edx
jmp 0x41625b
cmp ecx, 2
mov eax, str.es_ES
mov edx, str.es_MX
cmove eax, edx
jmp 0x41625b
cmp ecx, 2
je 0x41617e
cmp ecx, 4
je 0x41617e
mov eax, str.zh_TW
jmp 0x41625b
mov eax, str.zh_CN
jmp 0x41625b
mov eax, str.en_IL
jmp 0x41625b
mov eax, str.da_DK
jmp 0x41625b
mov eax, str.nl_NL
jmp 0x41625b
mov eax, str.fi_FI
jmp 0x41625b
mov eax, str.de_DE
jmp 0x41625b
mov eax, str.it_IT
jmp 0x41625b
mov eax, str.ja_JP
jmp 0x41625b
mov eax, str.ko_KR
jmp 0x41625b
mov eax, str.sv_SE
jmp 0x41625b
mov eax, str.pl_PL
jmp 0x41625b
mov eax, str.cs_CZ
jmp 0x41625b
mov eax, str.tr_TR
jmp 0x41625b
mov eax, str.el_GR
jmp 0x41625b
mov eax, str.ru_RU
jmp 0x41625b
mov eax, str.ro_RO
jmp 0x41625b
mov eax, str.hr_HR
jmp 0x41625b
mov eax, str.lv_LV
jmp 0x41625b
mov eax, str.et_EE
jmp 0x41625b
mov eax, str.sk_SK
jmp 0x41625b
mov eax, str.sl_SI
jmp 0x41625b
mov eax, str.hu_HU
jmp 0x41625b
mov eax, str.nb_NO
jmp 0x41625b
mov eax, str.bg_BG
jmp 0x41625b
mov eax, str.uk_UA
jmp 0x41625b
mov eax, str.pt_BR
jmp 0x41625b
mov eax, str.lt_LT
jmp 0x41625b
mov eax, str.en_US
push 5
push eax
mov ecx, esi
call fcn.0040a120
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.00416ec0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
call fcn.0041c06f
nop
sbb eax, 0x3a004161
bound eax, qword [ecx]
push esi
bound eax, qword [ecx]
push 0x61
inc ecx
add dh, ah
popal
inc ecx
add byte [edx - 0x4fffbe9f], dl
popal
inc ecx
add ah, dh
popal
inc ecx
add byte [eax], cl
popal
inc ecx
add byte [ebp + 0x61], dl
inc ecx
add byte [esi + 0x40004161], ah
popal
inc ecx
add byte [eax + 0x2c004161], cl
bound eax, qword [ecx]
push esi
bound eax, qword [ecx]
mov edx, 0xc4004161
popal
inc ecx
add dh, cl
popal
inc ecx
add byte [ecx + 0x62330041], bl
inc ecx
add bh, bl
popal
inc ecx
add byte [eax + 0x62], cl
inc ecx
add byte [esi + 0x62], dl
inc ecx
add byte [edx], al
bound eax, qword [ecx]
sti
popal
inc ecx
add byte [ecx], cl
bound eax, qword [ecx]
push ds
bound eax, qword [ecx]
push esi
bound eax, qword [ecx]
fsub dword [ecx + 0x41]
add byte [esi + 98], dl
inc ecx
add ch, ch
popal
inc ecx
add byte [esi + 0x62], dl
inc ecx
add byte [esi + 0x62], dl
inc ecx
add byte [ecx + 0x62], al
inc ecx
add byte [esi + 0x62], dl
inc ecx
add byte [0x17004162], ah
bound eax, qword [ecx]
adc byte [edx + 0x41], ah
add byte [edi + 98], cl
inc ecx
invalid