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

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, 0x60
mov rsi, r9
mov rdi, r8
mov r13, rcx
mov rcx, rdx
call fcn.1401fd970
mov r15, rax
test rax, rax
je 0x140090813
mov rcx, rdi
call qword [sym.imp.IMM32.dll_ImmGetContext]
mov r12, rax
test rax, rax
je 0x140090813
cmp dword [r13], 0
jge 0x1400905de
mov r8, qword [r15]
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [r8 + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov ecx, dword [rax]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], ecx
mov rax, qword [rsp + 0x28]
mov qword [r13], rax
bt rsi, 0xb
jae 0x140090692
mov r9d, 0x800
mov r8, r12
lea rdx, [rsp + 0x38]
call fcn.140090830
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.140090a80
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x140090643
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x140090643
call fcn.1400daaa8
mov qword [rsp + 0x28], 0xffffffffffffffff
mov rax, qword [rsp + 0x28]
mov qword [r13], rax
mov byte [r13 + 8], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor r14d, r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov rax, qword [r15]
lea rdx, [rsp + 0x48]
mov rcx, r15
call qword [rax + 0x20]
nop
mov dword [rsp + 0x54], r14d
mov rcx, qword [rsp + 0x48]
call fcn.1400e1bf4
jmp 0x1400907f4
test sil, 8
je 0x1400907f4
mov r9d, 8
mov r8, r12
lea rdx, [rsp + 0x40]
call fcn.140090830
mov qword [rsp + 0x38], rax
xor r14d, r14d
mov edi, r14d
mov ebp, r14d
test sil, 0x10
je 0x140090754
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x10]
mov rcx, r12
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov dword [rsp + 0x20], eax
test eax, eax
jle 0x140090754
movsxd rsi, eax
mov rcx, rsi
call fcn.1400e2094
mov rbx, rax
mov r9d, dword [rsp + 0x20]
mov r8, rax
lea edx, [r14 + 0x10]
mov rcx, r12
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
test rsi, rsi
jle 0x140090724
mov ecx, r14d
nop dword [rax]
movzx eax, byte [rcx + rbx]
dec al
test al, 0xfd
je 0x140090724
inc edi
inc rcx
cmp rcx, rsi
jl 0x140090710
mov ebp, edi
movsxd rcx, edi
cmp rcx, rsi
jge 0x140090744
nop
movzx eax, byte [rcx + rbx]
dec al
test al, 0xfd
jne 0x140090744
inc ebp
inc rcx
cmp rcx, rsi
jl 0x140090730
mov rcx, rbx
call fcn.1400e1bf4
mov rsi, qword [rsp + 0xb8]
mov r8d, edi
cmp edi, ebp
cmovl r8d, ebp
mov edx, dword [r13]
lea ecx, [r8 + rdx]
lea eax, [rdx + rdi]
mov dword [rsp + 0x30], eax
cmp eax, ecx
cmovl edi, r8d
add edi, edx
mov dword [rsp + 0x34], edi
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rdx, r15
mov rcx, r13
call fcn.140090a80
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
mov eax, dword [rcx]
nop
test eax, 0x30000000
jne 0x1400907b6
mov ebx, 0xffffffff
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x1400907b6
call fcn.1400daaa8
mov r9, rsi
mov r8, r12
lea rdx, [rsp + 0x48]
mov rcx, r13
call fcn.140090b50
nop
mov r8, qword [r15]
mov rdx, rax
mov rcx, r15
call qword [r8 + 0x20]
nop
mov dword [rsp + 0x54], r14d
mov rcx, qword [rsp + 0x48]
call fcn.1400e1bf4
mov byte [r13 + 8], 1
mov rdi, qword [rsp + 0xb0]
mov r9, r15
mov r8, qword [rsp + 0xa8]
mov rdx, r12
call fcn.140090d10
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.IMM32.dll_ImmReleaseContext]
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret