Function at 0x14004dd70
Capabilities:
Check for foreground window switch
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140075040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
xor esi, esi
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
nop word [rax + rax]
mov rcx, qword [0x140079400]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x140079400]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, qword [0x140079400]
lea rcx, [rsp + 0x38]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14004de09
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_DispatchMessageA]
mov rbx, qword [0x1400793f0]
lea rcx, [rsp + 0x30]
mov rax, qword [0x140079400]
mov qword [rbx + 0xd0], rax
mov dword [rbx + 0x18], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
movd xmm0, dword [rsp + 0x30]
mov ecx, 1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe08], xmm0
movd xmm0, dword [rsp + 0x34]
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0xe0c], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14004de7e
mov byte [rbx + 0xe10], 1
mov eax, dword [rbx + 0xe0c]
mov dword [rbx + 0x36f8], eax
mov byte [rbx + 0x3748], 1
jmp 0x14004de85
mov byte [rbx + 0xe10], sil
mov rax, qword [0x1400793f0]
test rax, rax
je 0x14004de9a
mov rcx, qword [rax + 0xa0]
jmp 0x14004de9d
mov rcx, rsi
cmp qword [rcx + 0x48], rsi
jne 0x14004dea8
call fcn.14002d210
call fcn.14002e1f0
call fcn.140007af0
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14004decf
cmp byte [0x1400793e9], sil
sete byte [0x1400793e9]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp qword [0x140079460], rax
je 0x14004df01
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp qword [0x140079460], rax
je 0x14004df01
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rbx, rax
jne 0x14004df14
call fcn.14004a490
cmp byte [0x1400793e9], sil
je 0x14004df14
call fcn.14004cb30
call fcn.140009c10
mov rcx, qword [0x140079410]
lea r8, [0x140079470]
xorps xmm0, xmm0
xor r9d, r9d
movups xmmword [rsp + 0x68], xmm0
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x108]
mov rcx, qword [0x140079410]
lea r8, [rsp + 0x68]
mov rdx, qword [0x140079470]
mov rax, qword [rcx]
call qword [rax + 0x190]
mov rax, qword [0x1400793f0]
mov rcx, qword [rax + 0x48a8]
mov rax, qword [rcx]
mov rcx, rsi
add rax, 0x48
cmp byte [rax], cl
cmovne rcx, rax
call fcn.14002c7a0
mov rcx, qword [0x140079428]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x40]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0x40], 0x12
jne 0x14004ddb0
mov rbx, qword [0x1400793f0]
test rbx, rbx
je 0x14004dfbc
mov rdi, qword [rbx + 0xa0]
jmp 0x14004dfbf
mov rdi, rsi
call fcn.14002d750
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14004dfd3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004dfe1
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14004dff0
mov rax, qword [rcx]
call qword [rax + 0x10]
and dword [rbx + 0xc], 0xfffffff7
mov rax, qword [0x1400793f0]
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0xa0], rsi
test rax, rax
je 0x14004e014
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [0x1400793f0]
test rax, rax
je 0x14004e032
mov rdi, qword [rax + 0x98]
jmp 0x14004e035
mov rdi, rsi
mov rcx, qword [rdi + 0x30]
lea rbx, [rax + 8]
test rcx, rcx
je 0x14004e04f
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [0x1400793f0]
and dword [rbx + 4], 0xfffffff8
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x90], rsi
test rax, rax
je 0x14004e06c
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x1400793f0]
mov qword [0x1400793f0], rbx
call fcn.140005a10
mov qword [0x1400793f0], rsi
test rbx, rbx
je 0x14004e0b7
mov rcx, rbx
call fcn.14001c110
mov rax, qword [0x1400793f0]
test rax, rax
je 0x14004e0ae
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [0x140079400]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140057760
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret