Function at 0x14016c5e0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x338
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov rax, qword [rsp + 0x350]
cmp dword [rax + 0x1c], 0
jne 0x14016c613
jmp 0x14016cda8
mov edx, 0x18
lea rcx, [rsp + 0x2f0]
call fcn.1400049d0
lea rcx, [rsp + 0x32]
call fcn.140005230
mov qword [rsp + 0x78], rax
movzx r8d, byte [rsp + 0x33]
lea rdx, [0x1401d2658]
lea rcx, [rsp + 0x190]
call fcn.14002b620
mov rcx, rax
call fcn.14000abe0
mov rdx, rax
lea rcx, [rsp + 0x1c0]
call fcn.140027ec0
nop
movzx r8d, byte [rsp + 0x34]
lea rdx, [0x1401d2688]
lea rcx, [rsp + 0x160]
call fcn.14002b810
mov rcx, rax
call fcn.14000ac90
mov rdx, rax
lea rcx, [rsp + 0x1e0]
call fcn.140027ec0
nop
movzx r8d, byte [rsp + 0x35]
lea rdx, [0x1401d2678]
lea rcx, [rsp + 0x170]
call fcn.14002b990
mov rcx, rax
call fcn.14000ac90
mov rdx, rax
lea rcx, [rsp + 0x200]
call fcn.140027ec0
nop
movzx r8d, byte [rsp + 0x36]
lea rdx, [0x1401d2670]
lea rcx, [rsp + 0x150]
call fcn.14002bb10
mov rcx, rax
call fcn.14000ad40
mov rdx, rax
lea rcx, [rsp + 0x220]
call fcn.140027ec0
nop
movzx r8d, byte [rsp + 0x37]
lea rdx, [0x1401d2668]
lea rcx, [rsp + 0xc8]
call fcn.14002bc50
mov rcx, rax
call fcn.14000adf0
mov rdx, rax
lea rcx, [rsp + 0x240]
call fcn.140027ec0
nop
movzx r8d, byte [rsp + 0x38]
lea rdx, [0x1401d26a0]
lea rcx, [rsp + 0x180]
call fcn.14002bd40
mov rcx, rax
call fcn.14000aea0
mov rdx, rax
lea rcx, [rsp + 0x260]
call fcn.140027ec0
nop
movzx r8d, byte [rsp + 0x39]
lea rdx, [0x1401d2698]
lea rcx, [rsp + 0xd0]
call fcn.14002bef0
mov rcx, rax
call fcn.14000adf0
mov rdx, rax
lea rcx, [rsp + 0x280]
call fcn.140027ec0
nop
movzx r8d, byte [rsp + 0x3a]
lea rdx, [0x1401d2694]
lea rcx, [rsp + 0x60]
call fcn.14002bfe0
mov rcx, rax
call fcn.14000af50
mov rdx, rax
lea rcx, [rsp + 0x2a0]
call fcn.140027ec0
nop
lea rax, [rsp + 0x2c0]
mov r8, rax
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x1a0]
call fcn.140005150
lea rcx, [rsp + 0x118]
mov rdi, rcx
mov rsi, rax
mov ecx, select
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x130]
lea rcx, [rsp + 0x118]
mov rdi, rax
mov rsi, rcx
mov ecx, select
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x2f0]
call fcn.1400274f0
nop
lea r9, [fcn.140005530]
mov r8d, 8
mov edx, 0x20
lea rcx, [rsp + 0x1c0]
call fcn.14019c86c
nop
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x2f0]
call fcn.140027410
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x2f0]
call fcn.140027470
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x350]
add rax, 0xb0
mov r9, rax
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0xe8]
call fcn.14002c070
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x2f0]
call fcn.140027410
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
call fcn.140024710
movzx eax, al
test eax, eax
je 0x14016c918
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
jmp 0x14016cda8
mov eax, dword [0x140266cf4]
mov rcx, qword [rsp + 0x350]
add rax, qword [rcx + 0x58]
lea r8, [0x14026a32f]
mov rdx, rax
lea rcx, [0x14026afd8]
call fcn.14002c120
movzx eax, al
test eax, eax
jne 0x14016c95a
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
jmp 0x14016cda8
mov eax, dword [0x140266cd4]
mov rcx, qword [rsp + 0x350]
add rax, qword [rcx + 0x58]
lea r8, [0x14026a384]
mov rdx, rax
lea rcx, [0x14026afd8]
call fcn.140039230
movzx eax, al
test eax, eax
jne 0x14016c99c
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
jmp 0x14016cda8
cmp dword [0x14026a384], 0xffffffff
jne 0x14016c9b8
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
jmp 0x14016cda8
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x3b]
call fcn.140005230
mov qword [rsp + 0xa0], rax
mov eax, dword [0x14026a384]
shr eax, 9
lea eax, [rax*8 + 0x10]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], 0
lea rax, [rsp + 0x50]
mov r8, rax
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x1b0]
call fcn.140005150
lea rcx, [rsp + 0x108]
mov rdi, rcx
mov rsi, rax
mov ecx, select
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x140]
lea rcx, [rsp + 0x108]
mov rdi, rax
mov rsi, rcx
mov ecx, select
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0xa0]
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0xa8]
call fcn.1400277b0
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
lea rcx, [0x14026b010]
call fcn.14003e930
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x58]
lea rcx, [0x14026afd8]
call fcn.140046380
mov qword [0x14026a378], rax
cmp qword [0x14026a378], 0
jne 0x14016cad5
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
jmp 0x14016cda8
mov eax, dword [0x14026a384]
and eax, 0x1ff
imul eax, eax, 0x78
mov eax, eax
mov rcx, qword [0x14026a378]
add rcx, rax
mov rax, rcx
lea r8, [0x14026a388]
mov rdx, rax
lea rcx, [0x14026afd8]
call fcn.1400060f0
movzx eax, al
test eax, eax
jne 0x14016cb22
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
jmp 0x14016cda8
lea rdx, [0x14026a388]
lea rcx, [0x14026a770]
call fcn.1400467d0
movzx eax, al
test eax, eax
jne 0x14016cb4f
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
jmp 0x14016cda8
movzx eax, byte [0x14026aa19]
test eax, eax
jne 0x14016cb81
mov rax, qword [rsp + 0x350]
xorps xmm0, xmm0
comiss xmm0, dword [rax + 0x11c]
jae 0x14016cb81
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
jmp 0x14016cda8
movzx eax, byte [0x14026aa18]
test eax, eax
je 0x14016cbd5
mov eax, dword [0x140266c90]
mov rcx, qword [rsp + 0x350]
add rax, qword [rcx + 0x58]
lea r8, [rsp + 0x2e8]
mov rdx, rax
lea rcx, [0x14026afd8]
call fcn.14002c120
nop
movzx eax, byte [rsp + 0x2e8]
test eax, eax
jne 0x14016cbd5
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
jmp 0x14016cda8
movzx eax, byte [0x1401f6105]
test eax, eax
je 0x14016cc1e
mov rax, qword [rsp + 0x350]
mov ecx, dword [0x14026a874]
cmp dword [rax + 0x104], ecx
je 0x14016cc09
cmp dword [0x14026a860], 0
jle 0x14016cc09
mov dword [rsp + 0x3c], 1
jmp 0x14016cc11
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [0x14026a380], al
jmp 0x14016cc44
cmp dword [0x14026a860], 0
jle 0x14016cc31
mov dword [rsp + 0x40], 1
jmp 0x14016cc39
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [0x14026a380], al
movzx eax, byte [0x14026a380]
test eax, eax
jne 0x14016cc62
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
jmp 0x14016cda8
mov eax, 8
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x14026f438], eax
jle 0x14016ccae
lea rcx, [0x14026f438]
call fcn.14019c7b8
cmp dword [0x14026f438], 0xffffffff
jne 0x14016ccae
lea rcx, [0x14026f440]
call fcn.140008340
lea rcx, [0x14026f438]
call fcn.14019c74c
nop
lea rcx, [rsp + 0x308]
call fcn.140008340
nop
lea rdx, [0x1401f60b4]
lea rcx, [rsp + 0xf8]
call fcn.14002c1c0
mov qword [rsp + 0x68], rax
lea r8, [0x14026f440]
lea rdx, [rsp + 0x308]
lea rcx, [rsp + 0x100]
call fcn.1400434e0
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.14016d160
movzx eax, al
test eax, eax
je 0x14016cd9a
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
test eax, eax
jge 0x14016cd27
mov byte [rsp + 0x30], 1
jmp 0x14016cd2c
mov byte [rsp + 0x30], 0
movzx eax, byte [rsp + 0x30]
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
jne 0x14016cd8b
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
lea rdx, [0x14016c5a0]
lea rcx, [rsp + 0x310]
call fcn.14016d1a0
nop
lea rcx, [rsp + 0x310]
call fcn.14016c510
nop
lea rcx, [rsp + 0x310]
call fcn.14016c4b0
nop
mov rax, qword [rsp + 0x308]
mov qword [0x14026f440], rax
lea rcx, [rsp + 0x2f0]
call fcn.1400274d0
nop
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.14019c6f0
add rsp, 0x338
pop rdi
pop rsi
ret