Function at 0x7ff7ec5a88b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rsi
call fcn.7ff7ec585c40
mov rcx, qword [0x7ff7ec870548]
lea rdx, [rsp + 0x20]
mov rsi, rax
call qword [sym.imp.user32.dll_GetClientRect]
mov ecx, dword [rsp + 0x28]
sub ecx, dword [rsp + 0x20]
movd xmm1, ecx
mov ecx, dword [rsp + 0x2c]
sub ecx, dword [rsp + 0x24]
cmp byte [0x7ff7ec6f43b5], 0
cvtdq2ps xmm1, xmm1
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
movss dword [rsi + 8], xmm1
movss dword [rsi + 0xc], xmm0
je 0x7ff7ec5a890e
call fcn.7ff7ec5a9140
lea rcx, [rsp + 0x60]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x60]
xorps xmm1, xmm1
sub rax, qword [0x7ff7ec870550]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x7ff7ec870558]
mov ecx, 0x11
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rsi + 0x10], xmm1
mov rax, qword [rsp + 0x60]
mov qword [0x7ff7ec870550], rax
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x10
and al, 1
mov byte [rsi + 0x134], al
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
mov ecx, 0x12
and al, 1
mov byte [rsi + 0x135], al
call qword [sym.imp.user32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rsi + 0x137], 0
mov byte [rsi + 0x136], al
call fcn.7ff7ec585c40
mov rbx, rax
cmp byte [rax + 0x38f], 0
je 0x7ff7ec5a89e8
test dword [rax], 0x400
cvttss2si ecx, dword [rax + 0x118]
cvttss2si edx, dword [rax + 0x11c]
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], edx
jne 0x7ff7ec5a89e2
mov rcx, qword [0x7ff7ec870548]
lea rdx, [rsp + 0x50]
call qword [sym.imp.user32.dll_ClientToScreen]
mov edx, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.user32.dll_SetCursorPos]
lea rcx, [rsp + 0x58]
mov dword [rbx + 0x118], 0xff7fffff
mov dword [rbx + 0x11c], 0xff7fffff
mov dword [rbx + 0x130], 0
call qword [sym.imp.user32.dll_GetCursorPos]
test eax, eax
je 0x7ff7ec5a8adb
mov qword [rsp + 0x30], rdi
call qword [sym.imp.user32.dll_GetForegroundWindow]
mov rdi, rax
test rax, rax
je 0x7ff7ec5a8aab
mov rdx, qword [0x7ff7ec870548]
mov rcx, rax
call qword [sym.imp.user32.dll_IsChild]
mov rcx, qword [0x7ff7ec870548]
test eax, eax
cmovne rdi, rcx
test dword [rbx], 0x400
je 0x7ff7ec5a8a6c
mov rcx, rdi
call fcn.7ff7ec584f30
test rax, rax
je 0x7ff7ec5a8aab
movd xmm0, dword [rsp + 0x58]
movd xmm1, dword [rsp + 0x5c]
jmp 0x7ff7ec5a8a95
cmp rdi, rcx
jne 0x7ff7ec5a8aab
mov rax, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov qword [rsp + 0x50], rax
call qword [sym.imp.user32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x50]
movd xmm1, dword [rsp + 0x54]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x11c], xmm1
movss dword [rbx + 0x118], xmm0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.user32.dll_WindowFromPoint]
mov rdi, qword [rsp + 0x30]
test rax, rax
je 0x7ff7ec5a8adb
mov rcx, rax
call fcn.7ff7ec584f30
test rax, rax
je 0x7ff7ec5a8adb
test byte [rax + 4], 0x10
jne 0x7ff7ec5a8adb
mov eax, dword [rax]
mov dword [rbx + 0x130], eax
cmp byte [rsi + 0xc8], 0
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
je 0x7ff7ec5a8af5
mov eax, 0xffffffff
jmp 0x7ff7ec5a8afa
call fcn.7ff7ec585d90
cmp dword [0x7ff7ec6f43b0], eax
je 0x7ff7ec5a8b0d
mov dword [0x7ff7ec6f43b0], eax
call fcn.7ff7ec5a9360
call fcn.7ff7ec5a8e80
add rsp, 0x48
ret