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

Disassembly:
mov eax, 0x51dbbc
call fcn.004cafc4
sub esp, 0x64
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x2b8]
push eax
mov dword [ebp - 0x24], eax
call sub.IMM32.dll_ImmGetContext
mov esi, eax
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
test esi, esi
je 0x465aa5
mov ecx, dword [edi + 0x2ac]
add ecx, 0x10
call fcn.004777c6
test al, al
jne 0x465a8c
mov ecx, edi
call fcn.00489095
test al, al
jne 0x465a8c
mov ecx, dword [edi + 0x2ac]
mov byte [ebp - 0xd], al
lea ecx, [ecx + 0x10]
call fcn.0047811f
test al, al
je 0x46581f
mov ecx, dword [edi + 0x2ac]
call fcn.004a0244
jmp 0x465823
mov byte [ebp - 0xd], 1
mov eax, dword [ebp + 0xc]
mov ecx, 0x800
mov byte [edi + 0x4da], 0
test ecx, eax
je 0x46586d
push ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x24]
call fcn.004651f5
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 1
jb 0x465851
mov ecx, dword [eax]
push 2
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00463058
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.004693b0
mov eax, dword [ebp + 0xc]
test al, 8
je 0x465a76
push 8
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x24]
call fcn.004651f5
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
jne 0x4658a1
mov ecx, edi
call fcn.0048a111
lea ecx, [ebp - 0x58]
call fcn.004693b0
jmp 0x465a98
cmp byte [ebp - 0xd], 0
je 0x4658ae
mov ecx, edi
call fcn.0047fb2c
mov ecx, edi
call fcn.00467e35
mov ecx, dword [edi + 0x2ac]
lea ecx, [ecx + 0x10]
call fcn.00478133
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x1c], esi
push 0
push 0
push 0x10
push dword [ebp - 0x20]
call sub.IMM32.dll_ImmGetCompositionStringW
xor ecx, ecx
mov byte [ebp - 0xd], cl
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
lea ecx, [ebp - 0xd]
push ecx
push eax
mov ecx, esi
call fcn.00461fb2
mov eax, dword [esi + 4]
sub eax, dword [esi]
push eax
push dword [esi]
mov esi, dword [ebp - 0x20]
push 0x10
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
lea eax, [ebp - 0x40]
push eax
call fcn.004669d8
add esp, 0x10
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00463a21
cmp dword [ebp - 0x44], 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x4659d0
movzx eax, word [eax + edx*2]
mov ecx, 0x3ff
add eax, 0x2800
cmp cx, ax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x2c]
sbb esi, esi
add esi, 2
push esi
push edx
push eax
call fcn.00469650
push dword [ebp - 0x1c]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x70]
push eax
call fcn.0046837b
add esp, 0x10
mov eax, dword [edi]
mov ecx, edi
cmp dword [ebp - 0x5c], 0x10
push 1
push dword [ebp - 0x60]
mov edx, dword [eax + 0x54]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x60]
push dword [eax + ecx*4]
mov ecx, edi
call fcn.00464332
add dword [ebp - 0x18], esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0046938a
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x14]
jb 0x465943
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
jmp 0x4659dd
cmp dword [eax], 0x21
jne 0x4659e4
add eax, 4
cmp eax, dword [ebp - 0x3c]
jne 0x4659d5
jmp 0x465a4f
mov eax, dword [ebp + 0xc]
neg ecx
and eax, 0x4080
mov dword [ebp - 0x14], ecx
mov edx, pe_nt_image_headers32
cmp eax, edx
jne 0x465a0d
push 0
push 0
push edx
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x465a4f
mov ecx, edi
call fcn.0048053f
push dword [ebp - 0x14]
mov ecx, dword [edi + 0x2ac]
mov esi, eax
push esi
call fcn.0049e179
sub eax, esi
mov ecx, edi
push eax
call fcn.00466fe4
push 0x21
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.00462523
add esp, 0xc
cmp eax, dword [ebp - 0x3c]
je 0x465a4f
mov ecx, edi
call fcn.00467e35
call fcn.00466955
test al, al
je 0x465a5f
mov byte [edi + 0x4da], 1
lea ecx, [ebp - 0x40]
call fcn.0046933e
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.004693b0
mov esi, dword [ebp - 0x20]
push 1
push 1
push 1
mov ecx, edi
call fcn.0048164a
mov ecx, edi
call fcn.0048a111
jmp 0x465a98
push 0
push 4
push 0x15
push esi
call sub.IMM32.dll_ImmNotifyIME
test esi, esi
je 0x465aa5
push esi
push dword [ebp - 0x24]
call sub.IMM32.dll_ImmReleaseContext
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8