Function at 0x1007b620
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push edi
push 0
push 0
mov dword [ebp - 0x20], ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov edi, eax
test edi, edi
je 0x1007b895
push ebx
xor ecx, ecx
push esi
mov esi, 4
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100a1d2b
mov ebx, eax
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x18], ebx
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100a1d2b
add esp, 8
mov dword [ebp - 4], eax
xor esi, esi
push ebx
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor edx, edx
xor ecx, ecx
test edx, edx
jle 0x1007b69b
movzx eax, word [ebx + edx*4]
lea ecx, [ecx]
cmp word [ebx + ecx*4], ax
je 0x1007b6a5
inc ecx
cmp ecx, edx
jl 0x1007b690
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + edx*4]
mov dword [ecx + esi*4], eax
inc esi
inc edx
cmp edx, edi
jb 0x1007b683
xor ecx, ecx
mov dword [ebp - 0xc], esi
mov eax, esi
mov edx, 0x21f
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100a1d2b
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test esi, esi
jle 0x1007b860
mov ecx, dword [sym.imp.USER32.dll_GetKeyboardLayout]
add edi, 0xd
mov eax, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
jmp 0x1007b6f0
mov eax, dword [ebp - 4]
push 0
mov esi, dword [eax + ebx*4]
mov eax, esi
cdq
mov dword [edi - 0xd], eax
mov dword [edi - 9], edx
call ecx
cmp esi, eax
mov byte [ebp - 0x22], 0
sete al
mov byte [edi - 1], al
movzx eax, si
mov ecx, eax
mov word [ebp - 0x23c], ax
and eax, 0x3ff
mov dword [ebp - 0x10], ecx
add eax, 0xfffffffc
cmp eax, 0xe
ja case.0x1007b732.5
movzx eax, byte [eax + 0x1007b8b0]
jmp dword [eax*4 + 0x1007b89c]
mov dword [ebp - 0x238], 0
jmp 0x1007b7a3
mov dword [ebp - 0x238], 2
jmp 0x1007b7a3
mov dword [ebp - 0x238], 3
jmp 0x1007b7a3
mov eax, ecx
mov byte [ebp - 0x22], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.0x1007b76c.2
jmp dword [eax*4 + 0x1007b8c0]
push 9
mov dword [ebp - 0x238], 1
push 0x100dafd8
jmp 0x1007b7ce
push 9
mov dword [ebp - 0x238], 4
push 0x100dafd0
jmp 0x1007b7ce
mov dword [ebp - 0x238], 5
push 9
lea eax, [ebp - 0x234]
push eax
push 0x59
push ecx
call dword [ebp - 8]
test eax, eax
je 0x1007b7c7
lea eax, [ebp - 0x234]
push eax
call fcn.100b7be4
add esp, 4
jmp 0x1007b7dd
push 9
push 0x100daf88
lea eax, [ebp - 0x234]
push eax
call fcn.100b1b42
add esp, 0xc
push 0x100
lea eax, [ebp - 0x222]
push eax
push 2
push dword [ebp - 0x10]
lea esi, [edi + 0x12]
call dword [ebp - 8]
push 9
test eax, eax
je 0x1007b822
lea eax, [ebp - 0x234]
push eax
push edi
call fcn.100b1b42
push 0x100
lea eax, [ebp - 0x222]
push eax
push esi
call fcn.100b1b42
movzx eax, byte [ebp - 0x22]
add esp, 0x18
jmp 0x1007b842
push 0x100dac70
push edi
call fcn.100b1b42
push 0x100
push str._Unknown_
push esi
call fcn.100b1b42
add esp, 0x18
xor eax, eax
mov esi, dword [ebp - 0xc]
inc ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi - 5], eax
add edi, 0x21f
cmp ebx, esi
jl 0x1007b6f0
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
fldz
mov ecx, dword [ecx + 4]
push ecx
fstp dword [esp]
push 0
mov eax, dword [ecx]
push esi
push edi
push str.IMELanguageList
push dword [ebp + 8]
call dword [eax]
push ebx
call fcn.100a1d34
push edi
call fcn.100a1d34
push dword [ebp - 4]
call fcn.100a1d34
add esp, 0xc
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4