Function at 0x14004a990
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x178
mov rax, qword [0x140195088]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov r15, r8
mov ecx, 0x11
mov rsi, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebp, ax
mov ecx, 0x10
and ebp, 0x8000
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r14d, ax
xor r13d, r13d
and r14d, 0x8000
cmp dword [rdi + 0x68], r13d
je 0x14004a9fd
mov dword [rdi + 0x68], r13d
cmp rsi, 0x1b
je 0x14004aeb2
cmp dword [rdi + 0x6c], r13d
je 0x14004aa0f
mov dword [rdi + 0x6c], r13d
test ebp, ebp
jne 0x14004aeb2
mov rcx, qword [rdi + 0xa0]
mov edx, 8
mov qword [rsp + 0x1c8], rbx
mov qword [rsp + 0x170], r12
call fcn.140057cd0
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
mov rdx, qword [rdi + 0x118]
mov rcx, rdi
movzx ebx, ax
and ebx, 0x8000
test rdx, rdx
je 0x14004aa57
call fcn.14004edf0
jmp 0x14004aa82
mov rdx, qword [rdi + 0x120]
test rdx, rdx
je 0x14004aa6a
call fcn.14004f340
jmp 0x14004aa82
mov r8d, dword [rdi + 0x114]
mov r9d, 1
mov edx, dword [rdi + 0x110]
call fcn.14004e6f0
mov rcx, qword [rdi + 0xa0]
mov edx, 0x21
mov dword [rdi + 0xd4], ebx
call fcn.1400578b0
mov rcx, qword [rdi + 0x10]
mov ebx, eax
call fcn.140049520
mov rcx, qword [rdi + 0xa0]
mov edx, 9
mov r12d, eax
call fcn.140057cd0
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
and eax, 0x8000
cmp ebx, r12d
je 0x14004aaf3
test eax, eax
jne 0x14004aaf3
mov rcx, qword [rdi + 0x10]
xor r8d, r8d
mov edx, ebx
call fcn.140049870
mov rcx, qword [rdi + 0x10]
call fcn.140049520
cmp r12d, eax
je 0x14004aaf3
mov rcx, qword [rdi + 0x10]
call fcn.140049b30
cmp dword [0x1401881ec], r13d
mov r12, qword [rsp + 0x170]
je 0x14004ae5a
test ebp, ebp
je 0x14004ac4c
cmp rsi, 0x43
jne 0x14004ab1e
mov rdx, rsi
jmp 0x14004ad29
cmp rsi, 0x46
jne 0x14004ab4c
test r14d, r14d
je 0x14004ab3e
mov edx, 1
mov rcx, rdi
mov r8d, edx
call fcn.14004b8d0
jmp 0x14004ad35
mov rcx, qword [rdi + 8]
call fcn.140040820
jmp 0x14004ad35
cmp rsi, 0x47
jne 0x14004ab5f
mov rcx, rdi
call fcn.14004bf10
jmp 0x14004ad35
cmp rsi, 0x49
jne 0x14004abd0
mov rcx, qword [rdi + 0x98]
call fcn.140038b70
test eax, eax
jne 0x14004ab7a
lea ebx, [rsi - 0x48]
jmp 0x14004ab88
cmp eax, 1
mov ebx, r13d
mov edx, 2
cmove ebx, edx
mov rcx, qword [rdi + 0x98]
mov edx, ebx
call fcn.140039730
mov rcx, qword [rdi + 0x20]
mov edx, ebx
call fcn.140048070
mov rdx, qword [rdi + 0x118]
mov rcx, rdi
test rdx, rdx
je 0x14004abba
call fcn.14004edf0
jmp 0x14004ad35
mov rdx, qword [rdi + 0x120]
test rdx, rdx
je 0x14004ac1c
call fcn.14004f340
jmp 0x14004ad35
cmp rsi, 0x4c
je 0x14004ad35
cmp rsi, 0x4d
jne 0x14004ac39
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14004abf4
call fcn.140049520
mov rcx, qword [rdi + 0x10]
jmp 0x14004abfa
mov eax, r13d
mov rcx, r13
test eax, eax
mov ebx, r13d
mov r8d, 1
sete bl
mov edx, ebx
call fcn.140049870
mov rcx, qword [rdi + 0x20]
mov edx, ebx
call fcn.1400474f0
jmp 0x14004aba1
mov r8d, dword [rdi + 0x114]
mov r9d, 1
mov edx, dword [rdi + 0x110]
call fcn.14004e6f0
jmp 0x14004ad35
cmp rsi, 0x50
jne 0x14004ac4c
mov rcx, rdi
call fcn.14004b7f0
jmp 0x14004ad35
cmp dword [0x140188208], r13d
je 0x14004ac74
test ebp, ebp
je 0x14004ad26
cmp rsi, 0x51
jne 0x14004ac74
mov rcx, qword [rdi + 0x98]
call fcn.1400388a0
jmp 0x14004aeaa
test ebp, ebp
je 0x14004ad26
cmp rsi, 0x52
jne 0x14004ac9a
mov rcx, qword [rdi + 0x98]
call fcn.14003a040
mov dword [rdi + 0x68], 1
jmp 0x14004ad35
cmp rsi, 0x54
je 0x14004ad35
cmp rsi, 0x31
jne 0x14004acb6
xor edx, edx
mov rcx, rdi
call fcn.14004e350
jmp 0x14004ad35
cmp rsi, 0x32
jne 0x14004acc9
lea edx, [rsi - 0x31]
mov rcx, rdi
call fcn.14004e350
jmp 0x14004ad35
cmp rsi, 0x33
jne 0x14004aced
cmp dword [0x14018823c], r13d
mov edx, 2
mov eax, 5
mov rcx, rdi
cmovne edx, eax
call fcn.14004e350
jmp 0x14004ad35
cmp rsi, 0x34
jne 0x14004ad0a
mov eax, dword [0x14018823c]
mov rcx, rdi
neg eax
sbb edx, edx
add edx, 3
call fcn.14004e350
jmp 0x14004ad35
cmp rsi, 0x35
jne 0x14004ad26
cmp dword [0x14018823c], r13d
je 0x14004ad35
lea edx, [rsi - 0x32]
mov rcx, rdi
call fcn.14004e350
jmp 0x14004ad35
mov rdx, rsi
mov rcx, qword [rdi + 0x10]
mov r8, r15
call fcn.140049460
mov rdx, qword [rdi + 0x118]
mov rcx, rdi
test rdx, rdx
je 0x14004ad4b
call fcn.14004edf0
jmp 0x14004ad76
mov rdx, qword [rdi + 0x120]
test rdx, rdx
je 0x14004ad5e
call fcn.14004f340
jmp 0x14004ad76
mov r8d, dword [rdi + 0x114]
mov r9d, 1
mov edx, dword [rdi + 0x110]
call fcn.14004e6f0
cmp dword [0x140188228], r13d
je 0x14004aeaa
test ebp, ebp
jne 0x14004aeaa
lea rcx, [rsp + 0x50]
mov word [rsp + 0x30], r13w
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14004aeaa
xor edx, edx
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [rsp + 0x28], r13d
lea r9, [rsp + 0x30]
mov edx, eax
mov dword [rsp + 0x20], 8
lea r8, [rsp + 0x50]
mov ecx, esi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jne 0x14004aeaa
movzx ebx, word [rsp + 0x30]
cmp r13w, bx
je 0x14004aeaa
mov rcx, qword [rdi + 8]
call fcn.140040820
mov rcx, qword [rdi + 0x10]
call fcn.140049790
mov rcx, qword [rdi + 0xf0]
test rcx, rcx
je 0x14004ae11
call fcn.140032950
mov rcx, qword [rdi + 0xf0]
movzx edx, bx
call fcn.140031690
mov rcx, qword [rdi + 0x10]
call fcn.140049790
mov rdx, qword [rdi + 0xf0]
mov rcx, qword [rdi + 0x10]
call fcn.1400498e0
mov rdx, qword [rdi + 0xf0]
mov rcx, qword [rdi + 8]
call fcn.140040890
mov edx, 1
mov rcx, rdi
call fcn.14004a100
mov rcx, qword [rdi + 8]
call fcn.140040650
jmp 0x14004aeaa
mov rcx, qword [rdi + 0x10]
mov r8, r15
mov rdx, rsi
call fcn.140049460
mov rdx, qword [rdi + 0x118]
mov rcx, rdi
test rdx, rdx
je 0x14004ae7f
call fcn.14004edf0
jmp 0x14004aeaa
mov rdx, qword [rdi + 0x120]
test rdx, rdx
je 0x14004ae92
call fcn.14004f340
jmp 0x14004aeaa
mov r8d, dword [rdi + 0x114]
mov r9d, 1
mov edx, dword [rdi + 0x110]
call fcn.14004e6f0
mov rbx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14005d680
add rsp, 0x178
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret