Function at 0x1007e120
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 0x1007e395
push ebx
xor ecx, ecx
push esi
mov esi, 4
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100a5a6b
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.100a5a6b
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 0x1007e19b
movzx eax, word [ebx + edx*4]
lea ecx, [ecx]
cmp word [ebx + ecx*4], ax
je 0x1007e1a5
inc ecx
cmp ecx, edx
jl 0x1007e190
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 0x1007e183
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.100a5a6b
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
test esi, esi
jle 0x1007e360
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 0x1007e1f0
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.0x1007e232.5
movzx eax, byte [eax + 0x1007e3b0]
jmp dword [eax*4 + 0x1007e39c]
mov dword [ebp - 0x238], 0
jmp 0x1007e2a3
mov dword [ebp - 0x238], 2
jmp 0x1007e2a3
mov dword [ebp - 0x238], 3
jmp 0x1007e2a3
mov eax, ecx
mov byte [ebp - 0x22], 1
shr eax, 0xa
dec eax
cmp eax, 4
ja case.0x1007e26c.2
jmp dword [eax*4 + 0x1007e3c0]
push 9
mov dword [ebp - 0x238], 1
push 0x100e1728
jmp 0x1007e2ce
push 9
mov dword [ebp - 0x238], 4
push 0x100e1720
jmp 0x1007e2ce
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 0x1007e2c7
lea eax, [ebp - 0x234]
push eax
call fcn.100bb924
add esp, 4
jmp 0x1007e2dd
push 9
push 0x100e16d8
lea eax, [ebp - 0x234]
push eax
call fcn.100b5882
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 0x1007e322
lea eax, [ebp - 0x234]
push eax
push edi
call fcn.100b5882
push 0x100
lea eax, [ebp - 0x222]
push eax
push esi
call fcn.100b5882
movzx eax, byte [ebp - 0x22]
add esp, 0x18
jmp 0x1007e342
push 0x100e13c0
push edi
call fcn.100b5882
push 0x100
push str._Unknown_
push esi
call fcn.100b5882
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 0x1007e1f0
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.100a5a74
push edi
call fcn.100a5a74
push dword [ebp - 4]
call fcn.100a5a74
add esp, 0xc
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4