Function at 0x180008520
Capabilities:
Log keystrokes

Disassembly:
push rbx
push rdi
sub rsp, 0x78
mov rdi, rcx
call fcn.1800114e0
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_bool___cdecl_QLoggingCategory::isDebugEnabled_void_const___ptr64]
test al, al
je 0x1800085e5
mov rcx, rdi
call qword [sym.imp.Qt5Gui.dll_public:_class_QWindow____ptr64___cdecl_QPlatformWindow::window_void_const___ptr64]
mov rbx, rax
call fcn.1800114e0
xor r9d, r9d
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov rdx, qword [rax + 8]
mov qword [rsp + 0x20], rdx
xor edx, edx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rsp + 0xa0]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
mov rcx, rax
lea rdx, str.QWindowsWindow::requestActivateWindow
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov r8, rdi
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0x90], rax
inc dword [rax + 0x18]
call qword [sym.imp.Qt5Gui.dll_class_QDebug___cdecl_operator___class_QDebug__class_QPlatformSurface_const____ptr64_]
mov r8, rbx
lea rcx, [rsp + 0x98]
mov rdx, rax
call qword [sym.imp.Qt5Gui.dll_class_QDebug___cdecl_operator___class_QDebug__class_QWindow_const____ptr64_]
lea rcx, [rsp + 0x98]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
cmp qword [rdi + 0x50], 0
je 0x180008769
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r14d, r14d
xor bpl, bpl
mov esi, eax
mov ebx, r14d
call qword [sym.imp.Qt5Gui.dll_public:_static_enum_Qt::ApplicationState___cdecl_QGuiApplication::applicationState_void_]
cmp eax, 4
je 0x180008734
cmp dword [0x18015456c], 1
jne 0x180008734
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x180008734
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
test eax, eax
je 0x180008734
cmp eax, esi
je 0x180008734
lea r8d, [r14 + 1]
mov edx, esi
mov ecx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
cmp eax, 1
sete bpl
jne 0x180008734
mov rcx, rdi
call qword [sym.imp.Qt5Gui.dll_public:_class_QWindow____ptr64___cdecl_QPlatformWindow::window_void_const___ptr64]
mov rcx, rax
lea rdx, [rsp + 0x90]
call qword [sym.imp.Qt5Gui.dll_public:_class_QFlags_enum_Qt::WindowType____cdecl_QWindow::flags_void____ptr64]
test dword [rax], 0x4000000
jne 0x180008734
mov rcx, rdi
call qword [sym.imp.Qt5Gui.dll_public:_class_QWindow____ptr64___cdecl_QPlatformWindow::window_void_const___ptr64]
mov rcx, rax
lea rdx, [rsp + 0x90]
call qword [sym.imp.Qt5Gui.dll_public:_class_QFlags_enum_Qt::WindowType____cdecl_QWindow::flags_void____ptr64]
test dword [rax], 0x40000
jne 0x180008734
mov rcx, rdi
call qword [sym.imp.Qt5Gui.dll_public:_class_QWindow____ptr64___cdecl_QPlatformWindow::window_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.Qt5Gui.dll_public:_enum_Qt::WindowType___cdecl_QWindow::type_void____ptr64]
cmp eax, 0xd
je 0x180008734
mov rcx, qword [rdi + 0x50]
lea rdx, [r14 - 1]
mov dword [rsp + 0x30], 0x203
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rdi + 0x50]
lea rdx, [r14 - 2]
mov dword [rsp + 0x30], 0x203
xor r9d, r9d
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_SetFocus]
jmp 0x18000874d
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.USER32.dll_SetFocus]
test bpl, bpl
je 0x18000875a
xor r8d, r8d
mov edx, esi
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x78
pop rdi
pop rbx
ret