Function at 0x1400a7900
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x248], rbx
mov r13, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rcx + 0x1b68], 1
xor r9d, r9d
mov edx, 0x110a
lea r8d, [r9 + 9]
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, rax
mov r9, rdi
mov edx, 0x110b
mov r8d, 9
mov rcx, qword [rsi + 0x98]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [rsi + 0xa60]
mov dword [rbp - 0x30], ILCombine
mov qword [rbp - 0x28], rdi
lea r9, [rbp - 0x30]
xor r8d, r8d
mov edx, 0x113e
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd rcx, dword [rbp]
shl rcx, 4
add rcx, qword [rbx + 0x280]
mov rcx, qword [rcx]
call qword [sym.imp.SHELL32.dll_ILClone]
mov r14, rax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, [0x1400fa1e0]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHBindToParent]
test eax, eax
js 0x1400a7bda
mov r9, rdi
mov edx, 0x110a
mov r8d, 3
mov rcx, qword [rsi + 0x98]
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
jne 0x1400a7a18
mov rax, rdi
test rdi, rdi
je 0x1400a7bcf
mov rbx, qword [rsi + 0xa60]
mov dword [rbp + 0x20], ILCombine
mov qword [rbp + 0x28], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov edx, 0x113e
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd rcx, dword [rbp + 0x50]
shl rcx, 4
add rcx, qword [rbx + 0x280]
mov rcx, qword [rcx]
call qword [sym.imp.SHELL32.dll_ILClone]
mov r12, rax
test rax, rax
je 0x1400a7bcf
xor ebx, ebx
mov dword [rsi + 0x1b80], ebx
mov qword [rsp + 0x68], rbx
lea ecx, [rbx + 0x18]
call fcn.14004b164
mov rdi, rax
test rax, rax
je 0x1400a7ba0
mov qword [rsp + 0x60], rax
mov qword [rax], rax
mov qword [rax + 8], rax
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, rax
call fcn.14000bda0
mov qword [rsp + 0x68], 1
mov qword [rdi + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0xd0]
call fcn.14000b2c0
mov r9, rax
mov r8, r12
mov rdx, qword [rsi + 0x68]
lea rcx, [rbp + 0x70]
call fcn.1400e6550
nop
mov dword [rsp + 0x44], 1
mov rbx, qword [rsi + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.14000a680
mov qword [rsp + 0x78], rbx
mov byte [rbp - 0x58], 0
mov dword [rbp - 0x80], 0
mov ecx, reloc.SHELL32.dll_ILFindLastID
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r11d, ax
and r11d, 0x80
cmp qword [rbp + 0x88], 0
je 0x1400a7b50
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8, r13
lea rdx, [rsi + 0x28]
lea rcx, [rbp + 0x70]
call fcn.1400e6ad0
mov rcx, r12
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rcx, [rbp - 0x70]
call fcn.14000a6f0
mov rcx, qword [rbp - 0x70]
call fcn.14004b088
nop
lea rcx, [rbp + 0x70]
call fcn.1400e6480
nop
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rcx, rdi
je 0x1400a7b96
mov rbx, qword [rcx]
call fcn.14004b088
mov rcx, rbx
cmp rbx, rdi
jne 0x1400a7b86
mov rcx, rdi
call fcn.14004b088
jmp 0x1400a7bcf
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x48]
call fcn.14004b2d4
lea r11, vtable.std::bad_alloc.0
mov qword [rbp - 0x48], r11
lea rdx, [0x140132320]
lea rcx, [rbp - 0x48]
call fcn.14004d894
int3
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + reloc.SHELL32.dll_ILFindLastID]
cmp dword [rsi + 0x1b80], 0
jne 0x1400a7bfe
mov r9, r15
mov edx, 0x110b
mov r8d, 9
mov rcx, qword [rsi + 0x98]
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsi + 0x1b68], 0
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x248]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret