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

Disassembly:
push 0xffffffffffffffff
push 0x43ca76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
push eax
call sub.IMM32.dll_ImmGetContext
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x41c9eb
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x42c]
test eax, eax
je 0x41ca0b
test ah, 8
jne 0x41ca0b
test al, 8
je 0x41c9d3
mov eax, dword [esi + 0x144]
test eax, eax
jge 0x41c78e
xor eax, eax
jmp 0x41c9f0
mov eax, dword [esi + 0x13c]
test eax, eax
jl 0x41c7a1
push 1
mov ecx, esi
call fcn.0041f080
lea ecx, [esp + 0x1c]
push 0x400
push ecx
push 8
push ebx
call sub.IMM32.dll_ImmGetCompositionStringA
push 0
push 0
push 0x80
push ebx
mov edi, eax
call sub.IMM32.dll_ImmGetCompositionStringA
mov ebx, eax
mov eax, dword [esi + 0xec]
test eax, eax
mov ebp, 2
je 0x41c86d
mov eax, dword [esi + 0x144]
xor ecx, ecx
test eax, eax
setl cl
dec ecx
xor edx, edx
and ecx, eax
push 1
test eax, eax
setl dl
dec edx
and eax, edx
mov edx, dword [esi + 0x14c]
mov edx, dword [edx - 8]
lea ecx, [ecx + edx - 1]
push ecx
push eax
mov ecx, esi
call fcn.0041cbb0
cmp word [esi + 0x10e], bp
mov dword [esi + 0x138], eax
jne 0x41c86d
mov eax, dword [esi + 0x670]
test eax, eax
je 0x41c86d
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push 0
mov dword [esp + 0x42c], 0
call fcn.00420300
mov ecx, dword [esi + 0x670]
mov dword [esp + 0x424], 0xffffffff
sub ecx, eax
mov dword [esi + 0x670], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
test edi, edi
jle 0x41c901
mov edi, 1
lea edx, [esp + 0x1c]
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
mov dword [esi + 0xec], edi
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0x144]
mov ecx, esi
push eax
call fcn.0041cfb0
cmp word [esi + 0x10e], bp
jne 0x41c90b
mov eax, dword [esi + 0x670]
test eax, eax
je 0x41c90b
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esp + 0x18]
mov ecx, esi
push edx
push 0
mov dword [esp + 0x42c], edi
call fcn.00420300
mov ecx, dword [esi + 0x670]
mov dword [esp + 0x424], 0xffffffff
add ecx, eax
mov dword [esi + 0x670], ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, esi
call fcn.0041b540
jmp 0x41c90b
mov dword [esi + 0xec], 0
mov eax, dword [esi + 0x144]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + 0x14c]
add eax, ebx
push 0x44a040
push edx
mov dword [esi + 0x138], eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0
call fcn.0041ac10
mov ecx, esi
call fcn.0041f170
mov ecx, esi
call fcn.0041b540
mov ecx, esi
call fcn.0041a8d0
mov eax, dword [esi + 0x108]
test eax, eax
je 0x41c983
mov eax, dword [esi + 0x13c]
test eax, eax
jl 0x41c96c
cmp eax, dword [esi + 0x138]
jne 0x41c9cf
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x138]
xor edx, edx
cmp ecx, dword [eax - 8]
sete dl
mov eax, edx
test eax, eax
je 0x41c9cf
mov eax, dword [esi + 0xd4]
test eax, eax
jle 0x41c9cf
movsx eax, word [esi + 0xd8]
push eax
mov ecx, esi
call fcn.00419f00
cmp word [esi + 0xd8], 0
jne 0x41c9b7
mov ecx, eax
and ecx, 0x80000001
jns 0x41c9b5
dec ecx
or ecx, 0xfffffffe
inc ecx
add eax, ecx
cmp dword [esi + 0xd4], eax
jg 0x41c9cf
mov edx, dword [esp + 0x14]
push 0
push 1
push 0x15
push edx
call sub.IMM32.dll_ImmNotifyIME
mov ebx, dword [esp + 0x14]
mov edx, dword [esi + 0x20]
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x20]
push ebx
push eax
call sub.IMM32.dll_ImmReleaseContext
mov eax, 1
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x418
ret 4
mov eax, dword [esi + 0x13c]
test eax, eax
jl 0x41ca1e
push 1
mov ecx, esi
call fcn.0041f080
lea eax, [esp + 0x1c]
push 0x400
push eax
push 0x800
push ebx
call sub.IMM32.dll_ImmGetCompositionStringA
mov ebp, eax
mov eax, dword [esi + 0x144]
xor ecx, ecx
test eax, eax
setl cl
dec ecx
and ecx, eax
mov eax, dword [esi + 0xec]
test eax, eax
mov edi, ecx
je 0x41ca79
mov edx, dword [esi + 0x14c]
xor eax, eax
test edi, edi
mov ecx, dword [edx - 8]
push 1
setl al
dec eax
and eax, edi
lea ecx, [eax + ecx - 1]
push ecx
push eax
mov ecx, esi
call fcn.0041cbb0
mov dword [esi + 0x138], eax
push 1
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push edi
mov ecx, esi
call fcn.0041cfb0
cmp word [esi + 0x10e], 0
jne 0x41caa6
add edi, ebp
mov dword [esi + 0x138], edi
mov eax, dword [esi + 0x138]
push 0
mov ecx, esi
mov dword [esi + 0xec], 0
mov dword [esi + 0x144], eax
call fcn.0041ac10
mov ecx, esi
call fcn.0041f170
mov ecx, esi
call fcn.0041b540
mov ecx, esi
call fcn.0041a8d0
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
push ecx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
test eax, eax
je 0x41cb23
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ebp, dword [esi + 0x20]
mov ecx, esi
mov edi, eax
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
and eax, 0xffff
push ebp
or eax, 0x3000000
push eax
mov eax, dword [edi + 0x20]
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0xd4]
test eax, eax
jle 0x41c9d3
movsx ecx, word [esi + 0xd8]
push ecx
mov ecx, esi
call fcn.00419f00
cmp word [esi + 0xd8], 0
jne 0x41cb5f
mov edx, dword [esi + 0x44]
mov ecx, dword [edx - 8]
and ecx, 0x80000001
jns 0x41cb5d
dec ecx
or ecx, 0xfffffffe
inc ecx
add eax, ecx
cmp dword [esi + 0xd4], eax
jg 0x41c9d3
push 0
push 1
push 0x15
push ebx
call sub.IMM32.dll_ImmNotifyIME
jmp 0x41c9d3