Function at 0x140036420
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140049010]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400364a5
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140036470
mov rbx, qword [0x140049750]
xor edi, edi
test rbx, rbx
je 0x1400364bc
mov rax, qword [rbx + 0x98]
jmp 0x1400364bf
mov rax, rdi
cmp qword [rax + 0x48], rdi
jne 0x1400364d1
call fcn.14002a360
mov rbx, qword [0x140049750]
test rbx, rbx
je 0x1400364df
mov rsi, qword [rbx + 0x90]
jmp 0x1400364e2
mov rsi, rdi
xorps xmm0, xmm0
lea rdx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x38]
lea rcx, [rsp + 0x48]
sub eax, dword [rsp + 0x30]
mov qword [rsp + 0x48], rdi
movd xmm1, eax
mov eax, dword [rsp + 0x3c]
sub eax, dword [rsp + 0x34]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x10], xmm1
movss dword [rbx + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x48]
xorps xmm1, xmm1
mov rbp, qword [0x140049750]
mov rax, rcx
sub rax, qword [rsi + 0x18]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsi + 0x20]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rbx + 0x18], xmm1
mov qword [rsi + 0x18], rcx
test rbp, rbp
je 0x14003656e
mov rdi, qword [rbp + 0x90]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, qword [rdi]
cmp rax, rcx
jne 0x140036609
cmp byte [rbp + 0xcd], 0
je 0x1400365c7
cvttss2si eax, dword [rbp + 0xe40]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], eax
cvttss2si eax, dword [rbp + 0xe44]
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
test eax, eax
je 0x1400365be
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
cmp byte [rbp + 0xcd], 0
jne 0x140036609
cmp dword [rdi + 0x10], 0
jne 0x140036609
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140036609
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140036609
movd xmm2, dword [rsp + 0x44]
lea rcx, [rbp + 8]
movd xmm1, dword [rsp + 0x40]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.1400028a0
call fcn.14002ae00
cmp byte [rbx + 0x58], 0
je 0x14003661b
mov eax, 0xffffffff
jmp 0x140036628
mov rax, qword [0x140049750]
mov eax, dword [rax + 0x4ee8]
cmp dword [rsi + 0x28], eax
je 0x140036635
mov dword [rsi + 0x28], eax
call fcn.14002ac90
call fcn.14002afd0
call fcn.140006cb0
mov ecx, 0x60
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140036680
cmp byte [0x140049818], 0
mov edx, 0xffffffec
mov rcx, qword [0x1400497c8]
mov r8d, 0xa0
sete al
mov byte [0x140049818], al
test al, al
jne 0x14003667a
mov r8d, 0x800a8
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140039080
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret