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

Disassembly:
sub esp, 0xa38
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0xa34], eax
mov eax, dword [esp + 0xa3c]
push ebx
lea ecx, [esp + 0xc]
push ecx
push 8
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftHTML_Help_Collections
push SysReAllocStringLen
mov dword [esp + 0x40], eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422b75
cmp dword [esp + 0xc], ebx
je 0x422b75
push esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x800
lea ecx, [esp + 0x240]
push ecx
movzx eax, ax
push ebx
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x38], ebx
call esi
test eax, eax
jne 0x422b69
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea ebx, [ebx]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push 9
push ebx
lea ecx, [esp + 0x250]
push ecx
push edx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422b3f
cmp dword [esp + 0x28], ebx
je 0x422b3f
lea eax, [esp + 0x244]
push str.Developer_Collections
push eax
call fcn.00454706
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x248]
push edx
push ebx
neg eax
push ebx
sbb eax, eax
push str.Language
add eax, 1
push ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x2c], 0x800
call ebp
test eax, eax
jne 0x4228e3
push ebx
lea eax, [esp + 0x248]
push ebx
push eax
mov byte [esp + 0xa4f], bl
call fcn.00454a68
add esp, 0xc
mov dword [esp + 0x2c], eax
jmp 0x4228e7
mov dword [esp + 0x2c], ebx
push 0x800
lea ecx, [esp + 0x248]
push ecx
push ebx
push ebx
mov dword [esp + 0x30], ebx
call esi
test eax, eax
jne 0x422b38
push ebx
lea edx, [esp + 0x248]
push ebx
push edx
call fcn.00454a68
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x422b14
cmp edi, 0xffff
ja 0x422b14
lea eax, [esp + 0x10]
push eax
push 9
push ebx
lea ecx, [esp + 0x250]
push ecx
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422b14
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x422b14
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x48]
push ecx
push ebx
push ebx
push str.Preferred
push eax
mov dword [esp + 0x2c], 0x100
call ebp
test eax, eax
jne 0x422984
mov byte [esp + 0x143], bl
jmp 0x422988
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x10]
push 0x800
lea edx, [esp + 0x248]
push edx
push ebx
push eax
mov dword [esp + 0x34], ebx
call esi
test eax, eax
jne 0x422b05
lea esp, [esp]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 1
push ebx
lea edx, [esp + 0x250]
push edx
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422add
cmp dword [esp + 0x1c], ebx
je 0x422add
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x248]
push edx
call fcn.00454706
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfe000000
add esi, 0x2000000
xor eax, eax
cmp edi, dword [esp + 0x40]
mov dword [esp + 0x14], 0x800
setne al
xor ecx, ecx
sub eax, 1
and eax, 0x40000000
or esi, eax
cmp edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
setne cl
xor edx, edx
push eax
sub ecx, 1
and ecx, 0x4000000
or esi, ecx
cmp edi, dword [esp + 0x38]
lea ecx, [esp + 0x248]
setne dl
push ecx
push ebx
push ebx
push str.Filename
sub edx, 1
and edx, 0x80000000
or esi, edx
mov edx, dword [esp + 0x30]
push edx
or esi, 0x8000000
call ebp
test eax, eax
jne 0x422acc
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x148]
push ecx
push ebx
push ebx
push ebx
push edx
mov byte [esp + 0xa5b], bl
mov dword [esp + 0x2c], 0x100
call ebp
test eax, eax
jne 0x422aa3
mov byte [esp + 0x243], bl
jmp 0x422aaa
mov byte [esp + 0x144], bl
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x14c]
push ecx
lea edx, [esp + 0x250]
push edx
push eax
mov ecx, esi
call fcn.004232c0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, dword [esp + 0x24]
push 0x800
add eax, 1
lea edx, [esp + 0x248]
push edx
push eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
push eax
call esi
test eax, eax
je 0x4229b0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
push 0x800
lea edx, [esp + 0x248]
add eax, 1
push edx
push eax
push ebx
mov dword [esp + 0x30], eax
call esi
test eax, eax
je 0x422904
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push 0x800
lea ecx, [esp + 0x248]
add eax, 1
push ecx
push eax
push edx
mov dword [esp + 0x40], eax
call esi
test eax, eax
je 0x422850
pop edi
pop ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [esp + 0xa38]
pop ebx
xor ecx, esp
call fcn.00454016
add esp, 0xa38
ret 4