Function at 0x14004e6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov rax, qword [0x140195088]
xor rax, rsp
mov qword [rbp - 8], rax
mov r15d, r9d
mov r14d, r8d
mov edi, edx
mov rbx, rcx
mov r10d, dword [0x1401a36c8]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rsi, qword [rax + r10*8]
add rsi, rcx
mov eax, dword [rsi]
cmp dword [0x1401a17a0], eax
jg 0x14004ed8e
mov eax, dword [rsi]
cmp dword [0x1401a18c8], eax
jg 0x14004ed2f
test r15d, r15d
jne 0x14004e775
cmp dword [rbx + 0x110], edi
jne 0x14004e775
cmp dword [rbx + 0x114], r14d
je 0x14004ed14
xor r12d, r12d
cmp edi, 0xffffffff
je 0x14004eca2
mov eax, dword [rbx + 0xf8]
add eax, 0xfffffffe
cmp eax, 2
jbe 0x14004eca2
xor edx, edx
mov rcx, qword [rbx + 0x20]
call fcn.140048240
mov r8d, edi
lea rcx, [0x1401a1788]
cmp dword [0x1401a15d8], r12d
je 0x14004e7d5
test r14d, r14d
je 0x14004e7c7
mov r9d, r14d
lea rdx, [0x1400b9960]
call fcn.140032800
jmp 0x14004e834
lea rdx, [0x1400b9978]
call fcn.140032800
jmp 0x14004e834
mov r9d, edi
cmp edi, 0xffff
ja 0x14004e801
test r14d, r14d
je 0x14004e7f3
mov dword [rsp + 0x20], r14d
lea rdx, str._d___04X__g_04X
jmp 0x14004e82f
lea rdx, str._d___04X_
call fcn.140032800
jmp 0x14004e834
movzx eax, di
shr r9d, 0x10
test r14d, r14d
je 0x14004e824
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
lea rdx, str._d___X__04X__g_04X
call fcn.140032800
jmp 0x14004e834
mov dword [rsp + 0x20], eax
lea rdx, str._d___X__04X_
call fcn.140032800
cmp dword [0x1401a15d0], r12d
je 0x14004e929
xor eax, eax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov edx, 0x80
lea rcx, [rbp - 0x38]
call fcn.140031390
nop
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov edx, 0x80
lea rcx, [rbp - 0x20]
call fcn.140031390
nop
mov ecx, edi
call fcn.140035380
mov r15d, eax
lea rdx, str._UTF_8:__
lea rcx, [rbp - 0x38]
call fcn.140031610
mov esi, r12d
test r15d, r15d
jle 0x14004e8ed
nop dword [rax]
mov edx, esi
mov ecx, edi
call fcn.1400353c0
movzx r8d, al
lea rdx, [0x140097de0]
lea rcx, [rbp - 0x20]
call fcn.140032800
test esi, esi
jle 0x14004e8d1
lea rdx, [0x140097ddc]
lea rcx, [rbp - 0x38]
call fcn.140031610
lea rcx, [rbp - 0x20]
call fcn.140025730
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140031610
inc esi
cmp esi, r15d
jl 0x14004e8a0
lea rdx, [0x1400b0194]
lea rcx, [rbp - 0x38]
call fcn.140031610
lea rcx, [rbp - 0x38]
call fcn.140025730
mov rdx, rax
lea rcx, [0x1401a1788]
call fcn.140031610
nop
lea rcx, [rbp - 0x20]
call fcn.140031450
nop
lea rcx, [rbp - 0x38]
call fcn.140031450
cmp dword [0x1401a15d4], 0
je 0x14004e9ce
xor eax, eax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov edx, 0x80
lea rcx, [rbp - 0x38]
call fcn.140031390
nop
cmp edi, 0xffff
jbe 0x14004e999
lea ecx, [rdi - 0x10000]
shr ecx, 0xa
mov eax, 0x2800
sub cx, ax
movzx eax, di
mov edx, 0x3ff
and ax, dx
mov edx, 0x2400
sub ax, dx
movzx r9d, ax
movzx r8d, cx
lea rdx, str._UTF_16:___04X__04X_
lea rcx, [rbp - 0x38]
call fcn.140032800
jmp 0x14004e9ac
mov r8d, edi
lea rdx, str._UTF_16:___04X_
lea rcx, [rbp - 0x38]
call fcn.140032800
lea rcx, [rbp - 0x38]
call fcn.140025730
mov rdx, rax
lea rcx, [0x1401a1788]
call fcn.140031610
nop
lea rcx, [rbp - 0x38]
call fcn.140031450
cmp dword [0x1401a15d8], 0
je 0x14004ea31
xor eax, eax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov edx, 0x80
lea rcx, [rbp - 0x20]
call fcn.140031390
nop
movzx r9d, di
mov r8d, edi
shr r8d, 0x10
lea rdx, str._UTF_32:___04X__04X_
lea rcx, [rbp - 0x20]
call fcn.140032800
lea rcx, [rbp - 0x20]
call fcn.140025730
mov rdx, rax
lea rcx, [0x1401a1788]
call fcn.140031610
nop
lea rcx, [rbp - 0x20]
call fcn.140031450
mov rcx, qword [rbx + 0x98]
call fcn.140038e60
test eax, eax
jne 0x14004eac8
cmp edi, 0x80
jb 0x14004eac8
lea r8d, [rdi - 0x7f]
mov eax, 0xcccccccd
mul r8d
shr edx, 2
lea eax, [rdx + rdx*4]
cmp r8d, eax
je 0x14004eac8
mov edx, 0x278c
lea rcx, [0x1401a18b0]
call fcn.140033cf0
mov rdx, qword [0x1401a18b8]
mov rcx, qword [rbx + 0x20]
call fcn.140048080
lea rdx, [0x14009bc34]
mov rcx, qword [rbx + 0x20]
call fcn.140048160
lea rdx, [0x14009bc34]
mov rcx, qword [rbx + 0x20]
call fcn.140048180
lea rdx, [0x14009bc34]
mov rcx, qword [rbx + 0x20]
call fcn.1400481a0
mov rax, qword [rbx + 0x20]
mov dword [rax + 0xc8], 1
jmp 0x14004ecf0
lea rcx, [0x1401a1788]
call fcn.140025730
mov rdx, rax
mov rcx, qword [rbx + 0x20]
call fcn.140048080
mov edx, 8
mov rcx, qword [rbx + 0xa0]
call fcn.140057cd0
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
mov edx, edi
test cx, ax
mov rcx, qword [rbx + 0xe8]
je 0x14004eb14
mov r8d, 1
jmp 0x14004eb17
xor r8d, r8d
call fcn.1400344c0
cmp dword [0x1401a15e4], 0
jne 0x14004eb2e
cmp dword [0x1401a15e0], 0
je 0x14004eb3f
xor r8d, r8d
mov edx, edi
mov rcx, qword [rbx + 0xe8]
call fcn.1400344c0
mov rdx, qword [rbx + 0xe8]
mov rcx, qword [rbx + 0x20]
call fcn.1400480a0
mov rcx, qword [rbx + 0x98]
call fcn.140038b70
cmp eax, 2
jne 0x14004eb93
lea rdx, [0x1400b9a88]
mov rcx, qword [rbx + 0x20]
call fcn.140048180
mov ecx, edi
call fcn.140030810
mov rdx, rax
mov rcx, qword [rbx + 0x20]
call fcn.1400481a0
mov rax, qword [rbx + 0x20]
mov dword [rax + 0xc8], r12d
jmp 0x14004ecf0
mov rcx, qword [rbx + 0x98]
call fcn.140038b70
cmp eax, 3
jne 0x14004ebd7
lea rdx, str.LaTeX
mov rcx, qword [rbx + 0x20]
call fcn.140048180
mov ecx, edi
call fcn.140030910
mov rdx, rax
mov rcx, qword [rbx + 0x20]
call fcn.1400481a0
mov rax, qword [rbx + 0x20]
mov dword [rax + 0xc8], r12d
jmp 0x14004ecf0
mov rsi, r12
mov rax, qword [rbx + 0x98]
mov rcx, qword [rax + 0xa0]
test rcx, rcx
je 0x14004ebf5
call fcn.140025740
mov rsi, rax
mov r8, rsi
mov edx, 0x20
mov rcx, qword [rbx + 0xc8]
call fcn.140024c80
mov r8, rsi
mov edx, edi
mov rcx, qword [rbx + 0xc8]
call fcn.140024c80
mov rdx, rsi
mov rcx, qword [rbx + 0xc8]
call fcn.140024bd0
mov rdx, rax
mov rcx, qword [rbx + 0x20]
call fcn.140048180
mov r8d, 0x7f
lea rdx, [0x1401a17b0]
mov rcx, qword [rbx + 0xc8]
call fcn.1400241f0
lea rdx, [0x1401a17b0]
mov rcx, qword [rbx + 0x20]
call fcn.1400481a0
mov rcx, qword [rbx + 0x98]
call fcn.140038b70
cmp eax, 2
jne 0x14004ec84
mov rax, qword [rbx + 0x20]
mov dword [rax + 0x68], r12d
mov rax, qword [rbx + 0x20]
mov dword [rax + 0xc8], r12d
jmp 0x14004ecf0
mov rax, qword [rbx + 0xc8]
mov rcx, qword [rbx + 0x20]
mov eax, dword [rax + 0x48]
mov dword [rcx + 0x68], eax
mov rax, qword [rbx + 0x20]
mov dword [rax + 0xc8], r12d
jmp 0x14004ecf0
mov edx, 1
mov rcx, qword [rbx + 0x20]
call fcn.140048240
lea rdx, [0x14009bc34]
mov rcx, qword [rbx + 0x20]
call fcn.140048080
lea rdx, [0x14009bc34]
mov rcx, qword [rbx + 0x20]
call fcn.140048160
lea rdx, [0x14009bc34]
mov rcx, qword [rbx + 0x20]
call fcn.140048180
lea rdx, [0x14009bc34]
mov rcx, qword [rbx + 0x20]
call fcn.1400481a0
mov rcx, qword [rbx + 0x20]
call fcn.140048200
mov dword [rbx + 0x110], edi
mov dword [rbx + 0x114], r14d
mov qword [rbx + 0x118], r12
mov qword [rbx + 0x120], r12
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14005d680
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [0x1401a18c8]
call fcn.14005db9c
cmp dword [0x1401a18c8], 0xffffffff
jne 0x14004e75b
xor eax, eax
mov qword [0x1401a18b0], rax
mov qword [0x1401a18b8], rax
mov qword [0x1401a18c0], rax
mov edx, 0x80
lea rcx, [0x1401a18b0]
call fcn.140033c10
lea rcx, [0x140096560]
call fcn.14005d96c
nop
lea rcx, [0x1401a18c8]
call fcn.14005db3c
jmp 0x14004e75b
lea rcx, [0x1401a17a0]
call fcn.14005db9c
cmp dword [0x1401a17a0], 0xffffffff
jne 0x14004e74d
xor eax, eax
mov qword [0x1401a1788], rax
mov qword [0x1401a1790], rax
mov qword [0x1401a1798], rax
mov edx, 0x80
lea rcx, [0x1401a1788]
call fcn.140031390
lea rcx, [0x140096570]
call fcn.14005d96c
nop
lea rcx, [0x1401a17a0]
call fcn.14005db3c
jmp 0x14004e74d