Function at 0x180162db0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x168
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r12, r9
mov rdi, r8
mov r14, rdx
mov r15, rcx
mov rsi, qword [rsp + 0x1d0]
mov rax, qword [0x180345030]
test rax, rax
jne 0x180162e1c
lea ecx, [rax + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.18015a7e0
nop
mov qword [0x180345030], rax
mov dword [rax + 0x38], 1
mov rcx, r14
call fcn.180166bf0
xor r13d, r13d
mov rbx, qword [0x180345038]
test rbx, rbx
jne 0x180162e71
lea ecx, [rbx + 0x38]
call fcn.1802037c4
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [rax], r13
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x20], r13
mov byte [rax + 0x2c], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 0x28], eax
mov byte [rbx + 0x30], r13b
mov qword [0x180345038], rbx
lea rbp, [r15 - 0x18]
mov qword [rbx + 0x20], rbp
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 0x180162eb4
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 0x180163018
mov rcx, rbp
call fcn.180163b20
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 r9, qword [0x180345030]
test r9, r9
jne 0x180162f12
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 0x180162f8d
cmp dword [r8], edi
jne 0x180162f8d
cmp dword [r8 + 4], 2
jne 0x180162f8d
test r9, r9
jne 0x180162f69
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, 2
mov edx, edi
mov rcx, r9
call fcn.18015ad80
test eax, eax
jne 0x180162fd4
mov dword [rsi], r13d
call fcn.18015d2c0
xor r9d, r9d
jmp 0x180163177
mov rax, qword [0x180345028]
test rax, rax
jne 0x180162fb8
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 + 0x50]
mov r8, r12
mov edx, edi
mov rcx, rax
call fcn.180150d40
mov dword [rsi], eax
test eax, eax
je 0x180163187
mov rax, qword [0x180345028]
test rax, rax
jne 0x180162fff
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 + 0x50]
mov r8d, r12d
mov edx, edi
mov rcx, rax
call fcn.180150e90
mov dword [rsi], eax
jmp 0x180163187
mov r9, qword [0x180345030]
test r9, r9
jne 0x180163044
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 dword [r9 + 0x30], 1
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 0x1801630a2
cmp dword [r8], edi
jne 0x1801630a2
cmp dword [r8 + 4], 2
jne 0x1801630a2
mov r8d, 2
mov edx, edi
mov rcx, r9
call fcn.18015ad80
test eax, eax
jne 0x1801630c2
mov dword [rsi], r13d
call fcn.18015d2c0
xor r9d, r9d
jmp 0x180163177
mov rax, qword [r15]
mov qword [rsp + 0x20], rsi
mov r9, r12
mov r8, rdi
mov rdx, r14
mov rcx, r15
call qword [rax + 0x20]
cmp dword [rsi], 0
je 0x180162f80
mov ecx, 0x30
call fcn.1802037c4
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rax, vtable.CBaseEditSession.0
mov qword [rbx], rax
mov dword [rbx + 0x18], 1
mov qword [rbx + 8], r14
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx + 8]
mov qword [rbx + 0x10], rbp
mov r8, qword [rbp]
mov rcx, rbp
call qword [r8 + 8]
lea rax, vtable.CKeyHandlerEditSession.0
mov qword [rbx], rax
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x28], r12
mov dword [rsp + 0x30], r13d
mov rax, qword [r14]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 6
mov r8, rbx
mov edx, dword [r15 + 0x40]
mov rcx, r14
call qword [rax + 0x18]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov dword [rsi], 1
mov rax, qword [0x180345030]
test rax, rax
jne 0x180163170
lea ecx, [rax + 0x40]
call fcn.1802037c4
mov qword [rsp + 0x40], rax
mov rcx, rax
call fcn.18015a7e0
nop
mov qword [0x180345030], rax
mov dword [rax + 0x30], r13d
mov r9d, dword [rsi]
mov r8d, 1
mov edx, edi
mov rcx, rax
call fcn.18015abc0
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret