Function at 0x14000b960
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x140046010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov ecx, 4
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x140046cd4], eax
jle 0x14000b9d3
lea rcx, [0x140046cd4]
call fcn.140037778
cmp dword [0x140046cd4], 0xffffffff
jne 0x14000b9d3
xorps xmm0, xmm0
movups xmmword [0x140046cd8], xmm0
lea rcx, [0x140046cd4]
call fcn.14003770c
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x14000ba08
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x60]
call qword [sym.imp.USER32.dll_DispatchMessageA]
mov rdi, qword [0x140046a38]
movss xmm0, dword [rdi + 0x10]
mulss xmm0, dword [0x14003e974]
cvttss2si eax, xmm0
mov dword [0x140046c50], eax
movss xmm0, dword [rdi + 0x14]
mulss xmm0, dword [0x14003e974]
cvttss2si eax, xmm0
mov dword [0x140046c54], eax
cmp qword [0x140046c10], 0
jne 0x14000ba53
call fcn.140031340
mov rdi, qword [0x140046a38]
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140046c30]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mov eax, dword [rsp + 0x48]
sub eax, dword [rsp + 0x40]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm0
movss dword [rdi + 0x14], xmm1
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
sub rax, qword [0x140046c38]
xorps xmm1, xmm1
cvtsi2ss xmm1, rax
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [0x140046c40]
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x140046c38], rcx
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0xd24], al
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0xd25], al
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
mov byte [rdi + 0xd26], al
mov byte [rdi + 0xd27], 0
mov rcx, qword [0x140046a38]
lea rbx, [rcx + 0xd0c]
cmp byte [rcx + 0xd3], 0
je 0x14000bb5f
cvttss2si eax, dword [rbx]
mov dword [rsp + 0x50], eax
cvttss2si eax, dword [rcx + 0xd10]
mov dword [rsp + 0x54], eax
lea rdx, [rsp + 0x50]
mov rcx, qword [0x140046c30]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x50]
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 [0x140046c30]
jne 0x14000bbbb
lea rcx, [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x14000bbbb
lea rdx, [rsp + 0x38]
mov rcx, qword [0x140046c30]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x14000bbbb
movd xmm1, dword [rsp + 0x3c]
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rsp + 0x38]
cvtdq2ps xmm0, xmm0
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0x70], 0
je 0x14000bbc8
mov eax, 0xffffffff
jmp 0x14000bbd5
mov rax, qword [0x140046a38]
mov eax, dword [rax + 0x41c8]
cmp dword [0x140046220], eax
je 0x14000bbe8
mov dword [0x140046220], eax
call fcn.1400319f0
call fcn.140010820
mov rcx, qword [rsi + 0x38]
test rcx, rcx
jne 0x14000bbfd
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ecx, 0x71
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x14000bc24
cmp byte [0x140046c5c], 0
sete al
mov byte [0x140046c5c], al
jmp 0x14000bc2b
movzx eax, byte [0x140046c5c]
test al, al
je 0x14000bc7e
cmp byte [0x1400469ac], 1
je 0x14000bc77
mov edx, 0xffffffec
mov rcx, qword [0x1400469b8]
call qword [sym.imp.USER32.dll_GetWindowLongA]
btr eax, 0x13
mov r8d, eax
mov edx, 0xffffffec
mov rcx, qword [0x1400469b8]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1400469b8]
call qword [sym.imp.USER32.dll_SetFocus]
mov byte [0x1400469ac], 1
call fcn.140009ad0
jmp 0x14000bcc6
cmp byte [0x1400469ac], 0
je 0x14000bcc6
mov edx, 0xffffffec
mov rcx, qword [0x1400469b8]
call qword [sym.imp.USER32.dll_GetWindowLongA]
bts eax, 0x13
mov r8d, eax
mov edx, 0xffffffec
mov rcx, qword [0x1400469b8]
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov rcx, qword [0x1400469b8]
call qword [sym.imp.USER32.dll_SetFocus]
mov byte [0x1400469ac], 0
call fcn.140012a40
call fcn.1400126b0
mov rcx, qword [0x1400469c8]
mov rax, qword [rcx]
lea r8, [0x140046cd8]
mov rdx, qword [0x1400469b0]
call qword [rax + 0x190]
mov rax, qword [0x140046a38]
mov rax, qword [rax + 0x4030]
mov rcx, qword [rax]
add rcx, 0x48
xor edi, edi
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.140030810
mov rcx, qword [0x140046a30]
mov rax, qword [rcx]
movzx edx, byte [0x140046240]
xor r8d, r8d
call qword [rax + 0x40]
mov ebx, edi
cmp dword [rsp + 0x68], 0x12
setne bl
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14000bd4c
mov r8, qword [rcx]
cmp rcx, rsi
setne dl
call qword [r8 + 0x20]
mov qword [rsi + 0x38], rdi
mov eax, ebx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400373e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret