Function at 0x140003040
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xf8]
sub rsp, 0x1e0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14028d8b0]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rdi, rcx
call fcn.140023a2c
mov dword [rsp + 0x30], 3
xor eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140296920]
mov rcx, rdi
call fcn.140033580
mov r9, qword [rdi + 0x170]
mov edx, 0x80
lea r8d, [rdx - 0x7f]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, qword [rdi + 0x170]
xor r8d, r8d
mov edx, 0x80
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
call fcn.1400255f4
mov rcx, rax
test rax, rax
je 0x14000367e
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov edx, 0x67
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x140003135
mov edx, 0x3ea
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov edx, 0x66
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x140003162
mov edx, 0x3e9
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov edx, VarBstrFromDisp
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x14000318f
mov edx, 0x3f6
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov edx, VarBstrFromDisp
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x1400031bc
mov edx, 0x3f7
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov edx, 0x68
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x1400031e9
mov edx, 0x3eb
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov edx, 0x69
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x140003216
mov edx, 0x3ec
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov edx, 0x6a
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x140003243
mov edx, 0x3ed
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov edx, 0x6b
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x140003270
mov edx, 0x3ee
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov edx, VarBstrFromDisp
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x14000329d
mov edx, 0x3f8
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov edx, 0x6c
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x1400032ca
mov edx, 0x3f5
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
call fcn.140003ce0
mov ebx, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
mov esi, 0xffffffff
test ebx, ebx
je 0x1400033bb
lea rdx, [rsp + 0x40]
call fcn.140003a00
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rdi + 0x178]
sub rbx, 0x18
cmp rcx, rbx
je 0x14000335b
cmp dword [rbx + 0x10], 0
jl 0x14000334a
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14000334a
call fcn.1400042b0
mov r15, rax
mov ecx, esi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14000333d
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r15 + 0x18]
mov qword [rdi + 0x178], rax
jmp 0x14000335b
mov r8d, dword [rdx - 0x10]
lea rcx, [rdi + 0x178]
call fcn.140004190
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140003379
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi + 0x178]
movzx eax, word [rax]
cmp ax, word [0x14024c860]
je 0x1400033bb
mov edx, VarBstrFromDisp
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x1400033d2
mov edx, 0x3fd
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
jmp 0x1400033d2
mov edx, 0x3fd
mov rcx, rdi
call fcn.140033120
xor edx, edx
mov rcx, rax
call fcn.140033650
mov edx, 0x6d
lea rcx, [rsp + 0x50]
call fcn.1400045b0
test eax, eax
je 0x1400033f2
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1400335e4
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0x60]
call fcn.1401a9b30
lea rcx, [rsp + 0x60]
call fcn.140005530
nop
lea rcx, [rsp + 0x60]
call fcn.140005bc0
mov r8, qword [rsp + 0x68]
lea rdx, [0x14024c878]
lea rcx, [rsp + 0x50]
call fcn.140002c60
mov edx, 0x3ef
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov r8, qword [rsp + 0x70]
lea rdx, [0x14024c878]
lea rcx, [rsp + 0x50]
call fcn.140002c60
mov edx, 0x3f9
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov r8, qword [rbp - 0x60]
lea rdx, [0x14024c878]
lea rcx, [rsp + 0x50]
call fcn.140002c60
mov edx, 0x3fa
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov r8, qword [rbp - 0x70]
lea rdx, [0x14024c878]
lea rcx, [rsp + 0x50]
call fcn.140002c60
mov edx, 0x3f1
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov r8, qword [rsp + 0x78]
lea rdx, [0x14024c878]
lea rcx, [rsp + 0x50]
call fcn.140002c60
mov edx, 0x3f2
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov r8, qword [rbp - 0x80]
lea rdx, [0x14024c878]
lea rcx, [rsp + 0x50]
call fcn.140002c60
mov edx, 0x3f3
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov r8, qword [rbp - 0x68]
lea rdx, [0x14024c878]
lea rcx, [rsp + 0x50]
call fcn.140002c60
mov edx, 0x3f4
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov r8, qword [rbp - 0x78]
lea rdx, [0x14024c878]
lea rcx, [rsp + 0x50]
call fcn.140002c60
mov edx, 0x3f0
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rdx, qword [rsp + 0x50]
call fcn.1400335e4
mov r8, qword [rbp - 0x58]
lea rdx, [0x14024c878]
lea rcx, [rsp + 0x50]
call fcn.140002c60
mov edx, 0x3fb
mov rcx, rdi
call fcn.140033120
mov rcx, rax
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
call fcn.1400335e4
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x30]
call fcn.1401a9b30
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x140003604
test byte [rbp - 0x1e], 0x80
jne 0x140003604
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov cl, 0x12
call qword [sym.imp.USER32.dll_keybd_event]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x14000362a
test byte [rbp - 0x1e], 0x80
jne 0x14000362a
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 3]
mov cl, 0x12
call qword [sym.imp.USER32.dll_keybd_event]
nop
lea rcx, [rsp + 0x60]
call fcn.140005820
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14000364d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.14019ee20
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002b50
int3