Function at 0x76305c67
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x76305dab
cmp dword [ebp + 0x10], ebx
je 0x76305dab
push dword [ebp + 8]
call sym.IMM32.dll_ImmLockClientImc
cmp dword [ebp + 0x20], ebx
je 0x76305d0d
cmp eax, ebx
je 0x76305c4e
mov esi, dword [eax + 8]
not esi
push eax
and esi, 1
call sym.IMM32.dll_ImmUnlockClientImc
push dword [ebp + 8]
call sym.IMM32.dll_ImmLockIMC
mov edi, eax
cmp edi, ebx
je 0x76305c4e
push dword [edi + 0x118]
call sym.IMM32.dll_ImmLockIMCC
cmp eax, ebx
jne 0x76305c52
push dword [ebp + 8]
call sym.IMM32.dll_ImmUnlockIMC
xor edi, edi
jmp 0x76305c79
push ebx
push esi
push ebx
push ebx
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.763055ca
push dword [edi + 0x118]
mov esi, eax
call sym.IMM32.dll_ImmUnlockIMCC
push dword [ebp + 8]
call sym.IMM32.dll_ImmUnlockIMC
mov edi, esi
push edi
push ebx
mov dword [ebp + 0x10], edi
call fcn.76309949
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x76305dab
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call sym.IMM32.dll_ImmGetCompositionStringA
push edi
push ebx
call fcn.76309949
cmp eax, ebx
mov dword [ebp + 0x20], eax
je 0x76305d9d
cmp edi, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
mov dword [ebp + 8], ecx
mov esi, eax
je 0x76305dff
mov eax, dword [ebp + 0x14]
mov al, byte [eax]
inc dword [ebp + 0x14]
cmp al, bl
mov byte [ebp + 0xc], al
je 0x76305dff
push dword [ebp + 0xc]
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
test eax, eax
mov eax, dword [ebp + 8]
mov al, byte [eax]
mov byte [esi], al
je 0x76305cfe
inc esi
cmp dword [ebp + 0x10], 2
jb 0x76305cf9
inc dword [ebp + 8]
dec dword [ebp + 0x10]
inc dword [ebp + 0x14]
jmp 0x76305cff
inc esi
inc dword [ebp + 8]
dec dword [ebp + 0x10]
je 0x76305dff
jmp 0x76305cc2
cmp eax, ebx
je 0x76305d44
mov esi, dword [eax + 8]
not esi
push eax
and esi, 1
call sym.IMM32.dll_ImmUnlockClientImc
push dword [ebp + 8]
call sym.IMM32.dll_ImmLockIMC
mov edi, eax
cmp edi, ebx
je 0x76305d44
push dword [edi + 0x118]
call sym.IMM32.dll_ImmLockIMCC
cmp eax, ebx
jne 0x76305d48
push dword [ebp + 8]
call sym.IMM32.dll_ImmUnlockIMC
xor edi, edi
jmp 0x76305d6f
push ebx
push esi
push ebx
push ebx
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.76304ed3
push dword [edi + 0x118]
mov esi, eax
call sym.IMM32.dll_ImmUnlockIMCC
push dword [ebp + 8]
call sym.IMM32.dll_ImmUnlockIMC
mov edi, esi
push edi
push ebx
mov dword [ebp + 0x10], edi
call fcn.76309949
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x76305dab
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 8]
call sym.IMM32.dll_ImmGetCompositionStringW
push edi
push ebx
call fcn.76309949
cmp eax, ebx
mov dword [ebp + 0x20], eax
jne 0x76305db4
push esi
push ebx
push dword [0x76316888]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20
cmp edi, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
mov dword [ebp + 8], ecx
mov esi, eax
je 0x76305dff
mov eax, dword [ebp + 0x14]
movzx eax, word [eax]
add dword [ebp + 0x14], 2
cmp ax, bx
mov dword [ebp - 8], eax
je 0x76305dff
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x24]
call fcn.76303868
cmp eax, 2
jne 0x76305dee
mov eax, dword [ebp + 8]
mov al, byte [eax]
mov byte [esi], al
inc esi
mov eax, dword [ebp + 8]
mov al, byte [eax]
mov byte [esi], al
inc esi
inc dword [ebp + 8]
sub dword [ebp + 0x10], 2
jne 0x76305dc3
push dword [ebp - 4]
push ebx
push dword [0x76316888]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
sub esi, eax
mov dword [ecx], esi
jmp 0x76305dad