Function at 0x428aeb
Capabilities:
Get keyboard layout
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call fcn.00428e10
push 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x428b62
mov dword [0x45aa24], 1
mov eax, dword [ebp - 4]
shl eax, 2
push eax
call fcn.0044c950
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x428b4c
jmp 0x428e0b
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 4], eax
jmp 0x428cad
mov dword [ebp - 0x24], 0
mov dword [0x45aa24], 0
lea eax, [ebp - 0x38]
push eax
push str.systemcurrentcontrolsetcontrolkeyboard_layout
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x428b94
jmp 0x428e0b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x428bd3
jmp 0x428e0b
mov eax, dword [ebp - 0x18]
shl eax, 2
push eax
call fcn.0044c950
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x428bf4
jmp 0x428e0b
mov eax, dword [ebp - 0x18]
shl eax, 2
push eax
call fcn.0044c950
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x428c15
jmp 0x428e0b
mov dword [ebp - 4], 0
jmp 0x428c24
inc dword [ebp - 4]
mov dword [ebp - 0xac], 0x64
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
push 0
lea eax, [ebp - 0x40]
push eax
push 0
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x428c6a
jmp 0x428cad
lea eax, [ebp - 0xa8]
push eax
call fcn.00429231
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov bx, word [ecx + eax*4]
push 2
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutA]
or ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + eax*4], ebx
jmp 0x428c21
mov eax, dword [ebp - 4]
shl eax, 4
push eax
call fcn.0044c950
add esp, 4
mov dword [0x45566c], eax
cmp dword [0x45566c], 0
jne 0x428cd3
jmp 0x428e0b
mov dword [ebp - 0xc], 0
jmp 0x428ce2
inc dword [ebp - 0xc]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], eax
jge 0x428deb
mov eax, dword [ebp - 0xc]
shl eax, 4
add eax, dword [0x45566c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0xb0]
mov dword [ecx], eax
cmp dword [ebp - 8], 0
je 0x428d32
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0xb0]
mov dword [ecx + 4], eax
jmp 0x428d3f
mov eax, dword [ebp - 0xb0]
mov dword [eax + 4], 0
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax]
push eax
call fcn.00428e7b
add esp, 4
mov ecx, dword [ebp - 0xb0]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xb0]
mov dword [eax + 0xc], 0
push 0xc8
lea eax, [ebp - 0x178]
push eax
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax]
push eax
call fcn.00428eb4
add esp, 0x10
test eax, eax
je 0x428de6
lea edi, [ebp - 0x178]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0044c950
add esp, 4
mov ecx, dword [ebp - 0xb0]
mov dword [ecx + 0xc], eax
lea edi, [ebp - 0x178]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov edx, edi
mov ebx, dword [ebp - 0xb0]
mov edi, dword [ebx + 0xc]
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x428cdf
mov eax, dword [ebp - 4]
mov dword [0x455668], eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0044c900
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.0044c900
add esp, 4
pop edi
pop esi
pop ebx
leave
ret