Function at 0x1401973b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 8]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x104
ja 0x14019741f
cmp dword [rsp + 0x58], 0x104
je case.0x14019744c.512
mov eax, dword [rsp + 0x58]
sub eax, 0xa1
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x5f
ja case.0x14019744c.515
mov eax, dword [rsp + 0x58]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x197850]
mov eax, dword [rcx + rax*4 + 0x197844]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x58]
sub eax, reloc.mfc90u.dll_COleStreamFile::COleStreamFile
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 8
ja case.0x14019744c.515
mov eax, dword [rsp + 0x58]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x1978b0]
add rax, rcx
jmp rax
mov rax, qword [rsp + 0x90]
cmp dword [rax + reloc.mfc90u.dll_CBrush::CBrush], 0xffffffff
je case.0x14019744c.512
mov ecx, send
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je case.0x14019744c.512
mov rax, qword [rsp + 0x98]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x21
je 0x1401975c6
cmp qword [rsp + 0x60], 0x22
je 0x1401974a6
jmp case.0x14019744c.512
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + reloc.mfc90u.dll_CBrush::CBrush]
add eax, 1
mov dword [rsp + 0x20], eax
jmp 0x1401974c8
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + reloc.mfc90u.dll_CBrush::CBrush]
mov rcx, qword [rsp + 0x90]
add eax, dword [rcx + 0x148]
cmp dword [rsp + 0x20], eax
jge 0x1401975bc
mov eax, dword [rsp + 0x20]
cdq
mov rcx, qword [rsp + 0x90]
idiv dword [rcx + 0x148]
mov dword [rsp + 0x24], edx
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x90]
call qword [rax + 0x4f0]
test eax, eax
je 0x1401975b7
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x374], 1
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov edx, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x90]
call qword [rax + reloc.mfc90u.dll_CObList::AddTail]
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + 0x408]
mov rcx, rax
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov r8, qword [rsp + 0x90]
mov r8, qword [r8]
mov rax, qword [rsp + 0x90]
mov edx, dword [rax + reloc.mfc90u.dll_CBrush::CBrush]
mov rcx, qword [rsp + 0x90]
call qword [r8 + AfxSetDefaultValue]
mov r11, qword [rsp + 0x90]
mov dword [r11 + 0x374], 0
jmp 0x1401975bc
jmp 0x1401974bd
mov eax, 1
jmp 0x14019783a
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + reloc.mfc90u.dll_CBrush::CBrush]
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x148]
lea eax, [rcx + rax - 1]
mov dword [rsp + 0x28], eax
jmp 0x1401975f7
mov eax, dword [rsp + 0x28]
sub eax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + reloc.mfc90u.dll_CBrush::CBrush]
cmp dword [rsp + 0x28], eax
jle 0x1401976dd
mov eax, dword [rsp + 0x28]
cdq
mov rcx, qword [rsp + 0x90]
idiv dword [rcx + 0x148]
mov dword [rsp + 0x2c], edx
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x90]
call qword [rax + 0x4f0]
test eax, eax
je 0x1401976d8
mov rax, qword [rsp + 0x90]
mov dword [rax + 0x374], 1
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov edx, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x90]
call qword [rax + reloc.mfc90u.dll_CObList::AddTail]
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x90]
call qword [rax + 0x408]
mov rcx, rax
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov r8, qword [rsp + 0x90]
mov r8, qword [r8]
mov rax, qword [rsp + 0x90]
mov edx, dword [rax + reloc.mfc90u.dll_CBrush::CBrush]
mov rcx, qword [rsp + 0x90]
call qword [r8 + AfxSetDefaultValue]
mov r11, qword [rsp + 0x90]
mov dword [r11 + 0x374], 0
jmp 0x1401976dd
jmp 0x1401975ec
mov eax, 1
jmp 0x14019783a
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x1b8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14019770e
mov qword [rsp + 0x68], 0
jmp 0x14019771c
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x140197757
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x1b8]
mov qword [rsp + 0x38], rax
mov r9, qword [rsp + 0x98]
xor r8d, r8d
mov edx, 0x407
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x14019777e
mov qword [rsp + 0x70], 0
jmp 0x14019778c
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je case.0x14019744c.515
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x1b0]
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x98]
xor r8d, r8d
mov edx, 0x407
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x98]
cmp dword [rax + 8], 0x203
jne 0x140197825
mov rax, qword [rsp + 0x90]
add rax, 0x3060
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1401977fe
mov qword [rsp + 0x78], 0
jmp 0x14019780c
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x78]
cmp qword [rcx], rax
jne 0x140197825
mov eax, 1
jmp 0x14019783a
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x90]
call fcn.1401a4e00
add rsp, 0x88
ret