Function at 0x1401ff410
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xe0
mov ecx, setsockopt
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x1401ff43c
mov eax, 1
jmp 0x1401ffb5e
mov dword [rsp + 0x50], 1
call fcn.1402131e0
mov rdx, qword [rsp + 0xf8]
mov rcx, rax
call sub.mfc90u.dll_AfxCheckError
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x308], 0
je 0x1401ff4d2
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax + 0x308]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 0xc], 0
je 0x1401ff4b0
mov rax, qword [rsp + 0xb8]
cmp dword [rax + 8], 0
je 0x1401ff4b0
mov dword [rsp + 0xc8], 1
jmp 0x1401ff4bb
mov dword [rsp + 0xc8], 0
cmp dword [rsp + 0xc8], 0
je 0x1401ff4d2
mov dword [rsp + 0xcc], 1
jmp 0x1401ff4dd
mov dword [rsp + 0xcc], 0
mov eax, dword [rsp + 0xcc]
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x48], 0
je 0x1401ff586
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x48]
call qword [rax + 0x2a0]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x64], eax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x68]
lea rcx, [0x1404e65a8]
call fcn.1400f87c0
mov dword [rsp + 0x30], reloc.WS2_32.dll_setsockopt
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x6c]
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sub.mfc90u.dll_CStatusCmdUI::SetCheck
cmp qword [rsp + 0x48], 0
je 0x1401ffb5a
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x48]
call qword [rax + CToolBarCtrl::~CToolBarCtrl]
mov rbx, rax
call fcn.140142bb0
mov rdx, rbx
mov rcx, rax
call sub.mfc90u.dll_AfxCheckError
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x1401ff625
cmp dword [rsp + 0x40], 0
jne 0x1401ff7b3
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
call qword [rax + 0x358]
and eax, 0x40
test eax, eax
je 0x1401ff7b3
call fcn.140271b40
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call sub.mfc90u.dll_CWnd::GetTopLevelFrame
test eax, eax
je 0x1401ff7b3
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
mov r9d, 1
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x38]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x1401ff7b3
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x1e0]
call sub.mfc90u.dll_CWnd::ExecuteDlgInit
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x1e0]
call sub.mfc90u.dll_CWnd::ExecuteDlgInit
cmp qword [rsp + 0xc0], rax
jne 0x1401ff7b3
call fcn.14028dbf0
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call sub.mfc90u.dll_AfxCheckError
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x1401ff709
mov rax, qword [rsp + 0xf0]
cmp qword [rax + 0x1f8], 0
jne 0x1401ff709
call qword [sym.imp.MSVCR90.dll_clock]
mov r11d, eax
mov rax, qword [rsp + 0xf0]
mov dword [rax + reloc.mfc90u.dll_COleStreamFile::COleStreamFile], r11d
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x98]
mov qword [rcx + 0x1f8], rax
cmp qword [rsp + 0x98], 0
je 0x1401ff7a9
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0x98]
cmp qword [rcx + 0x1f8], rax
jne 0x1401ff7a9
call qword [sym.imp.MSVCR90.dll_clock]
mov rcx, qword [rsp + 0xf0]
sub eax, dword [rcx + reloc.mfc90u.dll_COleStreamFile::COleStreamFile]
cmp eax, dword [0x1404dfb04]
jle 0x1401ff7a9
mov rax, qword [rsp + 0x98]
mov rax, qword [rax]
mov r8d, 1
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x98]
call qword [rax + 0x450]
mov dword [rsp + 0x50], eax
call qword [sym.imp.MSVCR90.dll_clock]
mov r11d, eax
mov rax, qword [rsp + 0xf0]
mov dword [rax + reloc.mfc90u.dll_COleStreamFile::COleStreamFile], r11d
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x1f8], 0
mov eax, dword [rsp + 0x50]
jmp 0x1401ffb5e
mov eax, 1
jmp 0x1401ffb5e
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x1f8], 0
cmp qword [rsp + 0x88], 0
je 0x1401ffb5a
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
call qword [rax + CStatusBar::~CStatusBar]
and eax, 0xf000
test eax, eax
jne 0x1401ff801
mov eax, 1
jmp 0x1401ffb5e
mov qword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
lea r8, [rsp + 0xa0]
mov edx, dword [0x1404dfb10]
mov rcx, qword [rsp + 0x88]
call qword [rax + ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::AppendFormat]
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0xa0]
cmp qword [rsp + 0x88], rax
jne 0x1401ff858
mov dword [rsp + 0xa8], 0
cmp qword [rsp + 0xa0], 0
jne 0x1401ff871
cmp dword [rsp + 0xa8], 2
jne 0x1401ff9f8
cmp dword [rsp + 0x40], 0
jne 0x1401ff9f8
cmp qword [rsp + 0xa0], 0
je 0x1401ff8a5
call fcn.14026e6a0
mov rdx, rax
mov rcx, qword [rsp + 0xa0]
call sub.mfc90u.dll_CWnd::GetTopLevelFrame
mov dword [rsp + 0xd0], eax
jmp 0x1401ff8b0
mov dword [rsp + 0xd0], 0
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0xb0], eax
cmp qword [rsp + 0xa0], 0
je 0x1401ff8e7
call fcn.140271b40
mov rdx, rax
mov rcx, qword [rsp + 0xa0]
call sub.mfc90u.dll_CWnd::GetTopLevelFrame
mov dword [rsp + 0xd4], eax
jmp 0x1401ff8f2
mov dword [rsp + 0xd4], 1
mov eax, dword [rsp + 0xd4]
mov dword [rsp + 0xac], eax
cmp dword [rsp + 0xb0], 0
jne 0x1401ff918
cmp dword [rsp + 0xac], 0
je 0x1401ff9f8
cmp dword [rsp + 0xb0], 0
je 0x1401ff931
mov eax, dword [0x1404dfb00]
mov dword [rsp + 0xd8], eax
jmp 0x1401ff93e
mov eax, dword [0x1404dfb04]
mov dword [rsp + 0xd8], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0xb4], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0xa0]
cmp qword [rcx + 0x1f0], rax
jne 0x1401ff97c
mov rax, qword [rsp + 0xf0]
mov eax, dword [rax + 0x204]
cmp dword [rsp + 0xa8], eax
je 0x1401ff9d1
call qword [sym.imp.MSVCR90.dll_clock]
mov r11d, eax
mov rax, qword [rsp + 0xf0]
mov dword [rax + reloc.mfc90u.dll_COleStreamFile::COleStreamFile], r11d
mov rcx, qword [rsp + 0xf0]
mov rax, qword [rsp + 0xa0]
mov qword [rcx + 0x1f0], rax
mov rcx, qword [rsp + 0xf0]
mov eax, dword [rsp + 0xa8]
mov dword [rcx + 0x204], eax
mov edx, dword [rsp + 0xb4]
mov rcx, qword [rsp + 0x48]
call fcn.14021b240
call qword [sym.imp.MSVCR90.dll_clock]
mov rcx, qword [rsp + 0xf0]
sub eax, dword [rcx + reloc.mfc90u.dll_COleStreamFile::COleStreamFile]
cmp eax, dword [rsp + 0xb4]
jge 0x1401ff9f8
mov eax, 1
jmp 0x1401ffb5e
mov rax, qword [rsp + 0xf0]
mov qword [rax + 0x1f0], 0
call qword [sym.imp.MSVCR90.dll_clock]
mov r11d, eax
mov rax, qword [rsp + 0xf0]
mov dword [rax + reloc.mfc90u.dll_COleStreamFile::COleStreamFile], r11d
mov rax, qword [rsp + 0xf0]
mov dword [rax + 0x204], 0
mov rcx, qword [rsp + 0x48]
call fcn.14021b2a0
cmp dword [rsp + 0xa8], 1
jne 0x1401ffa9e
cmp qword [rsp + 0xa0], 0
je 0x1401ffa9e
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rax + 0x2e0]
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x88]
call qword [rax + 0x508]
test eax, eax
je 0x1401ffa9e
xor eax, eax
jmp 0x1401ffb5e
cmp dword [rsp + 0xa8], 2
jne 0x1401ffadb
cmp dword [rsp + 0x40], 0
jne 0x1401ffadb
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov r9d, 1
mov r8, qword [rsp + 0xa0]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [rax + 0x2e0]
mov dword [rsp + 0x50], eax
jmp 0x1401ffb5a
cmp dword [rsp + 0xa8], 3
jne 0x1401ffb33
cmp dword [rsp + 0x40], 0
jne 0x1401ffb33
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov r9d, 1
mov r8, qword [rsp + 0xa0]
mov edx, 2
mov rcx, qword [rsp + 0x48]
call qword [rax + 0x2e0]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xf0]
mov rax, qword [rax]
xor edx, edx
mov rcx, qword [rsp + 0xf0]
call qword [rax + 0x80]
jmp 0x1401ffb5a
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov r9d, 1
mov r8, qword [rsp + 0xa0]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [rax + 0x2e0]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
add rsp, 0xe0
pop rbx
ret