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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x568fd0]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x2d4]
push eax
mov dword [esp + 0x14], edi
call sub.IMM32.dll_ImmGetContext
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
je 0x471000
mov ebx, dword [edi + 0x2c8]
cmp dword [ebx + 0x64], 0
jl 0x470d40
call fcn.0049ca40
jmp 0x470d5c
mov eax, dword [edi]
mov bl, byte [edi + 4]
mov edx, dword [eax + 0x4c]
push 0
push 0
push 0x5379d8
mov ecx, edi
mov byte [edi + 4], 0
call edx
mov byte [edi + 4], bl
mov eax, dword [ebp + 8]
mov byte [edi + 0xb26], 0
test al, 8
je 0x470d8d
push 0xc8
lea eax, [esp + 0x114]
push eax
push 8
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
setne byte [esp + 0xf]
jmp 0x470dbc
test eax, 0x800
je 0x470f71
push 0xc8
lea ecx, [esp + 0x114]
push ecx
push 0x800
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
sete byte [esp + 0xf]
cmp ebx, 1
jl 0x470f71
mov eax, dword [edi + 0x2c8]
test eax, eax
je 0x470e08
cmp dword [eax + 0x1ec], 0xfde9
jne 0x470e08
mov esi, ebx
lea edi, [esp + 0x110]
call fcn.00479420
mov esi, eax
lea edx, [esp + 0x48]
push esi
push edx
mov dword [esp + 0x20], esi
call fcn.00479480
mov edi, dword [esp + 0x18]
add esp, 8
mov byte [esp + esi + 0x48], 0
jmp 0x470e38
push 0
push 0
push 0xc7
lea eax, [esp + 0x54]
push eax
push ebx
lea ecx, [esp + 0x124]
push ecx
push 0
call fcn.00470450
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], eax
mov byte [esp + eax + 0x48], 0
mov esi, eax
cmp byte [esp + 0xf], 0
push 0
push esi
je 0x470f5f
mov eax, dword [edi + 0x2c8]
mov bl, byte [edi + 0xcc8]
add eax, 0x4c
mov byte [edi + 0xb26], 1
mov byte [edi + 0xcc8], 0
mov edx, dword [eax + 0xc]
mov dword [eax + 0x18], edx
mov eax, dword [edi]
mov edx, dword [eax + 0x4c]
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call edx
mov byte [edi + 0xcc8], bl
mov eax, dword [edi + 0x260]
sub eax, dword [edi + 0x25c]
xor esi, esi
sar eax, 4
test eax, eax
jbe 0x470f6d
mov dword [esp + 0x10], esi
mov ecx, dword [edi + 0x260]
sub ecx, dword [edi + 0x25c]
sar ecx, 4
cmp esi, ecx
jb 0x470eb2
call fcn.00501daa
mov eax, dword [edi + 0x25c]
add eax, dword [esp + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
lea ebx, [eax + 8]
cmp ecx, edx
jne 0x470ece
mov edx, dword [ebx + 4]
cmp edx, dword [eax + 4]
setl cl
test cl, cl
je 0x470ed7
mov eax, ebx
mov ecx, dword [edi + 0x260]
sub ecx, dword [edi + 0x25c]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
sar ecx, 4
mov dword [esp + 0x44], eax
cmp esi, ecx
jb 0x470ef8
call fcn.00501daa
mov eax, dword [edi + 0x25c]
add eax, dword [esp + 0x10]
sub ebx, dword [esp + 0x18]
mov dword [eax + 4], 0
mov dword [eax], ebx
mov edx, dword [edi + 0x260]
sub edx, dword [edi + 0x25c]
sar edx, 4
cmp esi, edx
jb 0x470f27
call fcn.00501daa
mov eax, dword [edi + 0x25c]
mov ecx, dword [esp + 0x10]
lea eax, [ecx + eax + 8]
add ecx, 0x10
mov dword [esp + 0x10], ecx
mov dword [eax], ebx
mov dword [eax + 4], 0
mov ecx, dword [edi + 0x260]
sub ecx, dword [edi + 0x25c]
inc esi
sar ecx, 4
cmp esi, ecx
jb 0x470e9a
jmp 0x470f6d
mov edx, dword [edi]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x50]
push eax
mov ecx, edi
call edx
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x260]
sub eax, dword [edi + 0x25c]
mov ebx, dword [edi + 0x290]
sar eax, 4
cmp ebx, eax
jb 0x470f8f
call fcn.00501daa
mov eax, dword [edi + 0x25c]
shl ebx, 4
mov ecx, dword [ebx + eax + 4]
mov edx, dword [ebx + eax]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00484d60
fld dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x40
call fcn.00505040
fild dword [edi + 0x948]
mov dword [esp + 0x28], eax
fadd dword [esp + 0x1c]
call fcn.00505040
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x34], eax
call sub.IMM32.dll_ImmSetCandidateWindow
mov esi, edi
call fcn.00488080
mov edx, dword [esp + 0x14]
mov eax, dword [edi + 0x2d4]
push edx
push eax
call sub.IMM32.dll_ImmReleaseContext
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00501b9a
mov esp, ebp
pop ebp
ret 4