Function at 0x140299030
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov rax, qword [rsp + 0x138]
cmp dword [rax + 8], reloc.mfc90u.dll_COleVariant::COleVariant
jne 0x140299129
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140299129
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x157
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x140299129
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x138]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x138]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x138]
mov eax, dword [rax + 8]
mov dword [rsp + 0x38], eax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, 1
jmp 0x140299747
mov rax, qword [rsp + 0x138]
cmp dword [rax + 8], 0x100
jne 0x140299732
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x140299402
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x140299402
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140299402
mov rax, qword [rsp + 0x138]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x108], rax
cmp qword [rsp + 0x108], 0xd
je 0x14029921f
cmp qword [rsp + 0x108], 0x20
jbe 0x140299402
cmp qword [rsp + 0x108], 0x24
jbe 0x1402991e1
cmp qword [rsp + 0x108], 0x26
je 0x1402991e1
cmp qword [rsp + 0x108], 0x28
je 0x1402991e1
jmp 0x140299402
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x58], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x157
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x14029921f
jmp 0x140299402
mov rcx, qword [rsp + 0x130]
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x60], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x157
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1402992d9
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x138]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x138]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x138]
mov eax, dword [rax + 8]
mov dword [rsp + 0x70], eax
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1402993f8
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x88]
call fcn.140006ca4
test rax, rax
je 0x1402993f8
mov rdx, qword [rsp + 0x130]
mov rdx, qword [rdx + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
add rdx, 0x128
mov rcx, qword [rsp + 0x130]
call sub.mfc90u.dll_CMultiDocTemplate::GetThisClass
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
jne 0x140299367
mov qword [rsp + 0xb0], 0
jmp 0x14029937b
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov eax, dword [rax + 0xc]
and rax, 0xffff
movzx eax, ax
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x98]
call fcn.140006ca4
mov qword [rsp + 0xa0], rax
mov r9, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
mov edx, ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
jmp 0x140299747
mov rax, qword [rsp + 0x138]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x110], rax
cmp qword [rsp + 0x110], 9
je 0x140299453
cmp qword [rsp + 0x110], 0x1b
je 0x140299501
cmp qword [rsp + 0x110], 0x26
je 0x14029959b
cmp qword [rsp + 0x110], 0x28
je 0x14029959b
jmp 0x140299732
mov rcx, qword [rsp + 0x130]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
test rax, rax
je 0x1402994fc
mov rcx, qword [rsp + 0x130]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0x130], 0
jne 0x1402994b1
mov qword [rsp + 0x118], 0
jmp 0x1402994c5
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x118], rax
xor r8d, r8d
mov rdx, qword [rsp + 0x118]
mov rcx, qword [rsp + 0xb8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
mov rcx, rax
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov eax, 1
jmp 0x140299747
jmp 0x140299732
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x140299565
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0xc8], rax
xor r8d, r8d
xor r9d, r9d
mov edx, CCmdUI::CCmdUI
mov rcx, qword [rsp + 0xc8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsp + 0x130]
call sub.mfc90u.dll_CDialog::GetThisClass
test rax, rax
je 0x140299596
mov rcx, qword [rsp + 0x130]
call sub.mfc90u.dll_CDialog::GetThisClass
mov rcx, rax
call sub.mfc90u.dll_CDHtmlDialog::ResizeBorder
mov eax, 1
jmp 0x140299747
jmp 0x140299732
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x140299732
mov ecx, send
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x140299732
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0xd0], rax
cmp qword [rsp + 0xd0], 0
je 0x140299732
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0xd8], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x157
mov rcx, qword [rsp + 0xd8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x14029972b
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0xe0], rax
mov r8d, 1
xor r9d, r9d
mov edx, CCmdUI::CCmdUI
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
test rax, rax
je 0x14029972b
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
add rax, 0x130
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + reloc.mfc90u.dll_COleTemplateServer::ConnectTemplate]
mov rax, qword [rax + 0x98]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call sub.mfc90u.dll_CDaoDatabase::Execute
mov qword [rsp + 0x100], rax
mov r8d, 1
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x100]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
jmp 0x140299747
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x130]
call fcn.1402ccc00
add rsp, 0x128
ret