Function at 0x14022b870
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x14022b870
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x210
lea rdi, [rsp + 0x40]
mov ecx, 0x74
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x220]
mov rax, qword [0x1405dc580]
xor rax, rsp
mov qword [rsp + 0x200], rax
cmp dword [rsp + 0x230], 0x201
je 0x14022b8d1
cmp dword [rsp + 0x230], 0x204
jne 0x14022b8df
mov rcx, qword [rsp + 0x220]
call qword [sym.imp.USER32.dll_SetFocus]
mov byte [rsp + 0x40], 0
mov eax, dword [rsp + 0x230]
mov dword [rsp + 0x1f0], eax
cmp dword [rsp + 0x1f0], 0x201
je 0x14022b926
cmp dword [rsp + 0x1f0], 0x202
je 0x14022ba01
cmp dword [rsp + 0x1f0], 0x204
je 0x14022ba1d
jmp 0x14022ba3e
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x40]
shr eax, 5
and eax, 1
test eax, eax
je 0x14022b9ff
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x90]
sub eax, 8
cmp dword [rsp + 0x240], eax
jl 0x14022b9ff
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x90]
add eax, 8
cmp dword [rsp + 0x240], eax
jge 0x14022b9ff
mov byte [rsp + 0x40], 1
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x40]
or eax, 2
mov rcx, qword [rsp + 0x228]
mov dword [rcx + 0x40], eax
mov rax, qword [rsp + 0x228]
mov ecx, dword [rsp + 0x240]
mov dword [rax + 0x124], ecx
mov rax, qword [rsp + 0x228]
mov rcx, qword [rsp + 0x228]
mov ecx, dword [rcx + 0x90]
mov dword [rax + 0x128], ecx
mov rcx, qword [rsp + 0x220]
call qword [sym.imp.USER32.dll_SetCapture]
xor r9d, r9d
mov r8d, 0x64
mov edx, 1
mov rcx, qword [rsp + 0x220]
call qword [sym.imp.USER32.dll_SetTimer]
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
jmp 0x14022ba3e
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x40]
shr eax, 1
and eax, 1
test eax, eax
je 0x14022ba1b
call qword [sym.imp.USER32.dll_ReleaseCapture]
jmp 0x14022ba3e
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x40]
shr eax, 1
and eax, 1
test eax, eax
je 0x14022ba3e
mov rcx, qword [rsp + 0x228]
call fcn.1400141c0
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x14022ba60
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x40]
shr eax, 1
and eax, 1
test eax, eax
je 0x14022ba60
jmp 0x14022c2d6
mov eax, dword [rsp + 0x240]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x248]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x60], 3
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x228]
call fcn.140019de0
mov eax, dword [rsp + 0x238]
and eax, 8
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x238]
and eax, 4
mov dword [rsp + 0x88], eax
mov eax, dword [rsp + 0x64]
and eax, 0x20
test eax, eax
je 0x14022bb0e
cmp dword [rsp + 0x230], 0x201
jne 0x14022bb0e
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shr eax, 2
and eax, 1
test eax, eax
jne 0x14022bae8
mov dword [rsp + 0x1f4], 1
jmp 0x14022baf3
mov dword [rsp + 0x1f4], 0
movzx r8d, byte [rsp + 0x1f4]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x228]
call fcn.140005a10
mov eax, dword [rsp + 0x64]
and eax, 0x20
test eax, eax
jne 0x14022c092
cmp dword [rsp + 0x230], 0x201
je 0x14022bb3b
cmp dword [rsp + 0x230], 0x204
jne 0x14022c092
mov rcx, qword [rsp + 0x228]
call fcn.14000af90
mov dword [rsp + 0xf8], 1
mov eax, dword [rsp + 0x64]
and eax, 0x10
test eax, eax
je 0x14022bccd
mov dword [rsp + 0xf8], 0
mov rax, qword [rsp + 0x228]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0xa0], rcx
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x4c]
and eax, 1
test eax, eax
je 0x14022bc7b
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
shr eax, 1
and eax, 1
test eax, eax
jne 0x14022bc7b
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x14022bc7b
lea rax, [rsp + 0x110]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov edx, dword [rax + 0x2c]
mov rcx, qword [rsp + 0x228]
call fcn.140008dc0
movzx eax, al
test eax, eax
je 0x14022bc7b
mov dword [rsp + 0xf8], 1
mov eax, dword [rsp + 0x110]
and eax, 4
test eax, eax
je 0x14022bc34
mov eax, dword [rsp + 0x144]
cmp dword [rsp + 0x240], eax
jl 0x14022bc34
mov eax, dword [rsp + 0x14c]
cmp dword [rsp + 0x240], eax
jge 0x14022bc34
mov dword [rsp + 0xf8], 0
mov eax, dword [rsp + 0x110]
and eax, 8
test eax, eax
je 0x14022bc7b
mov eax, dword [rsp + 0x110]
and eax, 0x10
test eax, eax
je 0x14022bc7b
mov eax, dword [rsp + 0x164]
cmp dword [rsp + 0x240], eax
jl 0x14022bc7b
mov eax, dword [rsp + 0x16c]
cmp dword [rsp + 0x240], eax
jge 0x14022bc7b
mov dword [rsp + 0xf8], 0
cmp dword [rsp + 0x230], 0x204
jne 0x14022bc95
mov dword [rsp + 0x1f8], 1
jmp 0x14022bca0
mov dword [rsp + 0x1f8], 0
mov eax, dword [rsp + 0x1f8]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x88]
mov r8d, dword [rsp + 0x84]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x228]
call fcn.140007270
cmp dword [rsp + 0xf8], 0
je 0x14022c092
mov byte [rsp + 0x194], 0
mov dword [rsp + 0x198], 0xffffffff
mov byte [rsp + 0x19c], 0
mov byte [rsp + 0x19d], 0
mov eax, dword [rsp + 0x64]
and eax, 0xf
test eax, eax
jne 0x14022bf79
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x14022bf79
cmp qword [rsp + 0x68], 0
je 0x14022bd33
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x1a0], eax
jmp 0x14022bd3e
mov dword [rsp + 0x1a0], 0xffffffff
cmp qword [rsp + 0x70], 0
je 0x14022bd57
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 4]
mov dword [rsp + 0x1a4], eax
jmp 0x14022bd62
mov dword [rsp + 0x1a4], 0xffffffff
lea rax, [rsp + 0x1b4]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8d, dword [rsp + 0x248]
mov edx, dword [rsp + 0x240]
mov rcx, qword [rsp + 0x228]
call fcn.1400140a0
mov byte [rsp + 0x19e], al
cmp dword [rsp + 0x1a0], 0xffffffff
jne 0x14022bdaa
mov qword [rsp + 0x68], 0
jmp 0x14022bdee
mov rax, qword [rsp + 0x228]
mov rax, qword [rax + 0x130]
mov eax, dword [rax]
cmp dword [rsp + 0x1a0], eax
jae 0x14022bde9
mov rax, qword [rsp + 0x228]
mov rax, qword [rax + 0x130]
mov ecx, dword [rsp + 0x1a0]
mov rax, qword [rax + 8]
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x68], rax
jmp 0x14022bdee
jmp 0x14022c2d6
cmp dword [rsp + 0x1a4], 0xffffffff
je 0x14022be1e
mov edx, dword [rsp + 0x1a4]
mov rcx, qword [rsp + 0x228]
call fcn.140016a90
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x14022be1e
jmp 0x14022c2d6
movzx eax, byte [rsp + 0x19e]
test eax, eax
je 0x14022be63
mov byte [rsp + 0x194], 1
mov eax, dword [rsp + 0x64]
and eax, 0x10
test eax, eax
je 0x14022be5e
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x4c]
and eax, 1
test eax, eax
je 0x14022be5e
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x2c]
mov dword [rsp + 0x198], eax
jmp 0x14022bf79
cmp dword [rsp + 0x230], 0x201
jne 0x14022be7d
cmp dword [rsp + 0x1b4], 0x202
je 0x14022be9f
cmp dword [rsp + 0x230], 0x204
jne 0x14022bf79
cmp dword [rsp + 0x1b4], 0x205
jne 0x14022bf79
mov eax, dword [rsp + 0x64]
and eax, 0x10
test eax, eax
je 0x14022bec4
mov rax, qword [rsp + 0x228]
mov eax, dword [rax + 0x4c]
and eax, 1
test eax, eax
je 0x14022bec4
mov byte [rsp + 0x19c], 1
lea rdx, [rsp + 0x1d8]
mov rax, qword [rsp + 0x228]
mov rcx, qword [rax]
call fcn.1400178b0
mov eax, dword [rsp + 0x240]
cmp dword [rsp + 0x1d8], eax
jne 0x14022bf64
mov eax, dword [rsp + 0x248]
cmp dword [rsp + 0x1dc], eax
jne 0x14022bf64
cmp dword [rsp + 0x230], 0x201
jne 0x14022bf16
mov dword [rsp + 0x1fc], 0xd
jmp 0x14022bf21
mov dword [rsp + 0x1fc], 0xe
mov eax, dword [rsp + 0x238]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x248]
mov r8d, dword [rsp + 0x240]
mov edx, dword [rsp + 0x1fc]
mov rcx, qword [rsp + 0x228]
call fcn.14000b740
cmp dword [rsp + 0x230], 0x204
jne 0x14022bf79
mov byte [rsp + 0x19d], 1
movzx eax, byte [rsp + 0x19c]
test eax, eax
jne 0x14022c02d
cmp dword [rsp + 0x84], 0
jne 0x14022c02d
cmp dword [rsp + 0x88], 0
jne 0x14022c02d
lea rax, [rsp + 0xe4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc4]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8d, dword [rsp + 0x198]
mov edx, dword [rsp + 0x198]
mov rcx, qword [rsp + 0x228]
call fcn.1400099e0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8d, dword [rsp + 0xe4]
mov edx, dword [rsp + 0xc4]
mov rcx, qword [rsp + 0x228]
call fcn.140012e70
movzx eax, al
test eax, eax
je 0x14022c02d
xor r8d, r8d
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x220]
call qword [sym.imp.USER32.dll_InvalidateRect]
movzx eax, byte [rsp + 0x194]
test eax, eax
je 0x14022c055
mov r8d, dword [rsp + 0x248]
mov edx, dword [rsp + 0x240]
mov rcx, qword [rsp + 0x228]
call fcn.140009340
movzx eax, byte [rsp + 0x19d]
test eax, eax
je 0x14022c08d
call qword [sym.imp.USER32.dll_GetMessagePos]
mov eax, eax
mov r9d, eax
mov rax, qword [rsp + 0x228]
mov r8, qword [rax]
mov edx, 0x7b
mov rax, qword [rsp + 0x228]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14022c2d6
mov dword [rsp + 0xf4], 0xffffffff
cmp dword [rsp + 0x230], 0x201
je 0x14022c0c8
cmp dword [rsp + 0x230], 0x204
je 0x14022c0c8
cmp dword [rsp + 0x230], 0x207
jne 0x14022c181
mov rax, qword [rsp + 0x228]
cmp dword [rax + 0xb0], 0
je 0x14022c13d
mov rax, qword [rsp + 0x228]
mov ecx, dword [rsp + 0x230]
cmp dword [rax + 0xb0], ecx
je 0x14022c13d
mov rax, qword [rsp + 0x228]
cmp dword [rax + 0xb0], 0x201
jne 0x14022c111
mov dword [rsp + 0xf4], 0xd
jmp 0x14022c13d
mov rax, qword [rsp + 0x228]
cmp dword [rax + 0xb0], 0x204
jne 0x14022c132
mov dword [rsp + 0xf4], 0xe
jmp 0x14022c13d
mov dword [rsp + 0xf4], 0xf
mov rax, qword [rsp + 0x228]
mov ecx, dword [rsp + 0x230]
mov dword [rax + 0xb0], ecx
mov rax, qword [rsp + 0x228]
mov ecx, dword [rsp + 0x240]
mov dword [rax + 0xb4], ecx
mov rax, qword [rsp + 0x228]
mov ecx, dword [rsp + 0x248]
mov dword [rax + 0xb8], ecx
jmp 0x14022c27e
cmp dword [rsp + 0x230], 0x202
je 0x14022c1ac
cmp dword [rsp + 0x230], 0x205
je 0x14022c1ac
cmp dword [rsp + 0x230], 0x208
jne 0x14022c24c
mov rax, qword [rsp + 0x228]
cmp dword [rax + 0xb0], 0
je 0x14022c238
mov rax, qword [rsp + 0x228]
mov ecx, dword [rsp + 0x240]
cmp dword [rax + 0xb4], ecx
jne 0x14022c238
mov rax, qword [rsp + 0x228]
mov ecx, dword [rsp + 0x248]
cmp dword [rax + 0xb8], ecx
jne 0x14022c238
mov rax, qword [rsp + 0x228]
cmp dword [rax + 0xb0], 0x201
jne 0x14022c20c
mov dword [rsp + 0xf4], 0xd
jmp 0x14022c238
mov rax, qword [rsp + 0x228]
cmp dword [rax + 0xb0], 0x204
jne 0x14022c22d
mov dword [rsp + 0xf4], 0xe
jmp 0x14022c238
mov dword [rsp + 0xf4], 0xf
mov rax, qword [rsp + 0x228]
mov dword [rax + 0xb0], 0
jmp 0x14022c27e
cmp dword [rsp + 0x230], 0x203
jne 0x14022c266
mov dword [rsp + 0xf4], 0x10
jmp 0x14022c27e
cmp dword [rsp + 0x230], 0x206
jne 0x14022c27e
mov dword [rsp + 0xf4], 0x11
mov eax, dword [rsp + 0x64]
and eax, 0x20
test eax, eax
jne 0x14022c2d6
cmp dword [rsp + 0xf4], 0xffffffff
je 0x14022c2d6
mov eax, dword [rsp + 0x238]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x248]
mov r8d, dword [rsp + 0x240]
mov edx, dword [rsp + 0xf4]
mov rcx, qword [rsp + 0x228]
call fcn.14000b740
mov rcx, rsp
lea rdx, [0x14050f670]
call fcn.140015750
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14000d430
add rsp, 0x210
pop rdi
ret