Function at 0x1400d6af0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x90], 0xfffffffffffffffe
cmp qword [rsp + 0xd8], 0
jne 0x1400d6b35
mov edx, 0x23a
lea rcx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccdlg.cpp
call fcn.140067860
test eax, eax
je 0x1400d6b35
int3
mov rcx, qword [rsp + 0xd8]
call fcn.140020570
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 8]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], 0
call qword [sym.imp.USER32.dll_GetFocus]
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.1400353f0
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x48], 0x100
jb 0x1400d6b96
cmp dword [rsp + 0x48], 0x109
jbe 0x1400d6bb2
cmp dword [rsp + 0x48], 0x200
jb 0x1400d6d4a
cmp dword [rsp + 0x48], 0x209
ja 0x1400d6d4a
cmp qword [rsp + 0x40], 0
je 0x1400d6d4a
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x1400d6c16
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0xa0], 0
jne 0x1400d6c16
mov rcx, qword [rsp + 0x80]
call fcn.1400221b0
cmp rax, qword [rsp + 0xd8]
je 0x1400d6c16
mov rcx, qword [rsp + 0x80]
call fcn.1400221b0
mov qword [rsp + 0x80], rax
jmp 0x1400d6bcb
cmp qword [rsp + 0x80], 0
je 0x1400d6c94
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0xa0], 0
je 0x1400d6c94
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0xa0]
cmp qword [rax + 0x90], 0
je 0x1400d6c94
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0xa0]
mov rcx, qword [rcx + 0x90]
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0xa0]
mov rax, qword [rax + 0x90]
mov rax, qword [rax]
mov rdx, qword [rsp + 0xe0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
test eax, eax
jne 0x1400d6c94
mov eax, 1
jmp 0x1400d736b
cmp dword [rsp + 0x48], 0x101
je 0x1400d6cb6
cmp dword [rsp + 0x48], 0x100
je 0x1400d6cb6
cmp dword [rsp + 0x48], 0x102
jne 0x1400d6d4a
cmp qword [rsp + 0x80], 0
je 0x1400d6d4a
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0xa0], 0
je 0x1400d6d4a
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x10]
and rax, 0xffff
movzx eax, ax
cmp eax, 0xd
jne 0x1400d6d0d
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0xa0]
mov eax, dword [rax + 0xcc]
and eax, 1
test eax, eax
jne 0x1400d6d43
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x10]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x1b
jne 0x1400d6d4a
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0xa0]
mov eax, dword [rax + 0xcc]
and eax, 2
test eax, eax
je 0x1400d6d4a
xor eax, eax
jmp 0x1400d736b
mov dword [rsp + 0x58], 0
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
call fcn.1400353f0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x4c], 2
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0x100
je 0x1400d6eca
cmp dword [rsp + 0x98], 0x102
je 0x1400d6df7
cmp dword [rsp + 0x98], 0x106
je 0x1400d6dbb
jmp case.0x1400d6f3c.4
cmp qword [rsp + 0x40], 0
jne 0x1400d6dd8
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetUBound
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jl 0x1400d6dd8
jmp case.0x1400d6f3c.4
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x10]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x20
jne 0x1400d6df7
jmp case.0x1400d6f3c.4
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x60]
call fcn.1400d57d0
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x48], 0x102
jne 0x1400d6e29
mov eax, dword [rsp + 0x38]
and eax, 0x84
test eax, eax
je 0x1400d6e29
jmp case.0x1400d6f3c.4
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x10]
and rax, 0xffff
movzx eax, ax
cmp eax, 9
jne 0x1400d6e53
mov eax, dword [rsp + 0x38]
and eax, 2
test eax, eax
je 0x1400d6e53
jmp case.0x1400d6f3c.4
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x10]
and rax, 0xffff
movzx eax, ax
cmp eax, 0x20
jne 0x1400d6e74
xor eax, eax
jmp 0x1400d736b
mov r8, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xd8]
call fcn.1400d6210
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400d6ec5
mov rax, qword [rsp + 0x68]
cmp qword [rax + 8], 0
je 0x1400d6ec5
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 8]
call fcn.1400c4aa0
mov dword [rsp + 0x58], 1
jmp case.0x1400d6f3c.4
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x60]
call fcn.1400d57d0
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x10]
and rax, 0xffff
movzx eax, ax
mov dword [rsp + 0x9c], eax
mov eax, dword [rsp + 0x9c]
sub eax, 3
mov dword [rsp + 0x9c], eax
cmp dword [rsp + 0x9c], 0x28
ja case.0x1400d6f3c.4
movsxd rax, dword [rsp + 0x9c]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0xd738c]
mov eax, dword [rcx + rax*4 + 0xd7374]
add rax, rcx
jmp rax
mov eax, dword [rsp + 0x38]
and eax, 2
test eax, eax
je 0x1400d6f4e
jmp case.0x1400d6f3c.4
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x1400d6f6b
mov dword [rsp + 0xa0], 1
jmp 0x1400d6f76
mov dword [rsp + 0xa0], 0
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x70], eax
mov r8d, dword [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call fcn.14002a9e0
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400d706b
mov rax, qword [rsp + 0x68]
cmp qword [rax + 8], 0
je 0x1400d6fda
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 8]
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 8]
mov rax, qword [rax]
mov rdx, qword [rsp + 0xe0]
call qword [rax + 0x168]
jmp 0x1400d7063
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x1400d6ffc
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
call fcn.1400353f0
mov qword [rsp + 0xa8], rax
jmp 0x1400d701b
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xd8]
call fcn.140021de0
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400d7063
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x98]
mov qword [rax + 0xd8], 0
mov rcx, qword [rsp + 0x30]
call fcn.1400d5840
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.1400d6570
mov dword [rsp + 0x58], 1
jmp case.0x1400d6f3c.4
mov dword [rsp + 0x70], 1
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x40]
call fcn.1400d57d0
and eax, 1
test eax, eax
je 0x1400d7096
jmp case.0x1400d6f3c.4
cmp dword [rsp + 0x70], 0
je 0x1400d70b3
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call fcn.14002ae70
mov qword [rsp + 0x68], rax
jmp 0x1400d70c7
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call fcn.14002b350
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x1400d71d1
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x10], 0
je 0x1400d70f0
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xd8]
call fcn.14002b5a0
mov rax, qword [rsp + 0x68]
cmp qword [rax + 8], 0
je 0x1400d712c
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx + 8]
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 8]
mov rax, qword [rax]
mov rdx, qword [rsp + 0xe0]
call qword [rax + 0x168]
mov dword [rsp + 0x58], 1
jmp 0x1400d71d1
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x1400d714e
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
call fcn.1400353f0
mov qword [rsp + 0xb0], rax
jmp 0x1400d716d
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xd8]
call fcn.140021d70
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400d71d1
mov rax, qword [rsp + 0xd8]
mov rax, qword [rax + 0x98]
mov qword [rax + 0xd8], 0
mov rcx, qword [rsp + 0x30]
call fcn.1400d5840
mov rax, qword [rsp + 0x68]
cmp dword [rax + 0x10], 0
je 0x1400d71c9
xor r9d, r9d
mov r8d, 1
mov edx, 0xf1
mov rcx, qword [rsp + 0x30]
call fcn.140020640
mov dword [rsp + 0x58], 1
jmp case.0x1400d6f3c.4
mov eax, dword [rsp + 0x38]
and eax, 4
test eax, eax
je 0x1400d71e6
jmp case.0x1400d6f3c.4
mov rcx, qword [rsp + 0x40]
call fcn.1400d6800
and eax, 0x10
test eax, eax
je 0x1400d7211
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140029f30
mov dword [rsp + 0x4c], eax
jmp case.0x1400d6f3c.3
mov rcx, qword [rsp + 0xd8]
call fcn.1400d6900
mov dword [rsp + 0x4c], eax
cmp qword [rsp + 0x30], 0
jne 0x1400d724a
mov edx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0xd8]
call fcn.1400d66a0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400d724a
jmp case.0x1400d6f3c.4
cmp qword [rsp + 0x30], 0
jne 0x1400d726a
mov edx, 0x30b
lea rcx, str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccdlg.cpp
call fcn.140067860
test eax, eax
je 0x1400d726a
int3
mov rcx, qword [rsp + 0x30]
call fcn.14002a2d0
test eax, eax
jne 0x1400d7282
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
jmp case.0x1400d6f3c.4
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0xa0], 0
je case.0x1400d6f3c.4
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 1
mov edx, 0xfffffdd9
mov rcx, qword [rsp + 0x30]
call fcn.14002a4a0
nop
mov dword [rsp + 0x58], 1
cmp dword [rsp + 0x58], 0
jne 0x1400d731d
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 0x78]
and eax, 0x1000
test eax, eax
jne 0x1400d731d
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd8]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1400d731d
call fcn.140021a90
cmp rax, qword [rsp + 0x40]
je 0x1400d731d
call fcn.140021a90
mov rcx, rax
call fcn.1400d6490
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400d7367
call fcn.140021a90
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.1400d6570
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400d7367
call fcn.140021a90
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0xd8]
call fcn.1400d6970
mov eax, dword [rsp + 0x58]
add rsp, 0xc8
ret