Function at 0x140040b90
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
xorps xmm0, xmm0
xor edi, edi
movups xmmword [0x1400e9330], xmm0
movups xmmword [0x1400e9340], xmm0
movups xmmword [0x1400e9350], xmm0
nop dword [rax]
nop dword [rax + rax]
mov rdx, qword [0x1400e9360]
lea rcx, [0x1400e9330]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140040c00
lea rcx, [0x1400e9330]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [0x1400e9330]
call qword [sym.imp.USER32.dll_DispatchMessageA]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, 0x23
mov rbx, rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
jne 0x140040e87
mov rcx, qword [0x1400e9328]
cmp rbx, rcx
jne 0x140040c63
mov edx, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rcx, qword [0x1400e9360]
xor r9d, r9d
mov dword [rsp + 0x30], 3
mov rdx, rax
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400e9328]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rdi
lea rdx, [rsp + 0x40]
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x1400e9328]
lea rdx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov rbx, qword [0x1400e9320]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x44], eax
mov rax, qword [0x1400e9328]
mov qword [rbx + 0x108], rax
mov dword [rbx + 0x18], 0x3c888889
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x68]
mov ecx, 1
sub eax, dword [rsp + 0x60]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x118], xmm0
mov eax, dword [rsp + 0x6c]
sub eax, dword [rsp + 0x64]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x11c], xmm0
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140040d1e
mov byte [rbx + 0x120], 1
mov eax, dword [rbx + 0x11c]
mov dword [rbx + 0x3dc], eax
mov byte [rbx + 0x430], 1
jmp 0x140040d25
mov byte [rbx + 0x120], dil
mov eax, dword [0x1400e9e38]
mov ecx, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x48]
cmp dword [rsp + 0x40], eax
jne 0x140040d55
cmp edx, dword [0x1400e9e40]
jne 0x140040d55
mov eax, dword [0x1400e9e3c]
cmp dword [rsp + 0x44], eax
jne 0x140040d55
cmp ecx, dword [0x1400e9e44]
je 0x140040db9
movups xmm0, xmmword [rsp + 0x40]
mov r9d, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x60]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov dword [0x1400e98a4], edx
mov dword [0x1400e98a0], ecx
mov dword [0x1400e93a0], edx
xor edx, edx
mov dword [0x1400e93a4], ecx
mov rcx, qword [0x1400e9360]
movups xmmword [0x1400e9e38], xmm0
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x1400e93e0]
lea rdx, [0x1400e93a0]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.14003fd40
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x1400e9338], 0x12
jne 0x140040bc0
call fcn.140024f50
mov rbx, qword [0x1400e9320]
mov rcx, rbx
mov qword [0x1400e9948], rdi
mov qword [0x1400e9958], rdi
call fcn.140007080
mov rax, qword [0x1400e9320]
cmp rax, rbx
cmove rax, rdi
mov qword [0x1400e9320], rax
test rbx, rbx
je 0x140040e34
mov rcx, rbx
call fcn.140014930
mov rax, qword [0x1400e9320]
test rax, rax
je 0x140040e2c
dec dword [rax + 0x3c8]
mov rcx, rbx
call fcn.140059f64
mov rcx, qword [0x1400e93e0]
test rcx, rcx
je 0x140040e56
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400e93e0]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400e9368]
test rcx, rcx
je 0x140040e68
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1400e9360]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rax, qword [0x1400e9340]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov ecx, 8
call fcn.140060824
int3