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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x1001e618]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.100bd85d
mov esi, eax
mov dword [ebp - 0x648], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
call fcn.100bd8c8
movzx ebx, ax
cmp esi, 1
jne 0x100bfc5f
cmp dword [ebp + 8], 0
je 0x100bfc58
push dword [0x1013e5bc]
call fcn.100bf65e
pop ecx
push 2
call fcn.100bd8f4
xor esi, esi
cmp dword [ebp - 0x648], 3
je 0x100bfe16
call dword [sym.imp.KERNEL32.dll_GetACP]
push ebx
mov dword [ebp - 0x648], eax
call fcn.100b07b6
push 4
mov ecx, 0x804
pop edx
mov dword [ebp - 0x64c], 0x7804
test eax, eax
je 0x100bfcba
cmp bx, cx
je 0x100bfcb8
mov eax, 0x1004
cmp bx, ax
je 0x100bfcb8
cmp bx, dx
je 0x100bfcb8
cmp bx, word [ebp - 0x64c]
mov ebx, 0x404
jne 0x100bfcba
mov ebx, ecx
push edi
call fcn.100b07b6
test eax, eax
je 0x100bfcf0
mov eax, 0x804
cmp di, ax
je 0x100bfcee
mov ecx, 0x1004
cmp di, cx
je 0x100bfcee
push 4
pop ecx
cmp di, cx
je 0x100bfcee
cmp di, word [ebp - 0x64c]
mov edi, 0x404
jne 0x100bfcf0
mov edi, eax
push 1
push esi
push dword [0x1013e5bc]
call fcn.100be73a
push esi
movzx eax, bx
push esi
push eax
call fcn.100be73a
push esi
movzx eax, di
push esi
push eax
call fcn.100be73a
add esp, 0x24
cmp dword [ebp - 0x648], 0x4ea
jne 0x100bfd32
push esi
push esi
push 0x40c
call fcn.100be73a
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 0x100bfd58
mov ecx, ebx
shl ecx, 2
push ecx
call fcn.100bc59a
mov edi, eax
test edi, edi
je 0x100bfdd7
push edi
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov eax, esi
mov dword [ebp - 0x648], eax
test ebx, ebx
je 0x100bfdc7
movzx eax, word [edi + eax*4]
push eax
mov dword [ebp - 0x64c], eax
call fcn.100b0f74
test eax, eax
jne 0x100bfdb6
push dword [ebp - 0x64c]
call fcn.100bf134
push esi
push esi
push dword [ebp - 0x64c]
mov dword [ebp - 0x650], eax
call fcn.100be73a
mov eax, dword [ebp - 0x650]
add esp, 0x10
test eax, eax
je 0x100bfdb6
push esi
push esi
push eax
call fcn.100be73a
add esp, 0xc
mov eax, dword [ebp - 0x648]
inc eax
mov dword [ebp - 0x648], eax
cmp eax, ebx
jb 0x100bfd6c
lea eax, [ebp - 0x674]
cmp edi, eax
je 0x100bfdd7
push edi
call fcn.10039c2a
push 0x190
lea edi, [ebp - 0x644]
call fcn.100bf732
mov ebx, eax
pop ecx
mov edi, esi
test ebx, ebx
je 0x100bfe16
mov edx, dword [ebp + edi*4 - 0x644]
call fcn.100bf7de
test eax, eax
jne 0x100bfe11
push esi
push esi
push dword [ebp + edi*4 - 0x644]
call fcn.100be73a
add esp, 0xc
inc edi
cmp edi, ebx
jb 0x100bfdf0
mov edi, dword [0x1013b7c4]
mov edx, edi
call fcn.100bf7de
test eax, eax
jne 0x100bfe32
push esi
push esi
push edi
call fcn.100be73a
add esp, 0xc
mov dword [0x10140168], esi
mov dword [0x10140164], esi
mov dword [0x10140160], esi
mov dword [0x1014015c], esi
jmp 0x100bfebd
cmp dword [0x1014015c], 0
jne 0x100bfe68
movzx eax, word [esi*8 + 0x1013e5cc]
push eax
call fcn.100b0816
mov dword [0x1014015c], eax
cmp dword [0x10140160], 0
jne 0x100bfe84
movzx eax, word [esi*8 + 0x1013e5cc]
push eax
call fcn.100b0799
mov dword [0x10140160], eax
cmp dword [0x10140164], 0
jne 0x100bfea0
movzx eax, word [esi*8 + 0x1013e5cc]
push eax
call fcn.100b07dc
mov dword [0x10140164], eax
cmp dword [0x10140168], 0
jne 0x100bfebc
movzx eax, word [esi*8 + 0x1013e5cc]
push eax
call fcn.100b07f9
mov dword [0x10140168], eax
inc esi
push esi
lea eax, [ebp - 0x654]
push eax
call fcn.100cd1f1
test eax, eax
jne 0x100bfe4c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002238e
leave
ret