Function at 0x1802a45e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0xc8
xor dil, dil
mov rbx, rcx
mov byte [rsp + 0xf8], dil
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, eax
mov dword [rsp + 0x24], eax
mov eax, dword [0x180685e30]
nop
cmp ecx, eax
jae 0x1802a4628
mov eax, dword [0x180685e30]
nop
add eax, 0xfffffc18
cmp ecx, eax
jae 0x1802a4630
mov eax, ecx
xchg dword [0x180685e30], eax
mov eax, dword [rbx + 0x6c]
sub eax, 1
movsxd rdx, eax
mov qword [rsp + 0x50], rdx
js 0x1802a498c
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xb0], r13
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xa0], r15
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx + 0x60]
mov r8, qword [rax + rdx*8]
mov qword [rsp + 0x48], r8
cmp byte [r8 + 0x18], 0
je 0x1802a494d
mov eax, dword [r8 + 0x14]
sub eax, 1
movsxd rcx, eax
mov qword [rsp + 0x38], rcx
js 0x1802a494d
lea rdx, [rcx + rcx*2]
shl rdx, 2
mov qword [rsp + 0x40], rdx
nop word [rax + rax]
mov rax, qword [r8 + 8]
movsd xmm0, qword [rdx + rax]
mov r12d, dword [rdx + rax + 8]
movsd qword [rsp + 0x58], xmm0
mov esi, dword [rsp + 0x58]
movsd qword [rsp + 0x30], xmm0
bt esi, 0x10
jae 0x1802a46e9
movzx ecx, si
jmp 0x1802a46fb
movzx ecx, si
call qword [sym.imp.USER32.dll_VkKeyScanW]
movzx ecx, al
cmp al, 0xff
jne 0x1802a46fb
mov ecx, esi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov r15d, dword [rsp + 0x5c]
shr eax, 0xf
test al, 1
je 0x1802a471f
mov eax, r15d
mov byte [rsp + 0x20], 1
xor eax, dword [0x18067b530]
test al, 7
je 0x1802a4724
mov byte [rsp + 0x20], 0
mov r14d, dword [rbx + 0x7c]
xor r9d, r9d
xor r13b, r13b
mov dword [rsp + 0x28], r9d
sub r14d, 1
movsxd rbp, r14d
js 0x1802a47b2
nop dword [rax]
mov rax, qword [rbx + 0x70]
mov rdi, qword [rax + rbp*8]
cmp r15d, dword [rdi + 4]
jne 0x1802a479c
mov eax, dword [rdi + 8]
cmp r12d, eax
je 0x1802a475f
test r12d, r12d
je 0x1802a475f
test eax, eax
jne 0x1802a479c
mov eax, dword [rdi]
cmp esi, eax
je 0x1802a4828
cmp esi, 0x100
jge 0x1802a479c
cmp eax, 0x100
jge 0x1802a479c
movzx ecx, si
call fcn.18012553c
movzx ecx, word [rdi]
movzx ebx, ax
call fcn.18012553c
cmp bx, ax
mov rbx, qword [rsp + 0xe0]
je 0x1802a4828
dec r14d
sub rbp, 1
jns 0x1802a4740
mov r9d, dword [rsp + 0x28]
movzx edi, byte [rsp + 0xf8]
movzx ebp, byte [rsp + 0x20]
cmp bpl, r13b
je 0x1802a491f
xor esi, esi
lea rdi, [rbx + 0x70]
test bpl, bpl
je 0x1802a483f
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.18011dae8
movsd xmm0, qword [rsp + 0x30]
mov rbx, rax
movsd qword [rax], xmm0
mov dword [rax + 8], r12d
mov eax, dword [rsp + 0x24]
mov dword [rbx + 0xc], eax
mov ecx, dword [rdi + 0xc]
inc ecx
cmp ecx, dword [rdi + 8]
jle 0x1802a4812
mov eax, ecx
test ecx, ecx
jns 0x1802a4800
lea eax, [rcx + 1]
sar eax, 1
lea edx, [rax + 8]
add edx, ecx
mov rcx, rdi
and edx, 0xfffffff8
call fcn.180009700
movsxd rcx, dword [rdi + 0xc]
lea eax, [rcx + 1]
mov dword [rdi + 0xc], eax
mov rax, qword [rdi]
mov qword [rax + rcx*8], rbx
jmp 0x1802a48ad
mov r13b, 1
mov r9d, r14d
movzx edi, r13b
mov byte [rsp + 0xf8], r13b
jmp 0x1802a47b2
mov rax, qword [rdi]
mov edx, dword [rsp + 0x24]
movsxd rcx, r9d
mov r8, qword [rax + rcx*8]
lea rcx, [rax + rcx*8]
mov eax, dword [r8 + 0xc]
cmp edx, eax
jbe 0x1802a485d
mov esi, edx
sub esi, eax
mov edx, dword [rdi + 0xc]
xor ebx, ebx
cmp r9d, edx
jae 0x1802a4885
sub edx, r9d
mov rbx, r8
dec edx
movsxd r8, edx
lea rdx, [rcx + 8]
shl r8, 3
call fcn.18037edb0
dec dword [rdi + 0xc]
mov edx, dword [rdi + 0xc]
mov ecx, dword [rdi + 8]
lea eax, [rdx + rdx]
cmp eax, ecx
jge 0x1802a489b
cmp edx, ecx
jge 0x1802a489b
mov rcx, rdi
call fcn.180009700
test rbx, rbx
je 0x1802a48ad
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.18011d9c0
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x68]
movsd xmm0, qword [rsp + 0x30]
xor r8d, r8d
mov rbx, qword [rsp + 0xe0]
mov dword [rsp + 0x6c], 0
mov eax, dword [rax]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0xf0]
mov rcx, qword [rbx + 0x58]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], 1
mov byte [rsp + 0x8c], bpl
movsd qword [rsp + 0x80], xmm0
mov dword [rsp + 0x88], r12d
mov dword [rsp + 0x90], esi
call fcn.1802a6000
mov dil, 1
mov byte [rsp + 0xf8], dil
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
dec rcx
mov r8, qword [rsp + 0x48]
sub rdx, 0xc
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], rdx
test rcx, rcx
jns 0x1802a46c0
mov rdx, qword [rsp + 0x50]
sub rdx, 1
mov qword [rsp + 0x50], rdx
jns 0x1802a4680
mov r15, qword [rsp + 0xa0]
mov r14, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xb8]
mov rsi, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xe8]
movzx eax, dil
add rsp, 0xc8
pop rdi
pop rbx
ret