Function at 0x140002440
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140023040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, r9
mov rbx, r8
mov r15, rdx
mov qword [rsp + 0x20], r9
mov r12, qword [rsp + 0xa0]
movzx ebp, byte [rsp + 0xa8]
nop dword [rax]
mov ecx, dword [0x14002624c]
cmp ecx, 1
jne 0x140002507
xor esi, esi
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
sar rax, 2
test rax, rax
je 0x140002580
xor edi, edi
mov ecx, dword [rdx + rdi]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1400024db
nop dword [rax]
nop dword [rax + rax]
mov dword [0x14002624c], 2
mov rax, qword [rbx]
mov ecx, dword [rdi + rax]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x1400024c0
inc esi
add rdi, 4
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
sub rcx, rdx
sar rcx, 2
movsxd rax, esi
cmp rax, rcx
jb 0x1400024a6
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002480
cmp ecx, 2
jne 0x140002578
xor edi, edi
xor esi, esi
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
sar rax, 2
test rax, rax
je 0x140002578
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rdx + rsi*4]
mov rdx, qword [r14 + 8]
mov rcx, qword [r14]
call fcn.140016bb0
cmp rax, qword [r14 + 8]
jne 0x140002557
mov rax, qword [rbx]
mov ecx, dword [rax + rsi*4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140002590
inc edi
inc rsi
mov rdx, qword [rbx]
mov rcx, qword [rbx + 8]
sub rcx, rdx
sar rcx, 2
movsxd rax, edi
cmp rax, rcx
jb 0x140002530
mov ecx, dword [0x14002624c]
test ecx, ecx
je 0x140002618
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002480
test bpl, bpl
jne 0x1400025f6
mov eax, dword [r15]
mov dword [rsp + 0x28], eax
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1400025af
mov dword [rdx], eax
add qword [rbx + 8], 4
jmp 0x1400025bc
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.140003f30
mov rax, qword [rbx]
mov r8d, dword [rax + rsi*4]
mov rcx, r15
mov eax, r8d
mov dword [rcx], eax
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
call fcn.140016bb0
mov r8, qword [rbx + 8]
cmp rax, r8
je 0x1400025ff
lea rdx, [rax + 4]
sub r8, rdx
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
add qword [rbx + 8], 0xfffffffffffffffc
jmp 0x1400025ff
mov rax, qword [rbx]
mov ecx, dword [rax + rsi*4]
mov dword [r15], ecx
mov edx, dword [r15]
mov rcx, r12
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
xor ecx, ecx
mov dword [0x14002624c], ecx
jmp 0x140002578
mov rcx, qword [r14]
test rcx, rcx
je 0x140002668
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x14000264c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002684
mov rcx, r8
call fcn.140017714
mov qword [r14], 0
mov qword [r14 + 8], 0
mov qword [r14 + 0x10], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400176b0
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3