Function at 0x14022f71c
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140379a08]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, r9d
mov r13d, r8d
mov r15, rdx
mov r14, rcx
xor edx, edx
call fcn.1402323e8
xor esi, esi
mov dword [r14 + 0xf8], esi
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x20]
call qword [case.0x14006c37f.0]
lea r12d, [rsi + 2]
cmp eax, r12d
je 0x14022fb6d
lea eax, [rbx - 3]
test eax, 0xfffffffd
je 0x14022fb6d
mov rdx, r15
mov rcx, r14
call fcn.1402334f4
test eax, eax
je 0x14022f8ef
mov eax, esi
cmp ebx, 4
sete al
cmp dword [r14 + 0x1f8], esi
je 0x14022f7b4
mov eax, esi
cmp ebx, 4
setne al
test eax, eax
je 0x14022f7d8
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x30]
call qword [case.0x14006c37f.0]
mov rdx, rax
mov rcx, r14
call fcn.14023046c
jmp 0x14022fc4e
cmp dword [r14 + 0x144], esi
jne 0x14022fc4e
mov edi, 1
cmp r15, qword [r14 + 0x168]
jne 0x14022f80e
mov rcx, qword [r14 + 0x170]
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x14006c37f.0]
test eax, eax
mov r13d, edi
jne 0x14022f811
mov r13d, esi
mov rcx, qword [r14 + 0x168]
test rcx, rcx
je 0x14022f830
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [case.0x14006c37f.0]
mov qword [rbp - 0x30], rax
jmp 0x14022f834
mov qword [rbp - 0x30], rsi
or r12d, 0xffffffff
test r13d, r13d
je 0x14022f855
test ebx, ebx
jne 0x14022f8dc
lea rcx, [r14 + 0x28]
xor edx, edx
call fcn.1400088c0
jmp 0x14022f8dc
mov eax, ebx
neg eax
sbb r9d, r9d
and r9d, 8
add r9d, 2
mov eax, dword [rbp + 0x68]
neg eax
sbb ecx, ecx
and ecx, 4
or r9d, ecx
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x20], eax
mov r8d, r12d
mov rdx, r15
mov rcx, r14
call fcn.14022de28
test eax, eax
js 0x14022fc4e
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x30]
call qword [case.0x14006c37f.0]
mov rdx, rax
mov r9d, edi
xor r8d, r8d
lea rcx, [r14 + 0x28]
call fcn.14007dcf0
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14022f8cb
mov r9d, edi
xor r8d, r8d
mov rdx, rax
lea rcx, [r14 + 0x28]
call fcn.14007dcf0
mov r8d, 0xfffffffe
mov rdx, r15
mov rcx, r14
call fcn.140049164
test r13d, r13d
je 0x14022fc4e
test ebx, ebx
je 0x14022fc4e
jmp 0x14022f93b
lea eax, [rbx - 1]
mov edi, 1
cmp eax, edi
ja 0x14022f987
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x170]
call qword [case.0x14006c37f.0]
cmp eax, edi
je 0x14022f987
mov rcx, qword [r14 + 0x170]
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x14006c37f.0]
test eax, eax
je 0x14022f95f
cmp r15, qword [r14 + 0x168]
jne 0x14022f95f
or r12d, 0xffffffff
mov rcx, qword [r14 + 0x170]
mov rax, qword [rcx]
cmp ebx, edi
cmovne edi, r12d
mov edx, edi
mov rax, qword [rax + 0x90]
call qword [case.0x14006c37f.0]
jmp 0x14022fc4e
mov eax, dword [rbp + 0x60]
mov dword [rsp + 0x20], eax
mov r9d, 0xa
mov r8d, dword [r14 + 0x120]
mov rdx, qword [r14 + 0x118]
mov rcx, r14
call fcn.14022de28
jmp 0x14022fc4e
cmp dword [rbp + 0x60], esi
je 0x14022f992
mov dword [rbp - 0x28], r12d
jmp 0x14022f9a1
mov eax, dword [rbp + 0x68]
neg eax
sbb ecx, ecx
and ecx, r12d
add ecx, edi
mov dword [rbp - 0x28], ecx
mov r12, rsi
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x30]
call qword [case.0x14006c37f.0]
test rax, rax
je 0x14022f9e2
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x30]
call qword [case.0x14006c37f.0]
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x98]
mov rcx, rdx
call qword [case.0x14006c37f.0]
mov r12, rax
mov qword [rbp - 0x30], rsi
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.140033400
lea rdx, [rbp - 0x30]
mov rcx, r12
call fcn.1401ff224
mov rcx, r12
mov rbx, qword [rbp - 0x30]
test rbx, rbx
cmovne rcx, rbx
mov qword [rbp - 0x18], rcx
mov dword [rbp - 0x20], 2
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x20]
call fcn.14021ca38
mov rax, qword [r15]
mov edx, r13d
mov rcx, r15
mov rax, qword [rax + 0x178]
call qword [case.0x14006c37f.0]
mov r15, rax
test rax, rax
je 0x14022fb50
lea rcx, [r14 + 0x30]
xor r8d, r8d
mov rdx, rax
call fcn.14000f7c0
mov rdx, r12
lea rcx, str.AppSwitched
call fcn.1400052a0
lea rcx, [0x14037d198]
call fcn.14010c464
test al, al
je 0x14022fb13
mov rax, qword [r15]
mov rcx, r15
mov rax, qword [rax + 0x60]
call qword [case.0x14006c37f.0]
mov edx, 0xa920
mov rcx, rax
call qword [0x14039e6d8]
nop dword [rax + rax]
mov r12, rax
test rax, rax
je 0x14022fb13
mov rcx, qword [r15]
mov rax, qword [rcx + 0x60]
mov rcx, r15
call qword [case.0x14006c37f.0]
mov rcx, rax
call fcn.14010c678
mov rcx, qword [r15]
mov rax, qword [rcx + 0x60]
mov rcx, r15
call qword [case.0x14006c37f.0]
mov edx, 0xa921
mov rcx, rax
call qword [0x14039e6d8]
nop dword [rax + rax]
test rax, rax
je 0x14022fb13
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x20], rsi
mov rcx, qword [r14 + 0x60]
mov rax, qword [rcx]
lea r9, [rbp - 0x20]
lea r8, [rbp - 0x18]
mov rdx, r12
mov rax, qword [rax + 0x18]
call qword [case.0x14006c37f.0]
test eax, eax
cmovns r15, qword [rbp - 0x20]
mov r12, qword [r14 + 0x60]
mov rax, qword [r12]
mov r13, qword [rax + 0x30]
cmp dword [r14 + 0x144], esi
jne 0x14022fb3d
mov rdx, qword [r14 + 0xe0]
mov rcx, r15
call fcn.140047958
test eax, eax
je 0x14022fb3d
mov edi, esi
mov r8d, edi
mov rdx, r15
mov rcx, r12
mov rax, r13
call qword [case.0x14006c37f.0]
nop
test rbx, rbx
je 0x14022fc4e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
jmp 0x14022fc4e
cmp dword [r14 + 0x144], esi
jne 0x14022fc4e
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov rax, qword [r15]
lea r8, [rbp - 0x18]
xor edx, edx
mov rcx, r15
mov rax, qword [rax + 0x70]
call qword [case.0x14006c37f.0]
mov eax, dword [rbp - 0x18]
mov dword [rbp - 0x30], eax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x2c], eax
lea rdx, [rbp - 0x30]
mov rcx, qword [r14 + 8]
call qword [0x14039e718]
nop dword [rax + rax]
cmp ebx, 5
jne 0x14022fbc1
lea esi, [rbx - 2]
jmp 0x14022fc0b
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
mov ebx, 0xffff8000
test bx, ax
je 0x14022fc08
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
test bx, ax
jne 0x14022fc08
mov ecx, DAD_DragEnterEx2
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
test bx, ax
je 0x14022fc0b
mov esi, r12d
mov rdi, qword [r14 + 0x60]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x38]
mov rdx, qword [r15]
mov rcx, r15
mov rax, qword [rdx + 0x30]
call qword [case.0x14006c37f.0]
mov r9d, esi
lea r8, [rbp - 0x30]
mov rdx, rax
mov rcx, rdi
mov rax, rbx
call qword [case.0x14006c37f.0]
lea rcx, [r14 + 0x38]
mov r8d, 4
mov rdx, r15
call fcn.1400375d0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400a2260
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret