Function at 0x1400a6390
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14015a040]
xor rax, rsp
mov qword [rbp], rax
mov ecx, dword [0x14043538c]
test ecx, ecx
je 0x1400a63e5
sub ecx, 1
je 0x1400a63cb
cmp ecx, 1
jne 0x1400a6407
movzx eax, cl
mov byte [0x140435398], cl
jmp 0x1400a640e
mov ecx, dword [0x140435388]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x140435398], al
jmp 0x1400a640e
mov ecx, dword [0x140435388]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400a6407
cmp byte [0x140435398], 0
sete al
mov byte [0x140435398], al
jmp 0x1400a640e
movzx eax, byte [0x140435398]
cmp byte [0x140436265], 0
mov qword [rsp + 0x120], rbx
je 0x1400a6686
test al, al
je 0x1400a6686
lea rdx, [rsp + 0x41]
mov dword [rsp + 0x40], 0x626f5261
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 0x1400a6686
mov edx, dword [0x1404370f8]
xor ebx, ebx
mov rax, qword [0x1404362a0]
mov rcx, qword [0x1404370f0]
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 0x1400a64e7
test rcx, rcx
je 0x1400a64e7
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 [0x1404370f8]
mov rcx, qword [0x1404370f0]
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 0x1400a6555
test rcx, rcx
je 0x1400a6555
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 [0x1401417d0]
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 0x1400a6586
lea rdx, [rsp + 0x51]
lea rcx, [rsp + 0x70]
call fcn.14000c790
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140088160
mov rbx, qword [rsp + 0x40]
lea rdx, [rbx + 0x158]
call fcn.14008a220
lea rdx, [rbp - 0x60]
lea r8, [rax + 0x140]
call fcn.14008a6c0
lea rdx, [rbx + 0x158]
call fcn.14008a220
lea rdx, [rbp - 0x70]
lea r8, [rax + 0x14c]
call fcn.14008a6c0
movss xmm2, dword [rbp - 0x70]
lea rdx, [rsp + 0x50]
movss xmm0, dword [0x140140cac]
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 [0x140435288]
addss xmm0, dword [0x140140ec4]
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.140088840
lea rcx, [rsp + 0x40]
call fcn.140096910
mov rax, qword [rsp + 0x40]
jmp 0x1400a669a
lea rcx, [rsp + 0x40]
call fcn.140096910
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov rbx, qword [rsp + 0x120]
movabs r8, 0x7fffffffff67697f
cmp rax, r8
je 0x1400a66ca
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x1400a66ca
add rax, 0x989680
jmp 0x1400a66d4
movabs rax, 0x7fffffffffffffff
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.14009a6c0
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140112f50
add rsp, 0x110
pop rbp
ret