Function at 0x180162550
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, r9
mov rbp, r8
mov rbx, rdx
mov r15, rcx
mov r14, qword [rsp + 0x2c0]
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], 1
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x180162631
inc rax
mov rcx, qword [rsp + 0x30]
cmp rax, 0x1000
jb 0x18016262c
test cl, 0x1f
je 0x1801625ff
call fcn.180234c4c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x18016260e
call fcn.180234c4c
int3
sub rcx, rax
cmp rcx, 8
jae 0x18016261d
call fcn.180234c4c
int3
cmp rcx, 0x27
jbe 0x180162629
call fcn.180234c4c
int3
mov rcx, rax
call fcn.180203788
mov rax, qword [0x180345030]
test rax, rax
jne 0x18016265a
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], 1
mov dword [0x18034436c], edi
mov rcx, rbx
call fcn.180166bf0
mov rsi, qword [0x180344b18]
test rsi, rsi
jne 0x18016269a
lea ecx, [rsi + 0x48]
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.180082dd0
mov rsi, rax
mov qword [0x180344b18], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp ebx, eax
je 0x1801626e0
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1801626d4
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_PostMessageW]
mov qword [rsi + 8], rdi
mov rcx, rsi
call fcn.1800831d0
mov rbx, qword [0x180345038]
test rbx, rbx
jne 0x180162723
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 rsi, [r15 - 0x18]
mov qword [rbx + 0x20], rsi
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 0x180162766
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 0x1801627fb
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 0x1801627bb
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, r12
mov edx, ebp
mov rcx, rax
call fcn.180150d40
mov dword [r14], eax
mov rax, qword [0x180345030]
test rax, rax
jne 0x180162a06
lea ecx, [rax + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.18015a7e0
nop
jmp 0x1801629ff
test dword [r15 + 0x44], 0x40000000
je 0x18016280d
mov rcx, rsi
call fcn.180163e00
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r15d, ax
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, 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]
mov rcx, qword [0x180344ac0]
test rcx, rcx
jne 0x180162872
mov ecx, 1
call fcn.1802037c4
mov rcx, rax
mov qword [rsp + 0x20], rax
mov qword [0x180344ac0], rax
mov rax, qword [0x180344f48]
test rax, rax
jne 0x1801628a4
mov ecx, 0x320
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov rcx, rax
call fcn.1800c0bf0
nop
mov qword [0x180344f48], rax
mov rcx, qword [0x180344ac0]
mov dword [rax + 0x1b0], edi
test rcx, rcx
jne 0x1801628cc
mov ecx, 1
call fcn.1802037c4
mov qword [rsp + 0x20], rax
mov qword [0x180344ac0], rax
mov rax, qword [0x180344f48]
test rax, rax
jne 0x1801628f0
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, r12
mov edx, ebp
mov rcx, rax
call fcn.1800c1d10
mov esi, eax
test r15w, r15w
jns 0x1801629d4
test bx, bx
js 0x1801629d4
mov rax, qword [0x180344aa8]
test rax, rax
jne 0x180162944
lea ecx, [rax + 8]
call fcn.1802037c4
mov qword [rsp + 0x20], rax
lea rcx, vtable.CShareConfigManager.0
mov qword [rax], rcx
mov qword [0x180344aa8], rax
mov r8, qword [rax]
mov edx, 0x6c
mov rcx, rax
call qword [r8]
cmp eax, 1
jne 0x1801629cb
lea eax, [rbp - 0x30]
cmp eax, 9
ja 0x1801629cb
mov ecx, ebp
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1801629cb
lea ebx, [rbp - 0x31]
mov eax, 9
cmp ebp, 0x30
cmove ebx, eax
call fcn.180211d54
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8 + 0x30]
test al, al
je 0x1801629ba
call fcn.180211d54
mov r8, qword [rax]
mov edx, 2
mov rcx, rax
call qword [r8 + 0x10]
cmp eax, ebx
jne 0x1801629ba
call fcn.18015d260
mov rdx, qword [rax + 8]
call fcn.18015bbb0
jmp 0x1801629cb
call fcn.18015d260
mov r8d, ebx
mov rdx, qword [rax + 8]
call fcn.18015bc80
cmp esi, 0xffffffff
sete dil
jmp 0x1801629da
test esi, esi
setne dil
mov dword [r14], edi
mov rax, qword [0x180345030]
test rax, rax
jne 0x180162a06
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 [r14]
mov r8d, 2
mov edx, ebp
mov rcx, rax
call fcn.18015abc0
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0x260
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret