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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x630a88
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6d1554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
cmp esi, eax
je 0x4c61ce
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax]
add esi, 0x1c
cmp esi, edi
jne 0x4c61b7
mov edi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov esi, dword [edi]
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], esi
mov eax, dword [eax + 4]
test eax, eax
je 0x4c61e0
mov eax, dword [eax + 4]
jmp 0x4c61e2
xor eax, eax
mov dword [ebp - 0x3c], eax
mov esi, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
test al, 0x10
je 0x4c62d9
push 0
push 0
push 0x10
push ecx
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [ebp - 0x40], eax
test eax, eax
jle 0x4c62d6
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], ecx
test eax, eax
jne 0x4c621f
mov dword [ebp - 0x4c], ecx
jmp 0x4c6254
cmp eax, 0x7fffffff
ja 0x4c6420
push eax
lea ecx, [ebp - 0x58]
call fcn.00483410
mov ecx, dword [ebp - 0x40]
mov esi, eax
add ecx, esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], ecx
sub ecx, esi
push ecx
push 0
push esi
call fcn.005c7920
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov dword [ebp - 0x4c], esi
push eax
push esi
push 0x10
push dword [ebp - 0x34]
call sub.IMM32.dll_ImmGetCompositionStringW
mov eax, dword [ebp - 0x40]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
test eax, eax
jle 0x4c6285
mov esi, dword [ebp - 0x4c]
nop
mov dl, byte [esi + ecx]
cmp dl, 1
je 0x4c6282
cmp dl, 3
je 0x4c6282
inc ecx
cmp ecx, eax
jl 0x4c6270
mov dword [ebp - 0x30], ecx
mov esi, ecx
cmp ecx, eax
jge 0x4c62a2
mov edx, dword [ebp - 0x44]
nop
mov cl, byte [edx + esi]
cmp cl, 1
je 0x4c629d
cmp cl, 3
jne 0x4c62a2
inc esi
cmp esi, eax
jl 0x4c6290
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4c62d6
mov edx, dword [ebp - 0x38]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4c62cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c6425
push edx
push ecx
call fcn.0054cd75
add esp, 8
mov eax, dword [ebp + 0xc]
and eax, 0x4080
cmp eax, 0x80
jne 0x4c62f9
push 0
push 0
push eax
push dword [ebp - 0x34]
call sub.IMM32.dll_ImmGetCompositionStringW
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
jmp 0x4c6302
mov ecx, dword [ebp - 0x48]
mov dword [ecx], 0
test byte [ebp + 0xc], 0x20
je 0x4c6318
push edi
push esi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.004c6430
add esp, 0x10
mov ecx, dword [edi + 4]
mov eax, 0x92492493
sub ecx, dword [edi]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4c6403
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x2c], vtable.CefStructBase_struct_CefCompositionUnderlineTraits_.0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0xff000000
test eax, eax
jle 0x4c639c
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
push ecx
cmp dword [edi + 8], eax
je 0x4c6391
mov ecx, eax
call fcn.004c5c60
add dword [edi + 4], 0x1c
jmp 0x4c6399
push eax
mov ecx, edi
call fcn.004c5950
mov eax, dword [ebp - 0x30]
cmp esi, eax
jle 0x4c63ce
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], 1
push ecx
cmp dword [edi + 8], eax
je 0x4c63c6
mov ecx, eax
call fcn.004c5c60
add dword [edi + 4], 0x1c
jmp 0x4c63ce
push eax
mov ecx, edi
call fcn.004c5950
mov eax, dword [ebp - 0x3c]
cmp esi, eax
jge 0x4c6403
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
mov eax, dword [edi + 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], 0
push ecx
cmp dword [edi + 8], eax
je 0x4c63fb
mov ecx, eax
call fcn.004c5c60
add dword [edi + 4], 0x1c
jmp 0x4c6403
push eax
mov ecx, edi
call fcn.004c5950
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054d193
mov esp, ebp
pop ebp
ret 0x14
call fcn.0049aa10
call fcn.005d1f0f
int3