Function at 0x140049508
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1402d18f8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
xor r14d, r14d
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x50], r14
mov ebx, edx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x370]
test al, 1
je 0x14004974b
cmp byte [rdi + 0x210], r14b
jne 0x140049577
call qword [sym.imp.USER32.dll_GetCapture]
mov rcx, rax
call fcn.14001d010
cmp rax, rdi
je 0x1400495ad
cmp byte [rdi + 0x210], r14b
je 0x14004958a
call qword [sym.imp.USER32.dll_GetCapture]
mov rcx, rax
call fcn.14001d010
cmp rax, rdi
jne 0x1400495ad
mov ecx, 0x17
call qword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb ecx, ecx
neg ecx
inc ecx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x1400495ca
cmp dword [rdi + 0x4d8], r14d
jne 0x1400495ca
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov byte [rdi + 0x210], r14b
mov byte [rdi + 0x408], r14b
cmp byte [rdi + 0x408], r14b
je 0x140049774
mov rcx, qword [rdi + 0x40]
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
call qword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [rdi + 0x409], r14b
jne 0x140049610
mov rdx, qword [rbp - 0x50]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_PtInRect]
cmp eax, 1
sete al
mov byte [rdi + 0x409], al
mov rax, qword [rdi + 0x240]
lea rdx, [rbp - 0x48]
mov ecx, dword [rbp - 0x50]
sub ecx, eax
shr rax, 0x20
mov dword [rbp - 0x30], ecx
mov ecx, dword [rbp - 0x4c]
sub ecx, eax
mov rax, qword [rbp - 0x50]
mov qword [rdi + 0x240], rax
mov rax, qword [rdi + 0x208]
mov dword [rbp - 0x2c], ecx
mov rcx, qword [rdi + 0x40]
mov qword [rbp - 0x48], rax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov rax, qword [rbp - 0x48]
mov rcx, rdi
mov ebx, dword [rbp - 0x50]
mov esi, dword [rbp - 0x4c]
sub ebx, eax
mov rdx, qword [rbp - 0x30]
shr rax, 0x20
sub esi, eax
call fcn.140061afc
mov ecx, ebx
call fcn.1401db270
cmp eax, dword [0x1402ddb00]
jg 0x14004968f
mov ecx, esi
call fcn.1401db270
cmp eax, dword [0x1402ddb04]
jle 0x14004979a
cmp byte [rdi + 0x409], r14b
je 0x14004979a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x2d8]
test eax, eax
je 0x1400496ec
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.14001d010
mov rdx, rax
lea rcx, str.CMFCBaseTabCtrl
call fcn.140029da8
test rax, rax
je 0x140049741
mov r10, qword [rax]
xor r9d, r9d
or r8d, 0xffffffff
mov rcx, rax
lea edx, [r9 + 1]
call qword [r10 + 0x340]
jmp 0x140049741
movups xmm0, xmmword [rdi + 0x2c0]
mov rax, qword [rdi]
lea rdx, [rbp - 0x30]
mov r9b, 1
mov r8d, 1
mov rcx, rdi
movdqu xmmword [rbp - 0x30], xmm0
call qword [rax + 0x3f8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x338]
mov rdx, rax
lea rcx, vtable.CGlobalUtils.0
call fcn.1401254f4
xor r9d, r9d
lea rcx, vtable.CGlobalUtils.0
xor r8d, r8d
mov rdx, rax
call fcn.1401253a0
mov word [rdi + 0x408], r14w
jmp 0x14004979a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x370]
test al, 2
je 0x140049774
cmp byte [rdi + 0x408], r14b
je 0x140049774
mov r8, qword [rbp + 0x40]
mov edx, ebx
mov rcx, rdi
call fcn.140060944
jmp 0x14004979a
mov rax, qword [rbp + 0x40]
lea rdx, [rbp - 0x40]
mov rcx, qword [rdi + 0x40]
mov qword [rbp - 0x40], rax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov rax, qword [rdi]
mov rcx, rdi
mov rdx, qword [rbp - 0x40]
call qword [rax + 0x710]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401cf0f0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret