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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, r9
mov rdi, r8
mov r13, rcx
mov rcx, rdx
call fcn.1401fbc00
mov r15, rax
test rax, rax
je 0x14008fb83
mov rcx, rdi
call qword [sym.imp.IMM32.dll_ImmGetContext]
mov r12, rax
test rax, rax
je 0x14008fb83
cmp dword [r13], 0
jge 0x14008f94e
mov r8, qword [r15]
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [r8 + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov ecx, dword [rax]
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x24], ecx
mov rax, qword [rsp + 0x20]
mov qword [r13], rax
bt rsi, 0xb
jae 0x14008fa02
mov r9d, 0x800
mov r8, r12
lea rdx, [rsp + 0x28]
call fcn.14008fba0
nop
mov ebx, 0xffffffff
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, qword [rsp + 0x20]
mov r8, rax
mov rdx, r15
mov rcx, r13
call fcn.14008fdf0
nop
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14008f9b3
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x14008f9b3
call fcn.1400da0f0
mov qword [rsp + 0x20], 0xffffffffffffffff
mov rax, qword [rsp + 0x20]
mov qword [r13], rax
mov byte [r13 + 8], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov rax, qword [r15]
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [rax + 0x20]
nop
mov dword [rsp + 0x3c], r14d
mov rcx, qword [rsp + 0x30]
call fcn.1400e0818
jmp 0x14008fb64
test sil, 8
je 0x14008fb64
mov r9d, 8
mov r8, r12
lea rdx, [rsp + 0x30]
call fcn.14008fba0
mov qword [rsp + 0x28], rax
xor r14d, r14d
mov edi, r14d
mov ebp, r14d
test sil, 0x10
je 0x14008fac4
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, r12
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov dword [rsp + 0x20], eax
test eax, eax
jle 0x14008fac4
movsxd rsi, eax
mov rcx, rsi
call fcn.1400e0cb8
mov rbx, rax
mov r9d, dword [rsp + 0x20]
mov r8, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, r12
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
test rsi, rsi
jle 0x14008fa94
mov ecx, r14d
nop
movzx eax, byte [rcx + rbx]
dec al
test al, 0xfd
je 0x14008fa94
inc edi
inc rcx
cmp rcx, rsi
jl 0x14008fa80
mov ebp, edi
movsxd rcx, edi
cmp rcx, rsi
jge 0x14008fab4
nop
movzx eax, byte [rcx + rbx]
dec al
test al, 0xfd
jne 0x14008fab4
inc ebp
inc rcx
cmp rcx, rsi
jl 0x14008faa0
mov rcx, rbx
call fcn.1400e0818
mov rsi, qword [rsp + 0x98]
mov r8d, edi
cmp edi, ebp
cmovl r8d, ebp
mov edx, dword [r13]
lea ecx, [r8 + rdx]
lea eax, [rdx + rdi]
mov dword [rsp + 0x20], eax
cmp eax, ecx
cmovl edi, r8d
add edi, edx
mov dword [rsp + 0x24], edi
mov r9, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov rdx, r15
mov rcx, r13
call fcn.14008fdf0
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x14008fb26
mov ebx, 0xffffffff
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x14008fb26
call fcn.1400da0f0
mov r9, rsi
mov r8, r12
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.14008fec0
nop
mov r8, qword [r15]
mov rdx, rax
mov rcx, r15
call qword [r8 + 0x20]
nop
mov dword [rsp + 0x3c], r14d
mov rcx, qword [rsp + 0x30]
call fcn.1400e0818
mov byte [r13 + 8], 1
mov rdi, qword [rsp + 0x90]
mov r9, r15
mov r8, qword [rsp + 0x88]
mov rdx, r12
call fcn.140090080
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.IMM32.dll_ImmReleaseContext]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret