Function at 0x140050950
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x14008a698]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov ebp, dword [r8 + 8]
mov r14, r8
cmp ebp, 0x7e
jne 0x140050993
call fcn.140054a90
jmp 0x140050c31
lea eax, [rbp - 0x200]
cmp eax, 0xe
jbe 0x1400509ad
lea eax, [rbp - 0x100]
cmp eax, 9
ja 0x140050c31
mov rbx, qword [r8]
xor r15d, r15d
mov esi, r15d
test rbx, rbx
je 0x140050c31
mov rcx, rbx
call qword [sym.imp.Qt5Widgets.dll_public:_static_class_QWidget____ptr64___cdecl_QWidget::find_unsigned_long_long_unsigned___int64__]
mov rdi, rax
test rax, rax
je 0x1400509f7
lea rdx, str.QAxHostWidget
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_bool___cdecl_QObject::inherits_char_const____ptr64_const___ptr64]
test al, al
je 0x1400509f7
mov rcx, qword [sym.imp.Qt5Widgets.dll_struct_QMetaObject_const_QWidget::staticMetaObject]
mov rdx, rdi
call qword [sym.imp.Qt5Core.dll_public:_class_QObject____ptr64___cdecl_QMetaObject::cast_class_QObject____ptr64_const___ptr64]
mov rsi, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
test rsi, rsi
je 0x1400509b6
mov rcx, rsi
call qword [sym.imp.Qt5Widgets.dll_public:_class_QWidget____ptr64___cdecl_QWidget::parentWidget_void_const___ptr64]
test rax, rax
je 0x140050c31
mov rcx, qword [rax]
lea rdx, str.QAxWidget
mov r8, qword [rcx + 8]
mov rcx, rax
call r8
mov rdi, rax
test rax, rax
je 0x140050c31
mov rcx, rsi
call qword [sym.imp.Qt5Widgets.dll_public:_unsigned_long_long_unsigned___int64____cdecl_QWidget::winId_void_const___ptr64]
cmp qword [r14], rax
je 0x140050c31
lea ecx, [rbp - 0x100]
cmp ecx, 9
ja 0x140050ab3
mov rbx, qword [rsi + 0x38]
mov edi, 1
or byte [rbx + 0x38], 1
cmp qword [rbx + 0x58], r15
je 0x140050a9a
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x140050a9a
mov rax, qword [rcx]
mov r8d, dword [r14 + 0x10]
mov edx, dword [r14 + 8]
call qword [rax + 0x178]
test al, al
je 0x140050a9a
mov rcx, qword [rbx + 0x58]
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edi, eax
test byte [rbx + 0x38], 1
je 0x140050c31
test edi, edi
jne 0x140050c31
mov al, 1
jmp 0x140050c33
mov eax, 0x200
lea r8, [0x140068b40]
mov edx, r15d
cmp ebp, eax
je 0x140050ae6
mov rcx, r15
nop dword [rax]
test ax, ax
je 0x140050ae6
movzx eax, word [r8 + rcx*2 + 6]
add rcx, 3
add edx, 3
cmp eax, ebp
jne 0x140050ad0
movsxd rax, edx
cmp word [r8 + rax*2], r15w
je 0x140050c31
movzx esi, word [r8 + rax*2 + 2]
movzx edx, word [r8 + rax*2 + 4]
cmp esi, 5
jne 0x140050b1f
mov rax, qword [rdi + 0x28]
mov ecx, dword [rax + 8]
shr ecx, 2
test cl, 1
jne 0x140050b1c
test edx, edx
je 0x140050c31
cmp esi, 5
cmovne r15d, edx
call qword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
lea r8, [rsp + 0x48]
shr eax, 0x10
mov rdx, rdi
cwde
mov dword [rsp + 0x48], ecx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x4c], eax
call fcn.140054aa0
lea r8, [rsp + 0x40]
mov rcx, rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.Qt5Widgets.dll_public:_class_QPoint___cdecl_QWidget::mapFromGlobal_class_QPoint_const____ptr64____ptr64]
mov eax, dword [r14 + 0x10]
mov ecx, eax
and ecx, 4
shl ecx, 0x17
mov ebx, ecx
bts ebx, 0x1a
and al, 8
cmove ebx, ecx
mov ecx, SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140050b88
bts ebx, 0x1b
mov r8d, dword [r14 + 0x10]
lea r9, [rsp + 0x58]
movd xmm0, dword [rsp + 0x40]
mov ecx, r8d
movd xmm1, dword [rsp + 0x44]
and ecx, 1
mov eax, r8d
mov dword [rsp + 0x30], ebx
cvtdq2pd xmm0, xmm0
mov edx, ecx
or edx, 4
and al, 0x10
cmove edx, ecx
lea rcx, [rsp + 0x80]
cvtdq2pd xmm1, xmm1
mov eax, edx
or eax, 2
and r8b, 2
lea r8, [rsp + 0x68]
cmove eax, edx
mov edx, esi
movsd qword [rsp + 0x58], xmm0
movd xmm0, dword [rsp + 0x50]
movsd qword [rsp + 0x60], xmm1
movd xmm1, dword [rsp + 0x54]
cvtdq2pd xmm0, xmm0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
cvtdq2pd xmm1, xmm1
movsd qword [rsp + 0x68], xmm0
movsd qword [rsp + 0x70], xmm1
call qword [sym.imp.Qt5Gui.dll_public:_void___cdecl_QMouseEvent::constructor_enum_QEvent::Type__class_QPointF_const____ptr64__class_QPointF_const____ptr64__enum_Qt::MouseButton__class_QFlags_enum_Qt::MouseButton___class_QFlags_enum_Qt::KeyboardModifier_____ptr64]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_static_bool___cdecl_QCoreApplication::sendEvent_class_QObject____ptr64__class_QEvent____ptr64_]
lea rcx, [rsp + 0x80]
call qword [sym.imp.Qt5Gui.dll_public_virtual:_void___cdecl_QMouseEvent::destructor_void____ptr64]
xor al, al
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140057920
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret