Function at 0x100467a2
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x1001c40c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.1004207f
mov esi, eax
mov dword [ebp - 0x648], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
call fcn.100420ea
movzx ebx, ax
cmp esi, 1
jne 0x100467f4
cmp dword [ebp + 8], 0
je 0x100467ed
push dword [0x100a3370]
call fcn.10046213
pop ecx
push 2
call fcn.10042116
xor esi, esi
cmp dword [ebp - 0x648], 3
je 0x100469ab
call dword [sym.imp.KERNEL32.dll_GetACP]
push ebx
mov dword [ebp - 0x648], eax
call fcn.10037cee
push 4
mov ecx, 0x804
pop edx
mov dword [ebp - 0x64c], 0x7804
test eax, eax
je 0x1004684f
cmp bx, cx
je 0x1004684d
mov eax, 0x1004
cmp bx, ax
je 0x1004684d
cmp bx, dx
je 0x1004684d
cmp bx, word [ebp - 0x64c]
mov ebx, 0x404
jne 0x1004684f
mov ebx, ecx
push edi
call fcn.10037cee
test eax, eax
je 0x10046885
mov eax, 0x804
cmp di, ax
je 0x10046883
mov ecx, 0x1004
cmp di, cx
je 0x10046883
push 4
pop ecx
cmp di, cx
je 0x10046883
cmp di, word [ebp - 0x64c]
mov edi, 0x404
jne 0x10046885
mov edi, eax
push 1
push esi
push dword [0x100a3370]
call fcn.100422c0
push esi
movzx eax, bx
push esi
push eax
call fcn.100422c0
push esi
movzx eax, di
push esi
push eax
call fcn.100422c0
add esp, 0x24
cmp dword [ebp - 0x648], 0x4ea
jne 0x100468c7
push esi
push esi
push 0x40c
call fcn.100422c0
add esp, 0xc
push esi
push esi
lea edi, [ebp - 0x674]
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ebx, eax
cmp ebx, 8
jbe 0x100468ed
mov ecx, ebx
shl ecx, 2
push ecx
call fcn.10041f84
mov edi, eax
test edi, edi
je 0x1004696c
push edi
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov eax, esi
mov dword [ebp - 0x648], eax
test ebx, ebx
je 0x1004695c
movzx eax, word [edi + eax*4]
push eax
mov dword [ebp - 0x64c], eax
call fcn.1003855b
test eax, eax
jne 0x1004694b
push dword [ebp - 0x64c]
call fcn.10045c84
push esi
push esi
push dword [ebp - 0x64c]
mov dword [ebp - 0x650], eax
call fcn.100422c0
mov eax, dword [ebp - 0x650]
add esp, 0x10
test eax, eax
je 0x1004694b
push esi
push esi
push eax
call fcn.100422c0
add esp, 0xc
mov eax, dword [ebp - 0x648]
inc eax
mov dword [ebp - 0x648], eax
cmp eax, ebx
jb 0x10046901
lea eax, [ebp - 0x674]
cmp edi, eax
je 0x1004696c
push edi
call fcn.10041f95
push 0x190
lea edi, [ebp - 0x644]
call fcn.100462de
mov ebx, eax
pop ecx
mov edi, esi
test ebx, ebx
je 0x100469ab
mov edx, dword [ebp + edi*4 - 0x644]
call fcn.1004638a
test eax, eax
jne 0x100469a6
push esi
push esi
push dword [ebp + edi*4 - 0x644]
call fcn.100422c0
add esp, 0xc
inc edi
cmp edi, ebx
jb 0x10046985
mov edi, dword [0x100709c0]
mov edx, edi
call fcn.1004638a
test eax, eax
jne 0x100469c7
push esi
push esi
push edi
call fcn.100422c0
add esp, 0xc
mov dword [0x100a4ff8], esi
mov dword [0x100a4ff4], esi
mov dword [0x100a4ff0], esi
mov dword [0x100a4fec], esi
jmp 0x10046a52
cmp dword [0x100a4fec], 0
jne 0x100469fd
movzx eax, word [esi*8 + 0x100a3384]
push eax
call fcn.10037d4e
mov dword [0x100a4fec], eax
cmp dword [0x100a4ff0], 0
jne 0x10046a19
movzx eax, word [esi*8 + 0x100a3384]
push eax
call fcn.10037cd1
mov dword [0x100a4ff0], eax
cmp dword [0x100a4ff4], 0
jne 0x10046a35
movzx eax, word [esi*8 + 0x100a3384]
push eax
call fcn.10037d14
mov dword [0x100a4ff4], eax
cmp dword [0x100a4ff8], 0
jne 0x10046a51
movzx eax, word [esi*8 + 0x100a3384]
push eax
call fcn.10037d31
mov dword [0x100a4ff8], eax
inc esi
push esi
lea eax, [ebp - 0x654]
push eax
call fcn.1005388a
test eax, eax
jne 0x100469e1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10048c09
leave
ret