Function at 0x140163b40
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x88
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x8f0], 0
je 0x140163bd6
lea rdi, [rsp + 0x40]
mov rsi, qword [rsp + 0xb8]
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
lea r8, [rsp + 0x40]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xa0]
call qword [rax + 0x708]
mov rdx, qword [rsp + 0xa8]
mov eax, dword [rdx + 0xb0]
mov dword [rsp + 0x50], eax
mov r8d, 1
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xa0]
call fcn.140166450
jmp 0x140163e7c
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140163c06
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x8c0], 0
jne 0x140163c06
mov dword [rsp + 0x60], 1
jmp 0x140163c0e
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov ecx, send
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140163c46
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x8c4], 0
jne 0x140163c46
mov dword [rsp + 0x64], 1
jmp 0x140163c4e
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0xb0]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], 0xffffffff
mov rax, qword [rsp + 0xa0]
add rax, 0x840
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
cmp dword [rsp + 0x28], eax
jne 0x140163cb0
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x2c], eax
jne 0x140163cb0
mov dword [rsp + 0x68], 1
jmp 0x140163cb8
mov dword [rsp + 0x68], 0
cmp dword [rsp + 0x68], 0
jne 0x140163cc9
mov dword [rsp + 0x6c], 1
jmp 0x140163cd1
mov dword [rsp + 0x6c], 0
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x24], 0
cmp dword [rsp + 0x28], 0
jge 0x140163cf9
cmp dword [rsp + 0x2c], 0
jge 0x140163cf9
mov dword [rsp + 0x70], 1
jmp 0x140163d01
mov dword [rsp + 0x70], 0
cmp dword [rsp + 0x70], 0
jne 0x140163d91
mov rax, qword [rsp + 0xa0]
cmp dword [rax + 0x8f0], 0
je 0x140163d27
mov dword [rsp + 0x74], 0x80
jmp 0x140163d61
cmp dword [rsp + 0x20], 0
je 0x140163d38
mov dword [rsp + 0x78], reloc.mfc90u.dll_COleStreamFile::COleStreamFile
jmp 0x140163d59
cmp dword [rsp + 0x30], 0
je 0x140163d49
mov dword [rsp + 0x7c], SerializeElements<class ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > >
jmp 0x140163d51
mov dword [rsp + 0x7c], 0x80
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
or eax, 0x20
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 0
je 0x140163d91
mov rax, qword [rsp + 0xa0]
cmp dword [rax + reloc.mfc90u.dll_CThemeHelper::DrawThemeBackgroundFail], 0
je 0x140163d91
mov eax, dword [rsp + 0x24]
or eax, reloc.mfc90u.dll_CDHtmlControlSink::AddRef
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xa0]
mov dword [rax + CDocObjectServer::DoPrepareDC], 1
mov rax, qword [rsp + 0xa0]
mov rax, qword [rax]
mov r9d, 1
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xa0]
call qword [rax + reloc.mfc90u.dll_COleDocument::COleDocument]
mov rdx, qword [rsp + 0xa0]
mov dword [rdx + CDocObjectServer::DoPrepareDC], 0
xor r9d, r9d
mov r8d, 0xc8
mov edx, 1
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetTimer]
mov rax, qword [rsp + 0xa0]
mov dword [rax + 0x894], 1
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xb0]
mov qword [rcx + 0x898], rax
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x34]
mov dword [rcx + COleChangeIconDialog::DoModal], eax
mov rax, qword [rsp + 0xa0]
mov dword [rax + reloc.mfc90u.dll_COleChangeIconDialog::DoModal], 0
mov rax, qword [rsp + 0xa0]
mov dword [rax + CPrintDialog::DoModal], 1
mov rax, qword [rsp + 0xa0]
mov dword [rax + CPrintDialog::DoModal], 0
mov rcx, qword [rsp + 0xa0]
call fcn.1401812a0
add rsp, 0x88
pop rdi
pop rsi
ret