Function at 0x1004ac1
Capabilities:
Log keystrokes via input method manager

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push dword [ebp + 8]
call sub.IMM32.dll_ImmGetContext
mov esi, eax
xor edi, edi
cmp esi, edi
mov dword [ebp - 0xc], esi
je 0x1004cca
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 8
je 0x1004b18
push edi
push edi
push 8
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x1004b31
test bl, 0x10
je 0x1004b3e
push edi
push edi
push 0x10
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
cmp eax, edi
mov dword [ebp - 4], eax
jge 0x1004b41
jmp 0x1004b3e
mov eax, 0x800
test eax, ebx
je 0x1004b37
push edi
push edi
push eax
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
cmp eax, edi
mov dword [ebp - 8], eax
jge 0x1004b3e
push esi
jmp 0x1004cc1
cmp ebx, edi
jne 0x1004b41
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
lea ebx, [eax + ecx + 0x2f]
mov eax, dword [esi + 0x240]
cmp eax, edi
je 0x1004b69
cmp ebx, dword [eax]
jbe 0x1004b69
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 0x240], edi
cmp dword [esi + 0x240], edi
jne 0x1004b8a
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [esi + 0x240], eax
je 0x1004cbe
mov dword [eax], ebx
mov ebx, dword [esi + 0x240]
mov ecx, dword [ebx]
sub ecx, 4
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [ebx + 4]
mov dword [ebp - 0x14], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 8]
add esi, 0x244
lea edi, [ebx + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebx + eax + 0x2e]
mov dword [ebp - 0x20], 0x4b425930
mov eax, dword [ebx]
xor edi, edi
cmp dword [ebp - 0x10], edi
lea ecx, [ebx + 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
je 0x1004c57
mov esi, dword [ebp - 8]
push esi
push ecx
push 8
push dword [ebp - 0xc]
call sub.IMM32.dll_ImmGetCompositionStringW
mov ecx, esi
shr ecx, 1
cmp dword [ebp - 4], edi
lea eax, [ebx + 0x2c]
mov word [eax + ecx*2], di
je 0x1004c12
push dword [ebp - 4]
lea edi, [ebx + esi + 0x2e]
push edi
push 0x10
push dword [ebp - 0xc]
call sub.IMM32.dll_ImmGetCompositionStringW
mov eax, dword [ebp - 4]
mov byte [edi + eax], 0
xor edi, edi
push edi
push edi
push 0x80
push dword [ebp - 0xc]
call sub.IMM32.dll_ImmGetCompositionStringW
cmp eax, edi
jne 0x1004c2c
or byte [ebx + esi + 0x2e], 0x20
jmp 0x1004c37
lea ecx, [ebx + esi + 0x2e]
lea eax, [eax + ecx - 1]
or byte [eax], 0x10
cmp esi, edi
mov dword [ebx + 0xc], esi
je 0x1004c45
mov dword [ebx + 0x10], 0x2c
mov eax, dword [ebp - 4]
cmp eax, edi
mov dword [ebx + 4], eax
je 0x1004cac
add esi, 0x2e
mov dword [ebx + 8], esi
jmp 0x1004cac
mov eax, 0x800
test dword [ebp + 0x10], eax
je 0x1004c8a
mov esi, dword [ebp - 8]
push esi
push ecx
push eax
push dword [ebp - 0xc]
call sub.IMM32.dll_ImmGetCompositionStringW
mov ecx, esi
shr ecx, 1
cmp esi, edi
lea eax, [ebx + 0x2c]
mov word [eax + ecx*2], di
mov dword [ebx + 0x14], esi
je 0x1004cac
mov dword [ebx + 0x18], 0x2c
jmp 0x1004cac
cmp dword [ebp + 0x10], edi
jne 0x1004cac
mov eax, dword [ebp - 8]
mov esi, eax
shr esi, 1
mov word [ecx + esi*2], di
mov ecx, dword [ebp - 4]
mov byte [edx + ecx], 0
mov dword [ebx + 0x14], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call fcn.01001981
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.IMM32.dll_ImmReleaseContext
pop ebx
pop edi
pop esi
leave
ret 0xc