Function at 0x1400a7870
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14015a040]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov ecx, dword [0x14043535c]
test ecx, ecx
je 0x1400a78c5
sub ecx, 1
je 0x1400a78ab
cmp ecx, 1
jne 0x1400a78e7
movzx eax, cl
mov byte [0x140435368], cl
jmp 0x1400a78ee
mov ecx, dword [0x140435358]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x140435368], al
jmp 0x1400a78ee
mov ecx, dword [0x140435358]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400a78e7
cmp byte [0x140435368], 0
sete al
mov byte [0x140435368], al
jmp 0x1400a78ee
movzx eax, byte [0x140435368]
cmp byte [0x14043626c], 0
mov qword [rsp + 0x140], rbx
je 0x1400a7ca2
test al, al
je 0x1400a7ca2
lea rdx, [rsp + 0x41]
mov dword [rsp + 0x40], 0x626f5276
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 0x1400a7ca2
mov edx, dword [0x1404370f8]
xor ebx, ebx
mov rax, qword [0x1404362a0]
mov rcx, qword [0x1404370f0]
add rax, 0x110
mov qword [rbp - 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x20], rax
movaps xmmword [rsp + 0x120], xmm6
mov dword [rbp - 0xf], ebx
mov word [rbp - 0xb], bx
mov byte [rbp - 9], bl
mov dword [rbp - 0x30], 0x12b2d92
mov qword [rbp - 0x18], 8
mov dword [rbp - 0x2c], edx
mov byte [rbp - 0x10], bl
test edx, edx
je 0x1400a79d0
test rcx, rcx
je 0x1400a79d0
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 0x30]
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 [0x1404370f8]
mov rcx, qword [0x1404370f0]
mov rax, qword [rsp + 0x68]
add rax, 0x298
mov dword [rbp - 0x3f], ebx
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x50], rax
mov word [rbp - 0x3b], bx
mov byte [rbp - 0x39], bl
mov dword [rbp - 0x60], 0x12b2d92
mov qword [rbp - 0x48], 8
mov dword [rbp - 0x5c], edx
mov byte [rbp - 0x40], bl
test edx, edx
je 0x1400a7a40
test rcx, rcx
je 0x1400a7a40
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 0x60]
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 [0x140141780]
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 0x1400a7a71
lea rdx, [rsp + 0x51]
lea rcx, [rsp + 0x70]
call fcn.14000c790
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140088160
mov edx, dword [0x1404370f8]
mov rax, qword [0x1404362a0]
mov rcx, qword [0x1404370f0]
add rax, 0x110
mov qword [rbp - 0x58], rax
lea rax, [rbp]
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x3f], ebx
mov word [rbp - 0x3b], bx
mov byte [rbp - 0x39], bl
mov dword [rbp - 0x60], 0x12b2d92
mov qword [rbp - 0x48], 8
mov dword [rbp - 0x5c], edx
mov byte [rbp - 0x40], bl
test edx, edx
je 0x1400a7b28
test rcx, rcx
je 0x1400a7b28
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x60]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 0x60]
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 [0x1404370f8]
mov rcx, qword [0x1404370f0]
mov rax, qword [rbp]
add rax, 0x298
mov dword [rbp - 0xf], ebx
mov qword [rbp - 0x28], rax
lea rax, [rbp + 8]
mov qword [rbp - 0x20], rax
mov word [rbp - 0xb], bx
mov byte [rbp - 9], bl
mov dword [rbp - 0x30], 0x12b2d92
mov qword [rbp - 0x18], 8
mov dword [rbp - 0x2c], edx
mov byte [rbp - 0x10], bl
test edx, edx
je 0x1400a7b96
test rcx, rcx
je 0x1400a7b96
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 0x30]
mov dword [rsp + 0x28], 0x28
mov r9d, 0x28
mov edx, 0x224a14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rdx, qword [rsp + 0x40]
movss xmm6, dword [0x140436298]
add rdx, 0x158
call fcn.14008a220
test rax, rax
je 0x1400a7bc6
lea r8, [rax + 0x11c]
lea rdx, [rbp - 0x60]
call fcn.14008a770
jmp 0x1400a7bde
movdqa xmm0, xmmword [0x140140fd0]
lea rax, [rbp - 0x60]
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [rax]
lea rcx, [rsp + 0x48]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x70], xmm0
call fcn.140096910
mov rcx, qword [rsp + 0x48]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm3, xmm3
sub rax, qword [0x1404362d8]
xorps xmm2, xmm2
mov qword [0x1404362d8], rcx
lea rcx, [rbp - 0x60]
cvtsi2ss xmm1, rax
divss xmm1, dword [0x140140f10]
mulss xmm1, xmm6
call fcn.1400a7330
movups xmm0, xmmword [rbp - 0x60]
lea r8, [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x50]
lea rdx, [rbp - 0x60]
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rsp + 0x70]
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm0
call fcn.1400a6ff0
movups xmm0, xmmword [rbp - 0x60]
lea rdx, [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x50]
lea rcx, [rsp + 0x40]
movaps xmmword [rbp - 0x30], xmm0
movups xmm0, xmmword [rbp - 0x40]
movaps xmmword [rbp - 0x20], xmm1
movaps xmmword [rbp - 0x10], xmm0
call fcn.1400889d0
lea rcx, [rsp + 0x40]
call fcn.140096910
mov rax, qword [rsp + 0x40]
movaps xmm6, xmmword [rsp + 0x120]
jmp 0x1400a7cb6
lea rcx, [rsp + 0x40]
call fcn.140096910
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov rbx, qword [rsp + 0x140]
movabs r8, 0x7fffffffff67697f
cmp rax, r8
je 0x1400a7ce6
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x1400a7ce6
add rax, 0x989680
jmp 0x1400a7cf0
movabs rax, 0x7fffffffffffffff
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.14009a6c0
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140112f50
add rsp, 0x130
pop rbp
ret