Function at 0x76311f29
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [eax]
push esi
mov dword [ebp - 4], esi
call sym.IMM32.dll_ImmGetDefaultIMEWnd
push esi
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_IsWindowUnicode]
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x18], eax
je 0x76311eb8
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x14], esi
jmp 0x76311ec5
mov eax, dword [sym.imp.USER32.dll_PostMessageW]
mov dword [ebp - 0x14], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x76312326
mov ecx, dword [ebp + 0xc]
push ebx
add ecx, 4
push edi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
mov edi, 0x280
mov ebx, 0x102
mov eax, dword [ecx - 4]
cmp eax, 0x10d
jb 0x76312306
cmp eax, 0x10e
jbe 0x76312312
cmp eax, 0x10f
je 0x76311f3f
cmp eax, 0x290
je 0x76311f2e
cmp eax, 0x291
jne 0x76312306
push dword [ecx + 4]
movzx eax, word [ecx]
push eax
push 0x101
jmp 0x76312041
push dword [ecx + 4]
movzx eax, word [ecx]
push eax
push 0x100
jmp 0x76312041
test byte [ecx + 5], 8
je 0x763120c7
push 0
push 0x100
push edi
push dword [ebp - 4]
call dword [ebp - 0x14]
mov eax, dword [ebp + 0x14]
xor ecx, ecx
xor edx, edx
cmp dword [eax + 0x54], ecx
mov dword [ebp + 0xc], edx
jg 0x76311f73
jmp 0x7631203a
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [ebp + 0x18], ecx
mov dword [ebp - 0x10], 1
je 0x7631204c
mov ecx, dword [eax + 0x58]
add edx, ecx
cmp dword [ebp - 0x18], 0
mov dl, byte [edx + eax]
mov byte [ebp - 0x1c], dl
je 0x76311fee
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x76311fdc
cmp byte [ebp - 0x1c], 0xb0
jb 0x76311fb4
cmp byte [ebp - 0x1c], 0xc8
mov dword [ebp - 0x10], 0xfff10001
jbe 0x76311fbb
mov dword [ebp - 0x10], 0xfff20001
push dword [ebp - 0x10]
movzx eax, byte [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 4]
call esi
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov eax, dword [eax + 0x58]
mov al, byte [ecx + eax]
jmp 0x76311fdf
mov al, byte [ebp - 0x1c]
push dword [ebp - 0x10]
movzx eax, al
push eax
push ebx
push dword [ebp - 4]
call esi
jmp 0x76312026
inc dword [ebp + 0xc]
mov byte [ebp - 8], dl
mov edx, dword [ebp + 0xc]
add ecx, edx
mov al, byte [ecx + eax]
push 1
mov byte [ebp - 7], al
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [ebp - 0xc]
push 1
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageW]
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x54]
jl 0x76311f6b
xor ecx, ecx
push ecx
push 0x101
push edi
push dword [ebp - 4]
call dword [ebp - 0x14]
jmp 0x76312312
lea edx, [eax + edx*2]
mov eax, dword [eax + 0x58]
add eax, edx
xor edx, edx
cmp dword [ebp - 0x18], ecx
mov dh, byte [eax + 1]
mov dl, byte [eax]
mov dword [ebp - 0xc], edx
je 0x76312015
push ecx
push ecx
push 2
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov al, byte [ebp - 8]
push dword [ebp - 8]
mov byte [ebp + 0xb], al
mov byte [ebp + 0x13], al
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
je 0x763120bf
cmp byte [ebp + 0xb], 0xb0
jb 0x763120a2
cmp byte [ebp + 0xb], 0xc8
mov dword [ebp - 0x10], 0xfff10001
jbe 0x763120a9
mov dword [ebp - 0x10], 0xfff20001
push dword [ebp - 0x10]
movzx eax, byte [ebp + 0xb]
push eax
push ebx
push dword [ebp - 4]
call esi
mov al, byte [ebp - 7]
jmp 0x76311fdf
mov al, byte [ebp + 0x13]
jmp 0x76311fdf
xor eax, eax
cmp dword [ecx], eax
push eax
push 0x100
push edi
push dword [ebp - 4]
je 0x763121e3
call dword [ebp - 0x14]
cmp dword [ebp + 0x18], 0
mov edx, dword [ebp - 0x24]
mov al, byte [edx + 1]
mov cl, byte [edx]
mov byte [0x763161c0], al
mov byte [0x763161c1], cl
je 0x76312165
cmp dword [ebp - 0x18], 0
je 0x76312139
push 0xf00001
movzx eax, al
push eax
push 0x10c
push dword [ebp - 4]
call esi
movzx eax, byte [0x763161c1]
push 0xf00001
push eax
push 0x10c
push dword [ebp - 4]
call esi
push 0
push 0x101
push edi
push dword [ebp - 4]
call esi
jmp 0x763121d5
push 1
mov byte [ebp - 8], al
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 8]
push eax
push 1
push 0
mov byte [ebp - 7], cl
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x763121c4
movzx eax, word [ebp - 0xc]
push 0xf00001
push eax
jmp 0x763121b6
cmp dword [ebp - 0x18], 0
je 0x763121af
xor edx, edx
mov dh, al
xor eax, eax
push eax
push eax
push 2
mov dl, cl
lea ecx, [ebp - 8]
push ecx
push 1
lea ecx, [ebp - 0xc]
push ecx
push eax
push eax
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov al, byte [ebp - 7]
mov byte [ebp + 0x13], al
movzx eax, byte [ebp - 8]
push 0xf00001
push eax
push 0x10c
push dword [ebp - 4]
call esi
movzx eax, byte [ebp + 0x13]
jmp 0x76312117
push 0xf00001
push dword [edx]
push 0x10c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0x101
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x10e
jmp 0x7631230c
call dword [ebp - 0x14]
xor eax, eax
cmp dword [ebp + 0x18], eax
je 0x7631227f
cmp dword [ebp - 0x18], eax
je 0x76312215
movzx eax, byte [0x763161c0]
push 0xfff10001
push eax
push ebx
push dword [ebp - 4]
call esi
movzx eax, byte [0x763161c1]
jmp 0x763122c5
mov cl, byte [0x763161c0]
mov byte [ebp - 8], cl
mov cl, byte [0x763161c1]
push 1
mov byte [ebp - 7], cl
lea ecx, [ebp - 0xc]
push ecx
push 2
lea ecx, [ebp - 8]
push ecx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x76312254
movzx eax, word [ebp - 0xc]
push 0xfff10001
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0x101
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xe0001
push 8
push 0x100
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x76312312
cmp dword [ebp - 0x18], eax
je 0x763122f1
xor ecx, ecx
mov ch, byte [0x763161c0]
push eax
push eax
push 2
mov cl, byte [0x763161c1]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 8]
push ecx
push 1
lea ecx, [ebp - 0xc]
push ecx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov al, byte [ebp - 7]
mov byte [ebp + 0x13], al
movzx eax, byte [ebp - 8]
push 0xfff10001
push eax
push ebx
push dword [ebp - 4]
call esi
movzx eax, byte [ebp + 0x13]
push 0xfff10001
push eax
push ebx
push dword [ebp - 4]
call esi
push 0
push 0x101
push edi
push dword [ebp - 4]
call esi
push 0xe0001
push 8
push 0x100
push dword [ebp - 4]
call esi
jmp 0x76312312
xor eax, eax
mov ah, byte [0x763161c1]
mov al, byte [0x763161c0]
mov dword [ebp - 0xc], eax
jmp 0x76312240
push dword [ecx + 4]
push dword [ecx]
push eax
push dword [ebp - 0x28]
call dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
add ecx, 0xc
dec dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
jne 0x76311eeb
pop edi
pop ebx
xor eax, eax
pop esi
leave
ret 0x14