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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101e6198]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0xe4], 0
test eax, 0x800
je 0x10079ab9
mov eax, dword [ebp + 8]
push eax
call sym.i3FrameworkDx.dll_public:_bool___thiscall_i3Ime::InsertInputFromCompositionString_struct_HWND____
xor al, al
jmp 0x10079cb5
test al, 8
je 0x10079c25
mov ecx, dword [ebp + 8]
push ecx
call sub.IMM32.dll_ImmGetContext
mov edi, eax
test edi, edi
je 0x10079c25
cmp byte [esi + 0xfc], 0
je 0x10079b11
mov edx, dword [esi + 0xf8]
mov eax, dword [esi + 0xf4]
push edx
push eax
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3Ime::DeleteNChars_int__int_
mov eax, dword [esi + 0xf4]
mov ecx, dword [esi + 0xf8]
cmp eax, ecx
jl 0x10079b04
mov eax, ecx
mov dword [esi + 0xbc], eax
mov byte [esi + 0xfc], 0
mov ecx, dword [esi + 0xe0]
push 0
push 0
shr ecx, 4
push 8
push edi
test cl, 1
je 0x10079b2f
call sub.IMM32.dll_ImmGetCompositionStringW
shr eax, 1
jmp 0x10079b34
call sub.IMM32.dll_ImmGetCompositionStringA
push 0
push 0
push 8
push edi
mov dword [ebp - 0xc], eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov ebx, eax
shr eax, 1
mov dword [ebp - 0x10], eax
lea eax, [ebx + 2]
call fcn.100ef320
mov eax, esp
push ebx
push eax
push 8
push edi
mov dword [ebp - 8], eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
xor ecx, ecx
lea ebx, [eax + edx*2]
mov word [ebx], cx
mov eax, dword [esi + 0xe0]
push ecx
push eax
mov ecx, esi
call sym.i3FrameworkDx.dll_protected:_int___thiscall_i3Ime::_GetInputSize_unsigned_int__bool_
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + 0xc4]
add eax, edx
cmp ecx, eax
jge 0x10079ba7
test ecx, ecx
je 0x10079ba7
mov eax, dword [ebp + 8]
push edi
push eax
call sub.IMM32.dll_ImmReleaseContext
mov ecx, esi
call sym.i3FrameworkDx.dll_public:_void___thiscall_i3Ime::SetInputCancel_void_
jmp 0x10079cb3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
push ecx
push ebx
push edx
lea ecx, [esi + 0x60]
call fcn.100799c0
mov eax, dword [ebp + 8]
push edi
push eax
call sub.IMM32.dll_ImmReleaseContext
push 0
push 0
push 0x80
push edi
mov byte [esi + 0xe9], 1
call sub.IMM32.dll_ImmGetCompositionStringW
and eax, 0xffff
lea edi, [esi + 0x98]
push edi
mov ecx, esi
mov dword [esi + 0xc0], eax
mov dword [esi + 0xe4], 3
call sym.i3FrameworkDx.dll_public:_int___thiscall_i3Ime::GetText_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int____
cmp byte [esi + 0xe8], 0
jne 0x10079c0b
mov ecx, edi
call fcn.10076a90
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10079c25
mov eax, dword [esi + 0xe4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
push 0
push eax
push esi
push 6
call edx
test byte [ebp + 0x10], 0x10
je 0x10079cb3
mov eax, dword [ebp + 8]
push eax
call sub.IMM32.dll_ImmGetContext
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x10079cb3
push 0
push 0
push 0x10
push ebx
call sub.IMM32.dll_ImmGetCompositionStringW
mov edi, eax
test edi, edi
jle 0x10079ca9
call fcn.100ef320
mov ecx, dword [ebp - 8]
mov ebx, esp
push edi
push ebx
push 0x10
push ecx
call sub.IMM32.dll_ImmGetCompositionStringW
xor eax, eax
test edi, edi
jle 0x10079c82
lea ecx, [ecx]
mov cl, byte [eax + ebx]
cmp cl, 1
je 0x10079c82
cmp cl, 3
je 0x10079c82
inc eax
cmp eax, edi
jl 0x10079c70
cmp eax, edi
mov ecx, eax
jge 0x10079c9a
mov dl, byte [eax + ebx]
jmp 0x10079c90
cmp byte [ecx + ebx], dl
jne 0x10079c9a
inc ecx
cmp ecx, edi
jl 0x10079c90
mov ebx, dword [ebp - 8]
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb8], ecx
mov edx, dword [ebp + 8]
push ebx
push edx
call sub.IMM32.dll_ImmReleaseContext
mov al, 1
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ed375
mov esp, ebp
pop ebp
ret 0xc