Function at 0x140219048
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, rdx
mov r14, rcx
mov eax, dword [rdx + 8]
cmp eax, 0x14
jne 0x140219081
mov eax, 1
jmp 0x14021963d
xor r15d, r15d
cmp dword [rcx + 0xf8], r15d
jne 0x140219638
lea r12d, [r15 + 1]
cmp eax, 0x201
jne 0x1402190e7
mov rdi, qword [rcx + 0xe8]
cmp dword [rdi + 0x290], r15d
je 0x140219264
cmp dword [rdi + 0x140], r15d
jne 0x140219264
mov rax, qword [rcx + 0x40]
cmp qword [rdx], rax
je 0x140219264
mov rax, qword [rdi]
mov rbx, qword [rax + 0x448]
mov rcx, rbx
call fcn.14029e28c
xor edx, edx
mov rcx, rdi
call rbx
mov eax, dword [r13 + 8]
cmp eax, 0x200
jne 0x140219264
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1b8]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
test eax, eax
jne 0x140219264
lea ecx, [rax + 0x17]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb ecx, ecx
neg ecx
add ecx, r12d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x140219155
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.1400fe1b8
cmp rax, r14
je 0x140219155
mov eax, r12d
jmp 0x14021963d
mov esi, 0x105
cmp dword [r14 + 0xf0], r15d
jne 0x14021919c
mov dword [r14 + 0xf0], r12d
mov dword [rbp - 0x20], 0x18
mov dword [rbp - 0x1c], 2
mov rax, qword [r14 + 0x40]
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_TrackMouseEvent]
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_RedrawWindow]
cmp dword [r14 + 0xf4], r15d
jne 0x140219264
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x148]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
test rax, rax
je 0x140219264
mov qword [rbp + 0x48], r15
lea rcx, [rbp + 0x48]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov dword [r14 + 0xf4], r12d
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, qword [r14 + 0x40]
call qword [sym.imp.USER32.dll_RedrawWindow]
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x148]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
lea rdx, [rbp + 0x48]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movzx esi, word [rbp + 0x4c]
shl esi, 0x10
movzx eax, word [rbp + 0x48]
or rsi, rax
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x148]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
mov r9, rsi
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov esi, 0x100
cmp dword [r13 + 8], esi
jne 0x140219632
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1b8]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
test eax, eax
jne 0x140219632
mov edx, dword [r13 + 0x10]
mov rcx, r14
call fcn.140219660
test eax, eax
jne 0x14021914d
mov rax, qword [r13 + 0x10]
cmp rax, 9
je 0x14021960c
cmp rax, 0xd
je 0x14021946e
cmp rax, 0x1b
je 0x14021938b
cmp rax, 0x20
jbe 0x140219632
cmp rax, 0x22
jbe 0x14021933d
cmp rax, 0x26
je 0x14021933d
cmp rax, 0x28
jne 0x140219632
mov rdi, qword [r14 + 0xe8]
cmp dword [rdi + 0x288], r15d
je 0x14021933d
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1c8]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
test eax, eax
jne 0x14021933d
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x530]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
jmp 0x14021914d
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1c8]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
test eax, eax
je 0x140219632
mov rax, qword [0x1403faa88]
test rax, rax
je 0x140219373
mov r15, qword [rax + 0x40]
mov r9, qword [r13 + 0x18]
mov r8, qword [r13 + 0x10]
mov edx, esi
mov rcx, r15
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14021914d
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1c8]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
test eax, eax
je 0x1402193c9
mov rcx, qword [0x1403faa88]
test rcx, rcx
je 0x1402193c9
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, qword [rcx + 0x40]
jmp 0x140219380
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1c8]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
test eax, eax
jne 0x140219422
mov rdx, qword [r14 + 0x100]
mov rcx, r14
call fcn.140105e74
mov rcx, qword [r14 + 0x100]
sub rcx, 0x18
call fcn.140015740
add rax, 0x18
mov qword [rbp + 0x58], rax
lea rdx, [rbp + 0x58]
mov rcx, qword [r14 + 0xe8]
call fcn.140219bd4
mov rcx, r14
call fcn.1400fe864
test rax, rax
je 0x140219632
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1c8]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
test eax, eax
jne 0x140219632
mov rcx, r14
call fcn.1400fe864
mov rcx, rax
call fcn.140105d14
jmp 0x14021914d
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1c8]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
test eax, eax
jne 0x140219632
call fcn.1400f9930
mov rdi, rax
test rax, rax
je 0x140219655
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
add rax, 0x18
mov qword [rbp + 0x50], rax
lea rdx, [rbp + 0x50]
mov rcx, r14
call fcn.1400fe9f8
mov rcx, qword [rbp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140015740
add rax, 0x18
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
mov rcx, qword [r14 + 0xe8]
call fcn.140219bd4
mov edx, r12d
mov rcx, qword [r14 + 0xe8]
call fcn.1401f5578
mov rax, qword [r14 + 0xe8]
mov rcx, qword [rax + 0xf8]
test rcx, rcx
je 0x14021957b
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.1400fe1b8
test rax, rax
mov rcx, r15
je 0x140219532
mov rcx, qword [rax + 0x40]
mov rax, qword [0x1403faa88]
test rax, rax
jne 0x140219543
mov rax, r15
jmp 0x140219547
mov rax, qword [rax + 0x40]
cmp rcx, rax
jne 0x14021957b
mov rcx, qword [r14 + 0xe8]
mov rcx, qword [rcx + 0xf8]
call fcn.1401508a4
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0xc0]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
jmp 0x1402195a7
mov rcx, r14
call fcn.1400fe864
test rax, rax
je 0x1402195dd
mov rax, qword [r14 + 0xe8]
mov dword [rax + 0x294], r15d
mov rcx, r14
call fcn.1400fe864
mov rcx, rax
call fcn.140105d14
nop
mov rsi, qword [rbp + 0x50]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x14021914d
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.14029e28c
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
jmp 0x14021914d
mov rsi, qword [rbp + 0x50]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x140219632
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call fcn.14029e28c
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
jmp 0x140219632
mov rdi, qword [r14 + 0xe8]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x1a8]
mov rcx, rbx
call fcn.14029e28c
mov rcx, rdi
call rbx
test eax, eax
je 0x14021914d
mov rdx, r13
mov rcx, r14
call fcn.14010155c
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.14000de90
int3