Function at 0x140040f80
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
cmp qword [0x1400e0bc0], 0
jne 0x140040f99
call fcn.1400257a0
mov rcx, qword [0x1400e0be0]
lea rdx, [rsp + 0x40]
mov rdi, qword [0x1400e06e0]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x48]
lea rcx, [rsp + 0x70]
sub eax, dword [rsp + 0x40]
movd xmm1, eax
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x70]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1400e0be8]
cvtsi2ss xmm0, qword [0x1400e0bf0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1400e0be8], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rdi + 0x130], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rdi + 0x131], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x1400e06e0]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x133], 0
mov byte [rdi + 0x132], al
cmp byte [rcx + 0x3af], 0
lea rbx, [rcx + 0x118]
je 0x1400410ac
cvttss2si eax, dword [rbx]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], eax
cvttss2si eax, dword [rcx + 0x11c]
mov rcx, qword [0x1400e0be0]
mov dword [rsp + 0x64], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x1400e0be0]
jne 0x140041108
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140041108
mov rcx, qword [0x1400e0be0]
lea rdx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140041108
movd xmm0, dword [rsp + 0x68]
movd xmm1, dword [rsp + 0x6c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xd0], 0
je 0x140041118
mov eax, 0xffffffff
jmp 0x140041125
mov rax, qword [0x1400e06e0]
mov eax, dword [rax + 0x1d70]
cmp dword [0x1400dfee0], eax
je 0x140041138
mov dword [0x1400dfee0], eax
call fcn.1400258f0
call fcn.140006d90
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14004115e
cmp byte [0x1400bc0a1], 0
sete cl
mov byte [0x1400bc0a1], cl
jmp 0x140041165
movzx ecx, byte [0x1400bc0a1]
call fcn.1400398b0
mov rax, qword [0x1400e06e0]
test cl, cl
je 0x14004119e
xor edx, edx
mov byte [rax + 0xd0], 1
lea rcx, [0x1400b3278]
lea r8d, [rdx + 3]
call fcn.14000a540
test al, al
je 0x140041197
call fcn.14003a060
call fcn.14000d430
jmp 0x1400411a5
mov byte [rax + 0xd0], 0
call fcn.14003e5b0
mov rcx, qword [0x1400e0c30]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400e0c30]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400e0c30]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x1400e0c30]
xor edi, edi
movss xmm0, dword [0x1400b35a8]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
lea r9d, [rdi + 1]
mov dword [rsp + 0x20], edi
call qword [rax + 0x158]
mov rcx, qword [0x1400e0c30]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140041264
call fcn.140008380
mov rcx, qword [0x1400e06e0]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140024ec0
mov rcx, qword [0x1400e0c30]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x1400e0c30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140041326
mov rcx, qword [0x1400e0c30]
mov rax, qword [rcx]
call qword [rax + 0x18]
cmp eax, 0x88760869
jne 0x140041326
cmp qword [0x1400e0bd0], rdi
je 0x14004130a
mov rcx, qword [0x1400e0bd8]
test rcx, rcx
je 0x1400412c6
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400e0bd8], rdi
mov rcx, qword [0x1400e0bc8]
test rcx, rcx
je 0x1400412df
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400e0bc8], rdi
mov rcx, qword [0x1400e0bc0]
mov rbx, qword [0x1400e06e0]
test rcx, rcx
je 0x1400412f8
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400e0bc0], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x1400e0c30]
lea rdx, [0x1400e0740]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.1400257a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret