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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x1000f6d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.100c0cbd
mov esi, eax
mov dword [ebp - 0x648], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
call fcn.100c0d28
movzx ebx, ax
cmp esi, 1
jne 0x100c309f
cmp dword [ebp + 8], 0
je 0x100c3098
push dword [0x10140504]
call fcn.100c2a9e
pop ecx
push 2
call fcn.100c0d54
xor esi, esi
cmp dword [ebp - 0x648], 3
je 0x100c3256
call dword [sym.imp.KERNEL32.dll_GetACP]
push ebx
mov dword [ebp - 0x648], eax
call fcn.100b48e6
push 4
mov ecx, 0x804
pop edx
mov dword [ebp - 0x64c], 0x7804
test eax, eax
je 0x100c30fa
cmp bx, cx
je 0x100c30f8
mov eax, 0x1004
cmp bx, ax
je 0x100c30f8
cmp bx, dx
je 0x100c30f8
cmp bx, word [ebp - 0x64c]
mov ebx, 0x404
jne 0x100c30fa
mov ebx, ecx
push edi
call fcn.100b48e6
test eax, eax
je 0x100c3130
mov eax, 0x804
cmp di, ax
je 0x100c312e
mov ecx, 0x1004
cmp di, cx
je 0x100c312e
push 4
pop ecx
cmp di, cx
je 0x100c312e
cmp di, word [ebp - 0x64c]
mov edi, 0x404
jne 0x100c3130
mov edi, eax
push 1
push esi
push dword [0x10140504]
call fcn.100c1b7a
push esi
movzx eax, bx
push esi
push eax
call fcn.100c1b7a
push esi
movzx eax, di
push esi
push eax
call fcn.100c1b7a
add esp, 0x24
cmp dword [ebp - 0x648], 0x4ea
jne 0x100c3172
push esi
push esi
push 0x40c
call fcn.100c1b7a
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 0x100c3198
mov ecx, ebx
shl ecx, 2
push ecx
call fcn.100bf9f8
mov edi, eax
test edi, edi
je 0x100c3217
push edi
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov eax, esi
mov dword [ebp - 0x648], eax
test ebx, ebx
je 0x100c3207
movzx eax, word [edi + eax*4]
push eax
mov dword [ebp - 0x64c], eax
call fcn.100b507f
test eax, eax
jne 0x100c31f6
push dword [ebp - 0x64c]
call fcn.100c2574
push esi
push esi
push dword [ebp - 0x64c]
mov dword [ebp - 0x650], eax
call fcn.100c1b7a
mov eax, dword [ebp - 0x650]
add esp, 0x10
test eax, eax
je 0x100c31f6
push esi
push esi
push eax
call fcn.100c1b7a
add esp, 0xc
mov eax, dword [ebp - 0x648]
inc eax
mov dword [ebp - 0x648], eax
cmp eax, ebx
jb 0x100c31ac
lea eax, [ebp - 0x674]
cmp edi, eax
je 0x100c3217
push edi
call fcn.1003eb12
push 0x190
lea edi, [ebp - 0x644]
call fcn.100c2b72
mov ebx, eax
pop ecx
mov edi, esi
test ebx, ebx
je 0x100c3256
mov edx, dword [ebp + edi*4 - 0x644]
call fcn.100c2c1e
test eax, eax
jne 0x100c3251
push esi
push esi
push dword [ebp + edi*4 - 0x644]
call fcn.100c1b7a
add esp, 0xc
inc edi
cmp edi, ebx
jb 0x100c3230
mov edi, dword [0x101066a0]
mov edx, edi
call fcn.100c2c1e
test eax, eax
jne 0x100c3272
push esi
push esi
push edi
call fcn.100c1b7a
add esp, 0xc
mov dword [0x10140548], esi
mov dword [0x10140544], esi
mov dword [0x10140540], esi
mov dword [0x1014053c], esi
jmp 0x100c32fd
cmp dword [0x1014053c], 0
jne 0x100c32a8
movzx eax, word [esi*8 + 0x1013ebdc]
push eax
call fcn.100b4946
mov dword [0x1014053c], eax
cmp dword [0x10140540], 0
jne 0x100c32c4
movzx eax, word [esi*8 + 0x1013ebdc]
push eax
call fcn.100b48c9
mov dword [0x10140540], eax
cmp dword [0x10140544], 0
jne 0x100c32e0
movzx eax, word [esi*8 + 0x1013ebdc]
push eax
call fcn.100b490c
mov dword [0x10140544], eax
cmp dword [0x10140548], 0
jne 0x100c32fc
movzx eax, word [esi*8 + 0x1013ebdc]
push eax
call fcn.100b4929
mov dword [0x10140548], eax
inc esi
push esi
lea eax, [ebp - 0x654]
push eax
call fcn.100cdb41
test eax, eax
jne 0x100c328c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10002069
leave
ret