Function at 0x180162a40
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x290], rbx
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15, r9
mov rbp, r8
mov rbx, rdx
mov r14, rcx
mov rsi, qword [rsp + 0x2b0]
mov qword [rsp + 0x48], 0xf
xor edi, edi
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x30], dil
lea r8d, [rdi + 8]
lea rdx, str.key_down
lea rcx, [rsp + 0x30]
call fcn.18005a720
nop
call fcn.1800a26e0
mov rcx, qword [rax + 8]
add rcx, 0xa8
lea rdx, [rsp + 0x30]
call fcn.180094f20
mov byte [rax], dil
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x180162b26
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x180162b21
test cl, 0x1f
je 0x180162af4
call fcn.180234c4c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180162b03
call fcn.180234c4c
int3
sub rcx, rax
cmp rcx, 8
jae 0x180162b12
call fcn.180234c4c
int3
cmp rcx, 0x27
jbe 0x180162b1e
call fcn.180234c4c
int3
mov rcx, rax
call fcn.180203788
mov rcx, rbx
call fcn.180166bf0
mov rax, qword [0x180345030]
test rax, rax
jne 0x180162b57
lea ecx, [rax + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.18015a7e0
nop
mov qword [0x180345030], rax
mov dword [rax + 0x38], edi
mov rbx, qword [0x180345038]
test rbx, rbx
jne 0x180162b9d
lea ecx, [rbx + 0x38]
call fcn.1802037c4
mov rbx, rax
mov qword [rsp + 0x20], rax
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x20], rdi
mov byte [rax + 0x2c], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x28], eax
mov byte [rbx + 0x30], 0
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], 5
mov rax, qword [0x180345028]
test rax, rax
jne 0x180162be0
mov ecx, 0x130
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.1801505c0
nop
mov qword [0x180345028], rax
cmp byte [rax + 0x111], 0
je 0x180162c74
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x50]
call fcn.180233580
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetKeyboardState]
mov rax, qword [0x180345028]
test rax, rax
jne 0x180162c35
mov ecx, 0x130
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.1801505c0
nop
mov qword [0x180345028], rax
lea r9, [rsp + 0x50]
mov r8, r15
mov edx, ebp
mov rcx, rax
call fcn.180150d40
mov dword [rsi], eax
mov rax, qword [0x180345030]
test rax, rax
jne 0x180162d73
lea ecx, [rax + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.18015a7e0
nop
jmp 0x180162d6c
test rsi, rsi
jne 0x180162c83
mov eax, 0x80070057
jmp 0x180162d88
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r14d, ax
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x150]
call fcn.180233580
lea rcx, [rsp + 0x150]
call qword [sym.imp.USER32.dll_GetKeyboardState]
cmp qword [0x180344ac0], 0
jne 0x180162cd5
mov ecx, 1
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov qword [0x180344ac0], rax
mov rax, qword [0x180344f48]
test rax, rax
jne 0x180162d00
mov ecx, 0x320
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.1800c0bf0
nop
mov qword [0x180344f48], rax
lea r9, [rsp + 0x150]
mov r8, r15
mov edx, ebp
mov rcx, rax
call fcn.1800c1d10
mov ebx, eax
cmp qword [0x180344ac0], 0
jne 0x180162d37
mov ecx, 1
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov qword [0x180344ac0], rax
call fcn.1800d58a0
test r14w, r14w
js 0x180162d48
test ebx, ebx
setne dil
mov dword [rsi], edi
mov rax, qword [0x180345030]
test rax, rax
jne 0x180162d73
lea ecx, [rax + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.18015a7e0
nop
mov qword [0x180345030], rax
mov r9d, dword [rsi]
mov r8d, 3
mov edx, ebp
mov rcx, rax
call fcn.18015abc0
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1802037a0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret