Function at 0x1801631b0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x150
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r15, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
mov rsi, qword [rsp + 0x1b0]
mov rax, qword [0x180345030]
test rax, rax
jne 0x18016321a
lea ecx, [rax + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.18015a7e0
nop
mov qword [0x180345030], rax
xor r12d, r12d
mov dword [rax + 0x38], r12d
mov rcx, rbp
call fcn.180166bf0
mov rbx, qword [0x180345038]
test rbx, rbx
jne 0x18016326c
lea ecx, [rbx + 0x38]
call fcn.1802037c4
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov qword [rax + 0x20], r12
mov byte [rax + 0x2c], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x28], eax
mov byte [rbx + 0x30], r12b
mov qword [0x180345038], rbx
lea rax, [r14 - 0x18]
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x18], 6
mov rax, qword [0x180345028]
test rax, rax
jne 0x1801632af
mov ecx, 0x130
call fcn.1802037c4
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.1801505c0
nop
mov qword [0x180345028], rax
cmp byte [rax + 0x111], 0
je 0x18016340b
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x40]
call fcn.180233580
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov r9, qword [0x180345030]
test r9, r9
jne 0x180163305
lea ecx, [r9 + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.18015a7e0
mov r9, rax
mov qword [0x180345030], rax
mov r8, qword [r9]
mov rcx, qword [r9 + 8]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x180163380
cmp dword [r8], edi
jne 0x180163380
cmp dword [r8 + 4], 3
jne 0x180163380
test r9, r9
jne 0x18016335c
lea ecx, [r9 + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.18015a7e0
mov r9, rax
mov qword [0x180345030], rax
mov r8d, 3
mov edx, edi
mov rcx, r9
call fcn.18015ad80
test eax, eax
jne 0x1801633c7
mov dword [rsi], r12d
call fcn.18015d2c0
xor r9d, r9d
jmp 0x180163501
mov rax, qword [0x180345028]
test rax, rax
jne 0x1801633ab
mov ecx, 0x130
call fcn.1802037c4
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.1801505c0
nop
mov qword [0x180345028], rax
lea r9, [rsp + 0x40]
mov r8, r15
mov edx, edi
mov rcx, rax
call fcn.180150d40
mov dword [rsi], eax
test eax, eax
je 0x180163511
mov rax, qword [0x180345028]
test rax, rax
jne 0x1801633f2
mov ecx, 0x130
call fcn.1802037c4
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.1801505c0
nop
mov qword [0x180345028], rax
lea r9, [rsp + 0x40]
mov r8d, r15d
mov edx, edi
mov rcx, rax
call fcn.180150e90
mov dword [rsi], eax
jmp 0x180163511
mov r9, qword [0x180345030]
test r9, r9
jne 0x180163437
lea ecx, [r9 + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.18015a7e0
mov r9, rax
mov qword [0x180345030], rax
mov r8, qword [r9]
mov rcx, qword [r9 + 8]
sub rcx, r8
movabs rax, 0x2aaaaaaaaaaaaaab
imul rcx
sar rdx, 1
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x1801634af
cmp dword [r8], edi
jne 0x1801634af
cmp dword [r8 + 4], 3
jne 0x1801634af
test r9, r9
jne 0x18016348e
lea ecx, [r9 + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.18015a7e0
mov r9, rax
mov qword [0x180345030], rax
mov r8d, 3
mov edx, edi
mov rcx, r9
call fcn.18015ad80
test eax, eax
jne 0x1801634cf
mov dword [rsi], r12d
call fcn.18015d2c0
xor r9d, r9d
jmp 0x180163501
mov rax, qword [r14]
mov qword [rsp + 0x20], rsi
mov r9, r15
mov r8, rdi
mov rdx, rbp
mov rcx, r14
call qword [rax + 0x28]
cmp dword [rsi], 0
je 0x180163373
mov dword [rsi], 1
mov rax, qword [0x180345030]
test rax, rax
jne 0x1801634fe
lea ecx, [rax + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.18015a7e0
nop
mov qword [0x180345030], rax
mov r9d, dword [rsi]
mov r8d, 4
mov edx, edi
mov rcx, rax
call fcn.18015abc0
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0x150
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret