Function at 0x140024c40
Capabilities:
Log keystrokes

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1401a5020]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movzx r14d, r8b
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
call qword [rax + 0x38]
test al, al
je 0x140024ca8
lea rax, str.skip_set_foreground__device_exclusive_mode_
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x94
lea rax, [0x14015ac40]
jmp 0x140024ecb
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rsi, rax
mov rcx, qword [rbx + 8]
mov rdx, qword [rcx]
call qword [rdx + 0x28]
mov rbp, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rbx, rax
test r14b, r14b
je 0x140024ce3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1f]
mov rcx, rsi
call qword [sym.imp.USER32.dll_PostMessageW]
cmp rsi, rbx
je 0x140024e41
cmp rbp, rbx
je 0x140024e41
mov r8, rbx
lea rdx, [rsp + 0x88]
call fcn.140024f80
mov rdi, rax
mov r8, rsi
lea rdx, [rsp + 0x68]
call fcn.140024f80
nop
cmp qword [rdi + 0x18], 8
jb 0x140024d20
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 8
jb 0x140024d2a
mov rax, qword [rax]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
lea rax, str.ForceForegroundWindowImp_Invalid_foreground_0x_x__s___0x_x__s
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0xa6
lea rax, [0x14015ad00]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov edx, 2
mov r9d, 0xffffff
mov r8d, edx
lea rcx, vtable.FlushLogger.0
call fcn.140010300
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140024dc6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024dc1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f20
call fcn.1400514f4
movdqa xmm0, xmmword [0x1401627f0]
movdqu xmmword [rsp + 0x78], xmm0
xor ebx, ebx
mov word [rsp + 0x68], bx
mov rdx, qword [rsp + 0xa0]
cmp rdx, 8
jb 0x140024e23
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024e1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024f1a
call fcn.1400514f4
movdqa xmm0, xmmword [0x1401627f0]
movdqu xmmword [rsp + 0x98], xmm0
mov word [rsp + 0x88], bx
jmp 0x140024ef2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
cmp ebx, eax
je 0x140024e90
mov r8d, 1
mov edx, eax
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, 5
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov edx, esi
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x140024eb0
mov rcx, rdi
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, 5
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
lea rax, str.forced_foreground
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0xb8
lea rax, str.Win32GameWindowHandler::ForceForegroundWindow
mov qword [rsp + 0x28], rax
mov edx, 2
mov dword [rsp + 0x20], 1
mov r9d, 0xffffff
mov r8d, edx
lea rcx, vtable.FlushLogger.0
call fcn.140010300
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140050f90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140090478
nop
call fcn.140090478
nop
int3