Function at 0x422b90
Capabilities:
Identify system language via api
Inspect section memory permissions
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x97c
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x978], eax
mov eax, dword [esp + 0x980]
push ebx
xor ebx, ebx
cmp dword [eax + 0x14], ebx
mov dword [esp + 0x38], eax
je 0x422fb3
cmp dword [0x48d6e8], ebx
je 0x422fb3
cmp dword [0x48d6ec], ebx
je 0x422fb3
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movzx ecx, ax
xor esi, esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], esi
mov eax, dword [esi*4 + 0x48ab2c]
lea edx, [esp + 0x20]
push edx
push 8
push ebx
push eax
push SysReAllocStringLen
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422fa0
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x422fa0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x800
lea ecx, [esp + 0x18c]
push ecx
push ebx
push eax
mov dword [esp + 0x48], ebx
call edi
test eax, eax
jne 0x422f95
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x190]
push str._u._u
push ecx
mov byte [esp + 0x997], bl
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
call fcn.0045663f
add esp, 0x10
cmp eax, 2
jne 0x422f69
mov esi, 0x47bd18
lea ecx, [esp + 0x188]
mov eax, 0x7ff
mov edi, edi
cmp byte [ecx], bl
je 0x422cb0
sub eax, 1
add ecx, 1
cmp eax, ebx
jg 0x422ca0
jmp 0x422cc9
cmp eax, ebx
jle 0x422cc9
mov dl, byte [esi]
cmp dl, bl
je 0x422cc9
mov byte [ecx], dl
sub eax, 1
add ecx, 1
add esi, 1
cmp eax, ebx
jg 0x422cb4
lea edx, [esp + 0x14]
push edx
push 8
push ebx
lea eax, [esp + 0x194]
mov byte [ecx], bl
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422f69
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x422f69
push 0x800
lea edx, [esp + 0x18c]
push edx
push ebx
push eax
mov dword [esp + 0x40], ebx
call edi
test eax, eax
jne 0x422f5a
jmp 0x422d20
push ebx
lea eax, [esp + 0x18c]
push ebx
push eax
call fcn.00454a68
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x422f28
cmp edi, 0xffff
ja 0x422f28
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 9
push ebx
lea edx, [esp + 0x194]
push edx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422f28
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x422f28
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x4c]
push edx
push ebx
push ebx
push str.Collection
push eax
mov byte [esp + 0x60], bl
mov dword [esp + 0x30], 0x40
call ebp
mov ecx, dword [esp + 0x10]
push 0x800
lea eax, [esp + 0x18c]
push eax
push ebx
push ecx
mov byte [esp + 0x97], bl
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x422f19
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 1
push ebx
lea eax, [esp + 0x194]
push eax
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x422eed
cmp dword [esp + 0x1c], ebx
je 0x422eed
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x18c]
push eax
call fcn.00454706
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfe000000
xor ecx, ecx
add esi, 0x2000000
cmp edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
setne cl
xor edx, edx
mov dword [esp + 0x18], 0x800
sub ecx, 1
and ecx, 0x40000000
or esi, ecx
cmp edi, dword [esp + 0x40]
lea ecx, [esp + 0x18]
setne dl
push ecx
sub edx, 1
and edx, 0x80000000
or esi, edx
neg eax
sbb eax, eax
lea edx, [esp + 0x18c]
push edx
and eax, 0xf0000000
push ebx
add eax, 0x20000000
push ebx
or esi, eax
mov eax, dword [esp + 0x2c]
push str.Filename
push eax
call ebp
test eax, eax
jne 0x422ee2
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x8c]
push edx
push ebx
push ebx
push ebx
push eax
mov byte [esp + 0x99f], bl
mov dword [esp + 0x30], 0x100
call ebp
test eax, eax
jne 0x422eb5
mov byte [esp + 0x187], bl
jmp 0x422ebc
mov byte [esp + 0x88], bl
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x194]
push ecx
push edx
mov ecx, esi
call fcn.004232c0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push 0x800
lea ecx, [esp + 0x18c]
add eax, 1
push ecx
push eax
push edx
mov dword [esp + 0x38], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x422dc7
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push 0x800
lea ecx, [esp + 0x18c]
add eax, 1
push ecx
push eax
push edx
mov dword [esp + 0x40], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x422d20
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
push 0x800
lea ecx, [esp + 0x18c]
add eax, 1
push ecx
push eax
push edx
mov dword [esp + 0x48], eax
call edi
test eax, eax
je 0x422c56
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 1
cmp esi, 2
mov dword [esp + 0x24], esi
jl 0x422c00
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x97c]
pop ebx
xor ecx, esp
call fcn.00454016
add esp, 0x97c
ret 4