Function at 0x494920
Capabilities:
Log keystrokes via input method manager
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56f3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, ecx
cmp byte [ebp + 0x9c], 0
je 0x494b84
mov eax, dword [ebp - 0x38]
push eax
call sub.IMM32.dll_ImmGetContext
mov ebx, eax
mov eax, dword [ebp + 0xa0]
test eax, eax
jne 0x494993
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0x12c]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
dec eax
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp - 0x38]
call fcn.00437930
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov ecx, 8
call fcn.00496970
add esp, 8
mov dword [esp + 0x78], 0
lea eax, [esp + 0x38]
call fcn.00496b80
mov byte [esp + 0x78], 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0x800
call fcn.00499c00
lea edx, [esp + 0x18]
push edx
mov edi, eax
lea esi, [esp + 0x3c]
call fcn.00496bb0
push 0
push 0
push 0x10
push ebx
call sub.IMM32.dll_ImmGetCompositionStringW
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0049ab00
mov byte [esp + 0x78], 2
test esi, esi
jle 0x494a30
push esi
mov eax, esi
lea ecx, [esp + 0x1c]
call fcn.0049ac40
push eax
push 0x10
push ebx
call sub.IMM32.dll_ImmGetCompositionStringW
mov esi, eax
test esi, esi
jle 0x494a30
lea ecx, [esp + 0x18]
call fcn.0049b420
lea eax, [esp + 0x38]
xor edi, edi
call fcn.0049cb10
mov dword [esp + 0x20], eax
nop
cmp eax, esi
jl 0x494a46
mov eax, esi
cmp edi, eax
jge 0x494a70
lea eax, [esp + 0x18]
call fcn.0049b850
test byte [eax], 1
je 0x494a69
mov eax, edi
lea ecx, [esp + 0x38]
call fcn.00455800
mov dword [eax], 8
mov eax, dword [esp + 0x20]
inc edi
jmp 0x494a40
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x20]
lea edi, [ebp - 0x58]
call fcn.00408130
push eax
mov eax, edi
call fcn.00496640
call fcn.00452970
mov ecx, eax
call fcn.00452390
push 0
push 0
push 0x80
push ebx
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [esp + 0x20], eax
test eax, eax
jl 0x494b32
mov esi, dword [ebp + 0x5c]
lea ecx, [esp + 0x28]
push ecx
call fcn.00445780
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x20]
call fcn.00408130
push eax
mov eax, edi
call fcn.00496640
call fcn.00452970
push eax
call fcn.004524f0
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea edx, [esp + 0x4c]
push edx
push ebx
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0x80
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], eax
call sub.IMM32.dll_ImmSetCandidateWindow
lea eax, [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
call fcn.00437950
mov eax, dword [ebp - 0x38]
push ebx
push eax
call sub.IMM32.dll_ImmReleaseContext
mov eax, dword [0x680770]
add eax, 0x350
call fcn.0040f1f0
test eax, eax
je 0x494b57
mov eax, dword [ebp - 0x38]
call fcn.00437920
mov byte [esp + 0x78], 1
lea ecx, [esp + 0x18]
call fcn.00499450
mov byte [esp + 0x78], 0
lea eax, [esp + 0x38]
call fcn.004375a0
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00499450
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret