Function at 0x1400a74d0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x14015a040]
xor rax, rsp
mov qword [rbp], rax
mov ecx, dword [0x1404352fc]
test ecx, ecx
je 0x1400a7525
sub ecx, 1
je 0x1400a750b
cmp ecx, 1
jne 0x1400a7547
movzx eax, cl
mov byte [0x140435308], cl
jmp 0x1400a754e
mov ecx, dword [0x1404352f8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne al
mov byte [0x140435308], al
jmp 0x1400a754e
mov ecx, dword [0x1404352f8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x1400a7547
cmp byte [0x140435308], 0
sete al
mov byte [0x140435308], al
jmp 0x1400a754e
movzx eax, byte [0x140435308]
cmp byte [0x140436279], 0
mov qword [rsp + 0x130], rbx
je 0x1400a77f8
test al, al
je 0x1400a77f8
lea rdx, [rsp + 0x41]
mov dword [rsp + 0x40], 0x626f527d
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 0x1400a77f8
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 + 0x60]
mov qword [rbp - 0x20], rax
movaps xmmword [rsp + 0x110], 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 0x1400a7630
test rcx, rcx
je 0x1400a7630
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 + 0x60]
add rax, 0x298
mov dword [rbp - 0x3f], ebx
mov qword [rbp - 0x58], rax
lea rax, [rsp + 0x68]
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 0x1400a76a0
test rcx, rcx
je 0x1400a76a0
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 [0x1401417b0]
lea rax, [rsp + 0x49]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x58], 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 0x1400a76d1
lea rdx, [rsp + 0x49]
lea rcx, [rsp + 0x70]
call fcn.14000c790
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140088160
mov rdx, qword [rsp + 0x40]
movss xmm6, dword [0x1404362a8]
add rdx, 0x158
movzx ebx, byte [0x140437120]
call fcn.14008a220
test rax, rax
je 0x1400a7734
lea r8, [rax + 0x11c]
lea rdx, [rbp - 0x60]
call fcn.14008a770
jmp 0x1400a774c
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]
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
test bl, bl
jne 0x1400a776f
xorps xmm6, xmmword [0x140141930]
xorps xmm3, xmm3
lea rcx, [rbp - 0x60]
movaps xmm2, xmm6
xorps xmm1, xmm1
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
cmp byte [0x140437120], 0
lea rcx, [rsp + 0x40]
sete byte [0x140437120]
call fcn.140096910
mov rax, qword [rsp + 0x40]
movaps xmm6, xmmword [rsp + 0x110]
jmp 0x1400a780c
lea rcx, [rsp + 0x40]
call fcn.140096910
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov rbx, qword [rsp + 0x130]
movabs r8, 0x7ffffffffd050f7f
cmp rax, r8
je 0x1400a783c
mov ecx, 1
mov edx, 0xff
cmovl ecx, edx
test cl, cl
jns 0x1400a783c
add rax, 0x2faf080
jmp 0x1400a7846
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, 0x120
pop rbp
ret