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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
call fcn.004266a9
push 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x426412
mov dword [0x457eb4], 1
mov eax, dword [ebp - 4]
shl eax, 2
push eax
call fcn.00446fed
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4263fc
jmp 0x4266a3
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 4], eax
jmp 0x426549
mov dword [ebp - 0x24], 0
mov dword [0x457eb4], 0
lea eax, [ebp - 0x38]
push eax
push str.systemcurrentcontrolsetcontrolkeyboard_layout
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x426440
jmp 0x4266a3
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x42647b
jmp 0x4266a3
mov edx, dword [ebp - 0x18]
shl edx, 2
push edx
call fcn.00446fed
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x426498
jmp 0x4266a3
mov eax, dword [ebp - 0x18]
shl eax, 2
push eax
call fcn.00446fed
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4264b5
jmp 0x4266a3
mov dword [ebp - 4], 0
jmp 0x4264c7
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov dword [ebp - 0xac], 0x64
mov dword [ebp - 0x44], 0
lea edx, [ebp - 0x44]
push edx
push 0
lea eax, [ebp - 0x40]
push eax
push 0
lea ecx, [ebp - 0xac]
push ecx
lea edx, [ebp - 0xa8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x426506
jmp 0x426549
lea edx, [ebp - 0xa8]
push edx
call fcn.00426a37
add esp, 4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4], eax
push 2
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor esi, esi
mov si, word [edx + ecx*4]
or eax, esi
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
jmp 0x4264be
mov eax, dword [ebp - 4]
shl eax, 4
push eax
call fcn.00446fed
add esp, 4
mov dword [0x457ebc], eax
cmp dword [0x457ebc], 0
jne 0x42656b
jmp 0x4266a3
mov dword [ebp - 0xc], 0
jmp 0x42657d
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jge 0x426682
mov eax, dword [ebp - 0xc]
shl eax, 4
mov ecx, dword [0x457ebc]
add ecx, eax
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax*4]
mov dword [edx], eax
cmp dword [ebp - 8], 0
je 0x4265c5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x17c], eax
jmp 0x4265cf
mov dword [ebp - 0x17c], 0
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0x17c]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
push ecx
call fcn.0042670b
add esp, 4
mov edx, dword [ebp - 0xb0]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0xb0]
mov dword [eax + 0xc], 0
push 0xc8
lea ecx, [ebp - 0x178]
push ecx
mov edx, dword [ebp - 0xb0]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx]
push edx
call fcn.0042673c
add esp, 0x10
test eax, eax
je 0x42667d
lea edi, [ebp - 0x178]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00446fed
add esp, 4
mov ecx, dword [ebp - 0xb0]
mov dword [ecx + 0xc], eax
lea edi, [ebp - 0x178]
mov edx, dword [ebp - 0xb0]
mov edx, dword [edx + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, 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 0x426574
mov ecx, dword [ebp - 4]
mov dword [0x457eb8], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00446509
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.00446509
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret