Function at 0x1400a77e0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14015c040]
xor rax, rsp
mov qword [rbp], rax
mov ecx, dword [0x14043738c]
test ecx, ecx
je 0x1400a7835
sub ecx, 1
je 0x1400a781b
cmp ecx, 1
jne 0x1400a7857
movzx eax, cl
mov byte [0x140437398], cl
jmp 0x1400a785e
mov ecx, dword [0x140437388]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x140437398], al
jmp 0x1400a785e
mov ecx, dword [0x140437388]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400a7857
cmp byte [0x140437398], 0
sete al
mov byte [0x140437398], al
jmp 0x1400a785e
movzx eax, byte [0x140437398]
cmp byte [0x140438296], 0
mov qword [rsp + 0x120], rbx
je 0x1400a7ad6
test al, al
je 0x1400a7ad6
lea rdx, [rsp + 0x41]
mov dword [rsp + 0x40], 0x626f5214
xor ecx, ecx
mov dword [rsp + 0x44], 0x786f6c
call qword [sym.imp.USER32.dll_FindWindowA]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
cmp rax, rbx
jne 0x1400a7ad6
mov edx, dword [0x140439128]
xor ebx, ebx
mov rax, qword [0x1404382d0]
mov rcx, qword [0x140439120]
add rax, 0x110
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x40], rax
mov dword [rbp - 0x2f], ebx
mov word [rbp - 0x2b], bx
mov byte [rbp - 0x29], bl
mov dword [rbp - 0x50], 0x12b2d92
mov qword [rbp - 0x38], 8
mov dword [rbp - 0x4c], edx
mov byte [rbp - 0x30], bl
test edx, edx
je 0x1400a7937
test rcx, rcx
je 0x1400a7937
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x50]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 0x50]
mov dword [rsp + 0x28], 0x28
mov r9d, 0x28
mov edx, 0x224a14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [0x140439128]
mov rcx, qword [0x140439120]
mov rax, qword [rbp - 0x60]
add rax, 0x298
mov dword [rbp - 7], ebx
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x18], rax
mov word [rbp - 3], bx
mov byte [rbp - 1], bl
mov dword [rbp - 0x28], 0x12b2d92
mov qword [rbp - 0x10], 8
mov dword [rbp - 0x24], edx
mov byte [rbp - 8], bl
test edx, edx
je 0x1400a79a5
test rcx, rcx
je 0x1400a79a5
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x28]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 0x28]
mov dword [rsp + 0x28], 0x28
mov r9d, 0x28
mov edx, 0x224a14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
movdqa xmm0, xmmword [0x140142ea0]
lea rax, [rsp + 0x51]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x60], 0x74
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
mov qword [rbp - 0x80], rbx
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x78], rbx
inc r8
cmp byte [rax + r8], bl
jne 0x1400a79d6
lea rdx, [rsp + 0x51]
lea rcx, [rsp + 0x70]
call fcn.14000c8c0
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140087a60
mov rbx, qword [rsp + 0x40]
lea rdx, [rbx + 0x158]
call fcn.140089b20
lea rdx, [rbp - 0x60]
lea r8, [rax + 0x140]
call fcn.14008a160
lea rdx, [rbx + 0x158]
call fcn.140089b20
lea rdx, [rbp - 0x70]
lea r8, [rax + 0x14c]
call fcn.14008a160
movss xmm2, dword [rbp - 0x70]
lea rdx, [rsp + 0x50]
movss xmm0, dword [0x140142454]
lea rcx, [rsp + 0x40]
movss xmm1, dword [rbp - 0x6c]
movss xmm4, dword [rbp - 0x68]
movss xmm3, dword [rbp - 0x60]
mulss xmm2, xmm0
mulss xmm1, xmm0
mulss xmm4, xmm0
movaps xmm0, xmm2
unpcklps xmm0, xmm1
movss xmm1, dword [rbp - 0x58]
movsd qword [rbp - 0x70], xmm0
movss xmm0, dword [0x140437288]
addss xmm0, dword [0x14014266c]
movss dword [rbp - 0x68], xmm4
mulss xmm2, xmm0
mulss xmm4, xmm0
xorps xmm0, xmm0
addss xmm3, xmm2
movss xmm2, dword [rbp - 0x5c]
addss xmm2, xmm0
addss xmm1, xmm4
unpcklps xmm3, xmm2
movsd qword [rsp + 0x50], xmm3
movss dword [rsp + 0x58], xmm1
call fcn.140088140
lea rcx, [rsp + 0x40]
call fcn.1400963b0
mov rax, qword [rsp + 0x40]
jmp 0x1400a7aea
lea rcx, [rsp + 0x40]
call fcn.1400963b0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov rbx, qword [rsp + 0x120]
movabs r8, 0x7fffffffff67697f
cmp rax, r8
je 0x1400a7b1a
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x1400a7b1a
add rax, 0x989680
jmp 0x1400a7b24
movabs rax, 0x7fffffffffffffff
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.14009af70
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140113570
add rsp, 0x110
pop rbp
ret