Function at 0x1401f6460
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, 0xc8
mov rax, qword [0x14033d010]
xor rax, rsp
mov qword [rbp + 0xf], rax
mov rsi, r9
mov qword [rbp - 0x59], r9
mov r14, r8
mov qword [rbp - 0x69], r8
mov rbx, rdx
mov qword [rbp - 0x31], rdx
mov r15, rcx
mov rcx, rdx
call fcn.1401ede00
mov r12, rax
mov rcx, r14
call qword [sym.imp.IMM32.dll_ImmGetContext]
mov r13, rax
test r12, r12
je 0x1401f6772
test rax, rax
je 0x1401f6772
cmp dword [r15], 0
jge 0x1401f64e9
mov rcx, qword [r12]
mov r8, qword [rcx + 0x10]
lea rdx, [rbp - 0x19]
mov rcx, r12
call r8
mov ecx, dword [rax]
mov dword [r15], ecx
mov dword [r15 + 4], ecx
xor edi, edi
bt rsi, 0xb
jae 0x1401f6580
lea ebx, [rdi - 1]
mov qword [rbp - 0x79], 0xffffffffffffffff
mov r9d, 0x800
mov r8, r13
lea rdx, [rbp - 0x71]
call fcn.1401f67a0
nop
lea r9, [rbp - 0x79]
mov r8, rax
mov rdx, r12
mov rcx, r15
call fcn.1401f6870
nop
mov rcx, qword [rbp - 0x71]
add rcx, 0xfffffffffffffff0
lea rax, [0x140273478]
cmp rcx, rax
je 0x1401f654c
mov eax, ebx
lock xadd dword [rcx], eax
dec eax
cmp eax, ebx
jne 0x1401f654c
call fcn.14022dcf0
mov qword [r15], 0xffffffffffffffff
mov byte [r15 + 8], 0
mov rax, qword [r12]
mov qword [rbp - 0x49], rdi
mov dword [rbp - 0x41], edi
mov dword [rbp - 0x39], edi
lea rdx, [rbp - 0x49]
mov rcx, r12
call qword [rax + 0x20]
nop
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1401f66cc
test sil, 8
je 0x1401f66d0
xor r14d, r14d
test sil, 0x10
je 0x1401f6622
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x10]
mov rcx, r13
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov dword [rbp - 0x79], eax
test eax, eax
jle 0x1401f6622
movsxd rsi, eax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov r9d, dword [rbp - 0x79]
mov r8, rax
lea edx, [r14 + 0x10]
mov rcx, r13
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
test rsi, rsi
jle 0x1401f65f4
xor ecx, ecx
nop dword [rax + rax]
movzx eax, byte [rcx + rbx]
dec al
test al, 0xfd
je 0x1401f65f4
inc edi
inc rcx
cmp rcx, rsi
jl 0x1401f65e0
mov r14d, edi
movsxd rcx, edi
cmp rcx, rsi
jge 0x1401f6615
nop
movzx eax, byte [rbx + rcx]
dec al
test al, 0xfd
jne 0x1401f6615
inc r14d
inc rcx
cmp rcx, rsi
jl 0x1401f6600
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rbp - 0x59]
mov r8d, edi
cmp edi, r14d
cmovl r8d, r14d
mov edx, dword [r15]
lea ecx, [r8 + rdx]
lea eax, [rdx + rdi]
mov dword [rbp - 0x71], eax
cmp eax, ecx
cmovl edi, r8d
add edi, edx
mov dword [rbp - 0x6d], edi
mov r9d, 8
mov r8, r13
lea rdx, [rbp - 0x21]
call fcn.1401f67a0
nop
lea r9, [rbp - 0x71]
mov r8, rax
mov rdx, r12
mov rcx, r15
call fcn.1401f6870
nop
mov rcx, qword [rbp - 0x21]
add rcx, 0xfffffffffffffff0
lea rax, [0x140273478]
cmp rcx, rax
je 0x1401f6693
mov ebx, 0xffffffff
lock xadd dword [rcx], ebx
dec ebx
cmp ebx, 0xffffffff
jne 0x1401f6693
call fcn.14022dcf0
mov rax, qword [r12]
mov rbx, qword [rax + 0x20]
mov r9, rsi
mov r8, r13
lea rdx, [rbp - 0x49]
mov rcx, r15
call fcn.1401f6940
nop
mov rdx, rax
mov rcx, r12
call rbx
nop
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [r15 + 8], 1
mov r14, qword [rbp - 0x69]
xor edi, edi
mov rbx, qword [rbp - 0x31]
mov dword [rsp + 0x20], edi
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, r12
call sub.VCRUNTIME140.dll___RTDynamicCast
mov rdi, rax
test rax, rax
je 0x1401f6766
mov rbx, qword [rbx + 8]
mov rcx, qword [r12]
mov r8, qword [rcx + 0x38]
lea rdx, [rbp - 0x31]
mov rcx, r12
call r8
mov ecx, dword [rax]
mov dword [rbp - 0x69], ecx
mov ecx, dword [rax + 4]
mov dword [rbp - 0x65], ecx
mov ecx, dword [rax + 8]
mov dword [rbp - 0x61], ecx
mov eax, dword [rax + 0xc]
mov dword [rbp - 0x5d], eax
lea r9, [rbp - 0x69]
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x59]
call fcn.1401fbbb0
mov dword [rbp - 0x11], 0
mov dword [rbp - 0xd], 0x40
mov eax, dword [rbp - 0x59]
mov dword [rbp - 9], eax
mov edx, dword [rbp - 0x4d]
add edx, dword [rbp - 0x55]
mov dword [rbp - 5], edx
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
lea rdx, [rbp - 0x11]
mov rcx, r13
call qword [sym.imp.IMM32.dll_ImmSetCandidateWindow]
mov rdx, r13
mov rcx, r14
call qword [sym.imp.IMM32.dll_ImmReleaseContext]
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.14022d970
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret