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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x578750]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004c0b30
add esp, 4
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0xffffffff
jne 0x4c32ad
jmp 0x4c34df
mov ecx, dword [ebp - 0x220]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89b0]
movzx eax, byte [edx + 0x17]
cmp eax, 0x86
jne 0x4c32e2
call fcn.00421860
cmp dword [eax + 0x92c], 0
je 0x4c32e2
mov dword [ebp - 0x21c], 0x3a8
mov ecx, dword [ebp - 0x220]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89b0]
movzx eax, byte [edx + 0x17]
cmp eax, 0x88
jne 0x4c3317
call fcn.00421860
cmp dword [eax + 0x92c], 0
je 0x4c3317
mov dword [ebp - 0x21c], 0x3b6
mov ecx, dword [ebp - 0x220]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89b0]
movzx eax, byte [edx + 0x17]
cmp eax, 0x80
jne 0x4c334c
call fcn.00421860
cmp dword [eax + 0x930], 0
je 0x4c334c
mov dword [ebp - 0x21c], 0x3a4
mov ecx, dword [ebp - 0x220]
imul ecx, ecx, 0x238
mov edx, dword [ecx + 0x5a89b0]
movzx eax, byte [edx + 0x17]
cmp eax, 0x81
jne 0x4c3381
call fcn.00421860
cmp dword [eax + 0x934], 0
je 0x4c3381
mov dword [ebp - 0x21c], 0x3b5
mov ecx, dword [ebp + 8]
push ecx
call sub.IMM32.dll_ImmGetContext
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4c34df
cmp dword [ebp - 0x21c], 0
je 0x4c33bf
push 0x100
lea edx, [ebp - 0x218]
push edx
push 0x800
mov eax, dword [ebp - 0x10]
push eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [ebp - 0xc], eax
jmp 0x4c33dc
push 0x100
lea ecx, [ebp - 0x218]
push ecx
push 0x800
mov edx, dword [ebp - 0x10]
push edx
call sub.IMM32.dll_ImmGetCompositionStringA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and eax, 0xffff
mov word [ebp - 4], ax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.IMM32.dll_ImmReleaseContext
movzx eax, word [ebp - 4]
cmp eax, 0x100
jge 0x4c34df
cmp dword [ebp - 0x21c], 0
je 0x4c3452
movzx ecx, word [ebp - 4]
xor edx, edx
mov word [ebp + ecx*2 - 0x218], dx
movzx eax, word [ebp - 4]
xor ecx, ecx
mov word [ebp + eax*2 - 0x216], cx
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00504ae3
add esp, 8
lea ecx, [ebp - 0x218]
push ecx
call fcn.00504c07
add esp, 4
mov word [ebp - 4], ax
mov dword [ebp - 8], 0
movzx edx, word [ebp - 4]
cmp dword [ebp - 8], edx
jge 0x4c34df
mov eax, dword [ebp - 8]
movzx ecx, byte [ebp + eax*2 - 0x218]
push ecx
mov edx, dword [ebp - 8]
imul edx, edx, 0x238
mov eax, dword [edx + 0x5a89bc]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
test eax, eax
je 0x4c34b7
mov ecx, dword [ebp - 8]
movzx edx, word [ebp + ecx*2 - 0x216]
push edx
mov eax, dword [ebp - 8]
movzx ecx, word [ebp + eax*2 - 0x218]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004c1a90
add esp, 0xc
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4c34d1
push 0
mov ecx, dword [ebp - 8]
movzx edx, word [ebp + ecx*2 - 0x218]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c1a90
add esp, 0xc
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x4c3459
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00504a55
mov esp, ebp
pop ebp
ret