Function at 0x140049790
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
cmp dword [rsp + 0x98], 0x26
je 0x1400497e3
cmp dword [rsp + 0x98], 0x28
je 0x1400497e3
cmp dword [rsp + 0x98], 0x24
je 0x1400497e3
cmp dword [rsp + 0x98], 0x23
je 0x1400497e3
cmp dword [rsp + 0x98], 0x21
je 0x1400497e3
cmp dword [rsp + 0x98], 0x22
je 0x1400497e3
xor al, al
jmp 0x140049ca5
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x128]
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140049806
mov al, 1
jmp 0x140049ca5
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
sub eax, 0x21
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 7
ja case.0x14004983c.37
mov eax, dword [rsp + 0x40]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x49cb0]
add rax, rcx
jmp rax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0xa0], 0
je 0x14004987f
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0xa0]
cmp dword [rax + 0x2c], 0
jbe 0x14004987f
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0xa0]
mov eax, dword [rax + 0x2c]
dec eax
mov dword [rsp + 0x30], eax
jmp 0x140049887
mov dword [rsp + 0x30], 0
jmp case.0x14004983c.37
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0xa0], 0
je 0x1400498cc
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0xa0]
mov eax, dword [rax + 0x2c]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x30], eax
jb 0x1400498ca
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x30], eax
jmp 0x1400498d4
mov dword [rsp + 0x30], 0
jmp case.0x14004983c.37
mov dword [rsp + 0x30], 0
jmp case.0x14004983c.37
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x30], eax
jmp case.0x14004983c.37
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0xa0], 0
je 0x14004991f
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0xa0]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x30], eax
jmp 0x140049927
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x40]
shr eax, 3
and eax, 1
test eax, eax
je 0x140049950
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x84]
mov dword [rsp + 0x5c], eax
jmp 0x140049958
mov dword [rsp + 0x5c], 0
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov ecx, dword [rcx + 0x78]
mov eax, dword [rax + 0x74]
sub eax, ecx
sub eax, dword [rsp + 0x5c]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140049986
mov al, 1
jmp 0x140049ca5
mov eax, dword [rsp + 0x34]
cdq
mov rcx, qword [rsp + 0x90]
idiv dword [rcx + 0x7c]
dec eax
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x1400499aa
mov al, 1
jmp 0x140049ca5
cmp dword [rsp + 0x98], 0x21
jne 0x140049a00
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x88]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x30], eax
jbe 0x1400499da
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30], eax
jmp 0x1400499fe
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jb 0x1400499f6
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
jmp 0x1400499fe
mov dword [rsp + 0x30], 0
jmp case.0x14004983c.37
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x88]
add eax, dword [rsp + 0x34]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x44], eax
jb 0x140049a2a
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x30], eax
jae 0x140049a3e
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x30], eax
jmp case.0x14004983c.37
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x30], eax
jb case.0x14004983c.37
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x30], eax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x140049a7c
mov dword [rsp + 0x50], 1
jmp 0x140049a84
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x3c], al
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x140049aa7
mov dword [rsp + 0x54], 1
jmp 0x140049aaf
mov dword [rsp + 0x54], 0
movzx eax, byte [rsp + 0x54]
mov byte [rsp + 0x3d], al
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x128]
mov ecx, dword [rsp + 0x30]
mov rax, qword [rax + 8]
mov rdx, qword [rsp + 0x90]
mov rax, qword [rax + rcx*8]
mov qword [rdx + 0xa0], rax
xor r8d, r8d
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0xa0]
mov rcx, qword [rsp + 0x90]
call fcn.140048ac0
movzx eax, byte [rsp + 0x3d]
test eax, eax
je 0x140049be5
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0xac], 0xffffffff
je 0x140049be5
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xac]
cmp dword [rsp + 0x30], eax
jbe 0x140049b53
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xac]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x58], eax
jmp 0x140049b6d
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0xac]
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x90]
call fcn.1400487a0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x90]
call fcn.1400481c0
movzx eax, al
test eax, eax
je 0x140049be0
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x140049c85
movzx eax, byte [rsp + 0x3c]
test eax, eax
jne 0x140049c85
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0xa0]
mov rcx, qword [rsp + 0x90]
mov eax, dword [rax + 0x2c]
mov dword [rcx + 0xac], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
call fcn.1400487a0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8d, dword [rsp + 0x48]
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x90]
call fcn.1400481c0
movzx eax, al
test eax, eax
je 0x140049c85
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
call fcn.140048f20
mov rcx, qword [rsp + 0x90]
call fcn.14004dbe0
mov al, 1
add rsp, 0x88
ret