Function at 0x140051390
Capabilities:
Log keystrokes via polling

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1400d4098]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], rsi
mov rsi, qword [0x1400d51c0]
test rsi, rsi
je 0x1400513bf
mov rdi, qword [rsi + 0x98]
jmp 0x1400513c1
xor edi, edi
xorps xmm0, xmm0
mov qword [rsp + 0x50], rbx
movdqu xmmword [rsp + 0x20], xmm0
mov rcx, qword [rdi]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x28]
sub eax, dword [rsp + 0x20]
movd xmm1, eax
mov eax, dword [rsp + 0x2c]
sub eax, dword [rsp + 0x24]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsi + 0x10], xmm1
movss dword [rsi + 0x14], xmm0
cmp byte [rdi + 0x2e], 0
je 0x140051470
mov rax, qword [0x1400d51c0]
mov qword [rsp + 0x58], rbp
test rax, rax
je 0x140051425
mov rbp, qword [rax + 0x98]
jmp 0x140051427
xor ebp, ebp
lea rbx, [rax + 0x38c8]
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x14005144d
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.14003d630
xor r9d, r9d
mov dword [rbx], 0
lea r8, [0x140051260]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplayMonitors]
mov byte [rbp + 0x2e], 0
mov rbp, qword [rsp + 0x58]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x30]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [rdi + 0x18]
cvtsi2ss xmm0, qword [rdi + 0x20]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rsi + 0x18], xmm1
mov qword [rdi + 0x18], rcx
call fcn.140050a40
mov rax, qword [0x1400d51c0]
cmp byte [rax + 0x2f10], 0
je 0x140051504
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140051504
mov rbx, qword [0x1400d51c0]
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x210
lea rcx, [rbx + 8]
call fcn.140019680
mov dword [rbx + 0x380], 0x210
mov dword [rbx + 0x940], 0xa0
mov rax, qword [0x1400d51c0]
cmp byte [rax + 0x2f50], 0
je 0x140051555
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140051555
mov rbx, qword [0x1400d51c0]
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x214
lea rcx, [rbx + 8]
call fcn.140019680
mov dword [rbx + 0x384], 0x214
mov dword [rbx + 0x950], 0xa1
mov rax, qword [0x1400d51c0]
cmp byte [rax + 0x2f30], 0
je 0x1400515a6
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1400515a6
mov rbx, qword [0x1400d51c0]
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x212
lea rcx, [rbx + 8]
call fcn.140019680
mov dword [rbx + 0x26c], 0x212
mov dword [rbx + 0x948], 0x5b
mov rax, qword [0x1400d51c0]
cmp byte [rax + 0x2f70], 0
je 0x1400515f7
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x1400515f7
mov rbx, qword [0x1400d51c0]
xorps xmm3, xmm3
xor r8d, r8d
mov edx, 0x216
lea rcx, [rbx + 8]
call fcn.140019680
mov dword [rbx + 0x270], 0x216
mov dword [rbx + 0x958], 0x5c
cmp byte [rsi + 0x78], 0
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
je 0x14005160e
mov eax, 0xffffffff
jmp 0x14005161b
mov rax, qword [0x1400d51c0]
mov eax, dword [rax + 0x43f8]
cmp dword [rdi + 0x28], eax
je 0x140051628
mov dword [rdi + 0x28], eax
call fcn.1400508d0
call fcn.140050cd0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400aac90
add rsp, 0x40
pop rdi
ret