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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x40]
call sub.IMM32.dll_ImmGetContext
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x10047d48
mov eax, 1
jmp 0x10048102
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xe4], 0
je 0x10047d7b
mov rax, qword [rsp + 0x50]
add rax, 0x200
mov rcx, qword [rsp + 0x50]
add rcx, 0x184
mov r8d, 0x3e
mov rdx, rax
call fcn.10029e00
mov rax, qword [rsp + 0x60]
and rax, 0x800
test rax, rax
je 0x10047e5c
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xe0], 0
mov rax, qword [rsp + 0x50]
add rax, 0x1c2
mov r9d, 0x3e
mov r8, rax
mov edx, 0x800
mov rcx, qword [rsp + 0x28]
call sub.IMM32.dll_ImmGetCompositionStringW
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xb4], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xb4], 0
jle 0x10047e57
mov rcx, qword [rsp + 0x50]
call fcn.10045960
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
add rax, 0x184
mov rcx, qword [rsp + 0x50]
add rcx, 0x200
mov r8d, 0x3e
mov rdx, rax
call fcn.10029e00
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xa8]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xa8], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xac]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xac], eax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 0xac]
mov dword [rax + 0xb0], ecx
jmp 0x100480d1
mov rax, qword [rsp + 0x60]
and rax, 8
test rax, rax
je 0x100480c2
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc8]
and eax, 0x10000
test eax, eax
jne 0x10047e89
xor eax, eax
jmp 0x10048102
mov rax, qword [rsp + 0x50]
add rax, 0x1c2
mov r9d, 0x3e
mov r8, rax
mov edx, 8
mov rcx, qword [rsp + 0x28]
call sub.IMM32.dll_ImmGetCompositionStringW
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xb4], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x2d4], 3
je 0x1004803f
mov rax, qword [rsp + 0x60]
and rax, 0x10
test rax, rax
je 0x10047f05
mov rax, qword [rsp + 0x50]
add rax, 0xe8
mov r9d, 0x1f
mov r8, rax
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, qword [rsp + 0x28]
call sub.IMM32.dll_ImmGetCompositionStringW
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xbc], eax
mov rax, qword [rsp + 0x60]
and rax, 0x80
test rax, rax
je 0x10047f35
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [rsp + 0x28]
call sub.IMM32.dll_ImmGetCompositionStringW
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xb8], eax
mov rax, qword [rsp + 0x60]
and rax, 0x20
test rax, rax
je 0x10047f66
mov rax, qword [rsp + 0x50]
add rax, 0x108
mov r9d, 0x7c
mov r8, rax
mov edx, 0x20
mov rcx, qword [rsp + 0x28]
call sub.IMM32.dll_ImmGetCompositionStringW
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x2d4], 1
je 0x10047f98
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x2d4], 4
jne 0x1004803f
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x2dc], 0
jne 0x1004803f
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xe0], 1
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xb8]
mov dword [rsp + 0x20], eax
jmp 0x10047fcb
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xbc]
cmp dword [rsp + 0x20], eax
jge 0x10048004
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax + 0xe8]
cmp eax, 1
jne 0x10048000
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
jmp 0x10048002
jmp 0x10048004
jmp 0x10047fc0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xac]
mov rcx, qword [rsp + 0x50]
add eax, dword [rcx + 0xb8]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xc0], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc0]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xc4], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xb4], 0
jle 0x100480c0
mov rcx, qword [rsp + 0x50]
call fcn.10045960
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x2d4], 3
je 0x100480c0
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x2d4], 2
jne 0x1004809f
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xb4]
cdq
sub eax, edx
sar eax, 1
mov rcx, qword [rsp + 0x50]
add eax, dword [rcx + 0xac]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xb0], eax
jmp 0x100480c0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xac]
mov rcx, qword [rsp + 0x50]
add eax, dword [rcx + 0xb8]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0xb0], eax
jmp 0x100480d1
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xb4], 0
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x40]
call sub.IMM32.dll_ImmReleaseContext
mov rcx, qword [rsp + 0x50]
call fcn.10046380
mov edx, 1
mov rcx, qword [rsp + 0x50]
call fcn.10002200
mov eax, 1
add rsp, 0x48
ret