Function at 0x14008af80
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x140155040]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov dword [rsp + 0x48], r9d
mov r15d, r9d
mov qword [rsp + 0x68], rcx
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
cmp r8d, 0x201
je 0x14008afd2
cmp r8d, 0x204
jne 0x14008afd8
call qword [sym.imp.USER32.dll_SetFocus]
xor r12b, r12b
mov qword [rsp + 0x168], r14
mov eax, esi
mov r13d, 1
sub eax, 0x201
je 0x14008b0c5
sub eax, r13d
je 0x14008b0ad
nop
cmp eax, 2
jne 0x14008b012
test byte [rdi + 0x40], al
je 0x14008b012
mov rcx, rdi
call fcn.14008d040
mov r14d, dword [rbp + 0xd0]
test byte ds:[rdi + 0x40], 2
jne 0x14008b687
mov eax, dword [rbp + 0xd8]
lea rdx, [rbp + 0x20]
mov rcx, rdi
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x20], r14d
mov dword [rbp + 0x28], 3
call fcn.14008ee20
mov eax, r15d
xor ecx, ecx
and eax, 8
mov ebx, 0xffffffff
mov dword [rsp + 0x50], eax
mov eax, r15d
mov r15d, dword [rbp + 0x2c]
and eax, 4
mov r13d, r15d
mov dword [rsp + 0x54], eax
and r13d, 0x20
je 0x14008b13b
cmp esi, 0x201
jne 0x14008b150
mov rbx, qword [rbp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8d, dword [rbx]
shr r8d, 2
not r8b
and r8b, 1
call fcn.14008e940
mov r9, qword [rbp + 0x38]
mov r8d, 0xffffffff
mov edx, r8d
jmp 0x14008b2ac
test byte [rdi + 0x40], 2
je 0x14008b012
call qword [sym.imp.USER32.dll_ReleaseCapture]
nop dword [rax]
jmp 0x14008b012
mov ecx, dword [rdi + 0x40]
mov r14d, dword [rbp + 0xd0]
test cl, 0x20
je 0x14008b019
mov edx, dword [rdi + 0x88]
lea eax, [rdx - 8]
cmp r14d, eax
jl 0x14008b019
lea eax, [rdx + 8]
cmp r14d, eax
jge 0x14008b019
or ecx, 2
mov dword [rdi + 0x124], r14d
mov dword [rdi + 0x40], ecx
movzx r12d, r13b
mov rcx, rbx
mov dword [rdi + 0x128], edx
call qword [sym.imp.USER32.dll_SetCapture]
xor r9d, r9d
mov r8d, 0x64
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetTimer]
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
jmp 0x14008b026
nop dword [rax + rax]
cmp esi, 0x201
je 0x14008b159
cmp esi, 0x204
je 0x14008b159
mov rbx, qword [rbp + 0x30]
jmp 0x14008b288
mov rcx, qword ds:[rdi + 0x38]
test rcx, rcx
je 0x14008b187
xor r9d, r9d
xor r8d, r8d
mov edx, 0x41c
call qword [sym.imp.USER32.dll_SendMessageW]
mov qword [rdi + 0x160], 0xffffffffffffffff
mov dword [rdi + 0x190], ebx
mov rax, qword ds:[rbp + 0x38]
mov ecx, r15d
mov rbx, qword [rbp + 0x30]
and ecx, 0x10
mov dword [rsp + 0x5c], ecx
mov qword [rsp + 0x60], rax
je 0x14008b3db
xor r14d, r14d
mov qword [rdi + 0x98], rbx
test byte [rdi + 0x4c], 1
je 0x14008b250
test byte ds:[rbx], 2
jne 0x14008b250
test r12b, r12b
jne 0x14008b250
mov edx, dword [rbx + 0x2c]
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x20], rcx
mov r8, rax
mov rcx, rdi
call fcn.14008ea80
test al, al
je 0x14008b250
mov eax, dword [rbp - 0x60]
mov r14d, 1
mov ecx, dword [rbp + 0xd0]
test al, 4
je 0x14008b213
nop dword [rax]
cmp ecx, dword [rbp - 0x2c]
jl 0x14008b213
cmp ecx, dword [rbp - 0x24]
mov edx, 0
cmovl r14d, edx
jmp 0x14008b215
xor edx, edx
and eax, 0x18
cmp al, 0x18
jne 0x14008b252
nop dword [rax]
cmp ecx, dword [rbp - 0xc]
jl 0x14008b252
cmp ecx, dword [rbp - 4]
jge 0x14008b252
mov r9d, dword [rsp + 0x54]
xor eax, eax
mov r8d, dword [rsp + 0x50]
cmp esi, 0x204
mov rdx, rbx
mov rcx, rdi
sete al
mov dword [rsp + 0x20], eax
call fcn.14008f3a0
jmp 0x14008b27f
xor edx, edx
mov r9d, dword [rsp + 0x54]
mov eax, edx
mov r8d, dword [rsp + 0x50]
cmp esi, 0x204
mov rdx, rbx
mov rcx, rdi
sete al
mov dword [rsp + 0x20], eax
call fcn.14008f3a0
test r14d, r14d
jne 0x14008b3d0
mov r14d, dword [rbp + 0xd0]
xor ecx, ecx
mov r9, qword [rbp + 0x38]
lea eax, [rsi - 0x201]
mov r8d, 0xffffffff
mov r10d, 0x49
mov edx, r8d
cmp eax, 6
ja 0x14008b2f9
bt r10d, eax
jae 0x14008b2f9
mov eax, dword [rdi + 0xa8]
test eax, eax
je 0x14008b2db
cmp eax, esi
je 0x14008b2db
nop word [rax + rax]
cmp eax, 0x201
jne 0x14008b2ce
mov edx, 0xd
jmp 0x14008b2db
xor edx, edx
cmp eax, 0x204
setne dl
add edx, 0xe
mov eax, dword [rbp + 0xd8]
mov dword [rdi + 0xb0], eax
mov dword [rdi + 0xa8], esi
mov dword [rdi + 0xac], r14d
jmp 0x14008b379
lea eax, ds:[rsi - 0x202]
cmp eax, 6
ja 0x14008b357
bt r10d, eax
jae 0x14008b357
mov eax, dword [rdi + 0xa8]
test eax, eax
je 0x14008b34f
cmp dword [rdi + 0xac], r14d
jne 0x14008b34f
mov r10d, dword [rbp + 0xd8]
cmp dword [rdi + 0xb0], r10d
jne 0x14008b34f
cmp eax, 0x201
jne 0x14008b342
mov edx, 0xd
mov dword [rdi + 0xa8], ecx
jmp 0x14008b373
cmp eax, 0x204
mov edx, ecx
setne dl
add edx, 0xe
mov dword [rdi + 0xa8], ecx
jmp 0x14008b373
cmp esi, 0x203
jne 0x14008b366
mov edx, 0x10
jmp 0x14008b373
cmp esi, 0x206
jne 0x14008b373
mov edx, 0x11
mov eax, dword [rbp + 0xd8]
nop dword [rax]
test r13d, r13d
jne 0x14008b687
cmp edx, r8d
je 0x14008b687
mov rcx, qword [rdi + 0xc8]
lea r8, [rbp + 0x20]
mov dword [rbp + 0x24], eax
mov eax, dword [rsp + 0x48]
mov dword [rbp + 0x38], eax
mov rax, qword [rdi + 0xc0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi]
mov qword [rbp + 0x30], r9
xor r9d, r9d
mov dword [rbp + 0x20], r14d
mov qword [rbp + 0x28], rbx
call qword [case.0x140071b98.0]
jmp 0x14008b687
mov r14d, dword [rbp + 0xd0]
mov rax, qword [rbp + 0x38]
xor r13b, r13b
mov byte [rsp + 0x40], r13b
test r15b, 0xf
jne 0x14008b78b
test r12b, r12b
jne 0x14008b78b
mov r12d, 0xffffffff
test rbx, rbx
je 0x14008b40b
mov r13d, dword [rbx + 0x2c]
jmp 0x14008b40e
mov r13d, r12d
test rax, rax
je 0x14008b41c
mov eax, dword [rax + 4]
mov dword [rsp + 0x58], eax
jmp 0x14008b421
mov dword [rsp + 0x58], r12d
mov edx, dword [rdi + 0x228]
mov eax, r14d
mov ecx, dword [rdi + 0x22c]
sub eax, edx
mov r8d, dword [rbp + 0xd8]
mov r9d, 2
mov dword [rbp + 0x20], eax
mov eax, r8d
sub eax, ecx
mov dword [rbp + 0x24], eax
lea eax, [rdx + r14]
mov dword [rbp + 0x28], eax
xor edx, edx
lea eax, [rcx + r8]
mov rcx, qword [rdi]
lea r8, [rbp + 0x20]
mov dword [rbp + 0x2c], eax
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_SetCapture]
xor r15d, r15d
mov ebx, r15d
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor r8d, r8d
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14008b50d
mov eax, dword [rsp + 0x78]
sub eax, 0x200
je 0x14008b4e2
sub eax, 1
je 0x14008b4d6
sub eax, 1
je 0x14008b4d6
sub eax, 2
je 0x14008b4d6
cmp eax, 1
je 0x14008b4d6
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14008b513
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov ebx, dword [rsp + 0x78]
jmp 0x14008b513
mov eax, dword [rbp - 0x6c]
cmp eax, dword [rbp + 0x20]
jl 0x14008b4fc
cmp eax, dword [rbp + 0x28]
jge 0x14008b4fc
mov eax, dword [rbp - 0x68]
cmp eax, dword [rbp + 0x24]
jl 0x14008b4fc
cmp eax, dword [rbp + 0x2c]
jl 0x14008b513
mov rcx, qword ds:[rdi]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
setne dl
jmp 0x14008b535
call qword [sym.imp.USER32.dll_WaitMessage]
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_IsWindow]
nop dword [rax]
test eax, eax
je 0x14008b533
call qword [sym.imp.USER32.dll_GetCapture]
cmp rax, qword [rdi]
je 0x14008b480
xor dl, dl
cmp r13d, r12d
jne 0x14008b53f
mov r14, r15
jmp 0x14008b55a
mov rax, qword [rdi + 0x130]
cmp r13d, dword [rax]
jae 0x14008b687
mov rax, qword [rax + 8]
mov ecx, r13d
mov r14, qword [rax + rcx*8]
mov eax, dword ds:[rsp + 0x58]
cmp eax, r12d
je 0x14008b58c
cmp eax, dword [rdi + 0xdc]
jae 0x14008b687
mov ecx, eax
mov rax, qword [rdi + 0xd0]
mov rax, qword [rax + rcx*8]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14008b687
test dl, dl
je 0x14008b5be
mov r13b, 1
cmp dword [rsp + 0x5c], r15d
je 0x14008b77d
nop
test byte [rdi + 0x4c], r13b
je 0x14008b77d
mov ebx, dword [rbp + 0xd0]
xor sil, sil
test r14, r14
je 0x14008b5e4
mov r12d, dword [r14 + 0x2c]
jmp 0x14008b5e4
nop
cmp esi, 0x201
jne 0x14008b6ad
cmp ebx, 0x202
je 0x14008b6cc
mov ebx, dword [rbp + 0xd0]
xor sil, sil
xor r13b, r13b
cmp dword [rsp + 0x50], 0
jne 0x14008b64d
cmp dword [rsp + 0x54], 0
jne 0x14008b64d
lea rax, [rsp + 0x48]
mov r9d, 4
mov qword [rsp + 0x28], rax
mov r8d, r12d
lea rax, [rsp + 0x40]
mov edx, r12d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14008f0a0
mov r8d, dword [rsp + 0x48]
lea rax, [rbp + 0x40]
mov edx, dword [rsp + 0x40]
mov r9b, 1
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.14008ed40
test al, al
je 0x14008b64d
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0x40]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
test r13b, r13b
je 0x14008b665
mov r8d, dword ds:[rbp + 0xd8]
mov edx, ebx
mov rcx, rdi
call fcn.140093d80
test sil, sil
je 0x14008b687
mov rbx, qword [rdi]
call qword [sym.imp.USER32.dll_GetMessagePos]
mov r9d, eax
mov r8, rbx
mov edx, 0x7b
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r14, qword [rsp + 0x168]
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400c6a20
add rsp, 0x170
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp esi, 0x204
jne 0x14008b5d8
nop dword [rax]
cmp ebx, 0x205
jne 0x14008b5d8
mov r13d, dword [rsp + 0x40]
cmp dword [rsp + 0x5c], r15d
je 0x14008b6e9
test byte [rdi + 0x4c], 1
mov eax, 1
movzx r13d, r13b
cmovne r13d, eax
mov rbx, qword [rdi]
call qword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
lea rdx, [rsp + 0x40]
shr eax, 0x10
cwde
mov dword [rsp + 0x40], ecx
mov rcx, rbx
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov ebx, dword [rbp + 0xd0]
cmp dword [rsp + 0x40], ebx
jne 0x14008b765
mov rax, qword [rsp + 0x40]
mov ecx, dword [rbp + 0xd8]
shr rax, 0x20
cmp eax, ecx
jne 0x14008b765
mov eax, dword ds:[rsp + 0x48]
cmp esi, 0x201
mov dword [rsp + 0x30], eax
mov r9d, ecx
mov rax, qword [rsp + 0x60]
setne r15b
mov qword [rsp + 0x28], rax
mov r8d, ebx
mov rcx, rdi
mov qword [rsp + 0x20], r14
lea edx, [r15 + 0xd]
call fcn.14008d500
cmp esi, 0x204
sete sil
test r13b, r13b
jne 0x14008b665
jmp 0x14008b5e1
mov ebx, dword [rbp + 0xd0]
xor sil, sil
jmp 0x14008b5e4
mov ebx, dword [rbp + 0xd0]
xor sil, sil
mov r12d, 0xffffffff
jmp 0x14008b5e4