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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xf8
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov rax, qword [0x1404716f0]
xor rax, rsp
mov qword [rbp + 7], rax
mov rsi, r9
mov qword [rsp + 0x50], r9
mov r14, r8
mov qword [rbp - 0x69], r8
mov rbx, rdx
mov qword [rsp + 0x58], rdx
mov r13, rcx
mov rcx, rdx
call fcn.1401cf900
mov r15, rax
test rax, rax
je 0x140088941
mov rcx, r14
call qword [sym.imp.IMM32.dll_ImmGetContext]
mov r12, rax
test rax, rax
je 0x140088941
cmp dword [r13], 0
jge 0x14008867d
mov rcx, qword [r15]
mov r8, qword [rcx + 0x10]
lea rdx, [rbp - 0x79]
mov rcx, r15
call r8
mov ecx, dword [rax]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], ecx
mov rax, qword [rsp + 0x30]
mov qword [r13], rax
xor edi, edi
bt rsi, 0xb
jae 0x140088744
mov r9d, 0x800
mov r8, r12
lea rdx, [rsp + 0x50]
call fcn.140088970
nop
lea ebx, [rdi - 1]
mov qword [rsp + 0x30], 0xffffffffffffffff
mov r9, qword [rsp + 0x30]
mov r8, rax
mov rdx, r15
mov rcx, r13
call fcn.140088a50
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff0
lea rax, [0x1402be068]
cmp rcx, rax
je 0x1400886e2
mov eax, ebx
lock xadd dword [rcx], eax
test eax, eax
jne 0x1400886e2
call fcn.14010a370
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [rsp + 0x30]
mov qword [r13], rax
mov byte [r13 + 8], 0
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x79], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov rax, qword [r15]
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [rax + 0x20]
nop
lea rax, [rsp + 0x40]
mov qword [rbp - 0x79], rax
mov dword [rsp + 0x4c], edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400888ab
test sil, 8
je 0x1400888b0
mov r9d, 8
mov r8, r12
lea rdx, [rbp - 0x71]
call fcn.140088970
mov qword [rsp + 0x40], rax
xor r14d, r14d
test sil, 0x10
je 0x140088803
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x10]
mov rcx, r12
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov dword [rsp + 0x30], eax
test eax, eax
jle 0x140088803
movsxd rsi, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rbp - 0x61], rax
mov r9d, dword [rsp + 0x30]
mov r8, rax
lea edx, [r14 + 0x10]
mov rcx, r12
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
xor edi, edi
test rsi, rsi
jle 0x1400887d4
xor ecx, ecx
nop
movzx eax, byte [rcx + rbx]
dec al
test al, 0xfd
je 0x1400887d4
inc edi
inc rcx
cmp rcx, rsi
jl 0x1400887c0
mov r14d, edi
movsxd rcx, edi
cmp rcx, rsi
jge 0x1400887f5
nop
movzx eax, byte [rcx + rbx]
dec al
test al, 0xfd
jne 0x1400887f5
inc r14d
inc rcx
cmp rcx, rsi
jl 0x1400887e0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rsp + 0x50]
mov r8d, edi
cmp edi, r14d
cmovl r8d, r14d
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 + 0x40]
mov rdx, r15
mov rcx, r13
call fcn.140088a50
nop
mov rcx, qword [rbp - 0x71]
add rcx, 0xfffffffffffffff0
lea rax, [0x1402be068]
cmp rcx, rax
je 0x140088864
mov ebx, 0xffffffff
lock xadd dword [rcx], ebx
test ebx, ebx
jne 0x140088864
call fcn.14010a370
mov rax, qword [r15]
mov rbx, qword [rax + 0x20]
mov r9, rsi
mov r8, r12
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.140088b20
nop
mov rdx, rax
mov rcx, r15
call rbx
nop
lea rax, [rsp + 0x30]
mov qword [rbp - 0x61], rax
xor edi, edi
mov dword [rsp + 0x3c], edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [r13 + 8], 1
mov r14, qword [rbp - 0x69]
mov rbx, qword [rsp + 0x58]
mov dword [rsp + 0x20], edi
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll___RTDynamicCast
mov rdi, rax
test rax, rax
je 0x140088935
mov rbx, qword [rbx + 8]
mov rcx, qword [r15]
mov r8, qword [rcx + 0x38]
lea rdx, [rbp - 0x29]
mov rcx, r15
call r8
movups xmm0, xmmword [rax]
movaps xmmword [rbp - 0x39], xmm0
lea r9, [rbp - 0x39]
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x59]
call fcn.140090380
mov dword [rbp - 0x19], 0
mov dword [rbp - 0x15], 0x40
mov eax, dword [rbp - 0x59]
mov dword [rbp - 0x11], eax
mov edx, dword [rbp - 0x4d]
add edx, dword [rbp - 0x55]
mov dword [rbp - 0xd], edx
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
lea rdx, [rbp - 0x19]
mov rcx, r12
call qword [sym.imp.IMM32.dll_ImmSetCandidateWindow]
mov rdx, r12
mov rcx, r14
call qword [sym.imp.IMM32.dll_ImmReleaseContext]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14010a310
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret