Function at 0x14005ecd0
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
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x140148020]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
movzx edi, r8b
mov byte [rsp + 0x20], r8b
movsxd r14, edx
mov rbx, rcx
mov rax, qword [rcx]
call qword [rax + 0x70]
test al, al
jne 0x14005ed2e
mov rax, qword [rbx]
movzx r8d, dil
mov edx, r14d
mov rcx, rbx
call qword [rax + 0x18]
jmp 0x14005f1a2
test r14d, r14d
jns 0x14005ed46
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
mov al, 1
jmp 0x14005f1a2
cmp dword [rbx + 0x10], 0xffffffff
jne 0x14005ed5a
mov eax, r14d
cmp dword [rbx + 0xc], 0xffffffff
cmovne eax, dword [rbx + 0xc]
mov dword [rbx + 0x10], eax
mov rax, qword [rbx - 0x188]
mov edx, r14d
lea rcx, [rbx - 0x188]
call qword [rax]
mov r12, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14005f1a0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x218]
test al, al
je 0x14005f1a0
mov r8, qword [r12]
lea rdx, str.ListItem
mov rcx, r12
call qword [r8 + 0x20]
mov r15, rax
test rax, rax
je 0x14005f1a0
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x14005ef33
xor eax, eax
mov edi, eax
movsxd rcx, dword [rbx + 0x20]
mov rsi, r14
test ecx, ecx
jle 0x14005edf7
mov rdx, rcx
mov ecx, eax
mov rax, qword [rbx + 0x18]
nop
cmp qword [rax], r14
je 0x14005eec3
inc edi
inc rcx
add rax, 8
cmp rcx, rdx
jl 0x14005ede0
mov rax, qword [r15]
add rax, 0x30
mov dl, 1
mov rcx, r15
call qword [rax]
test al, al
je 0x14005f1a0
mov dword [rbx + 0xc], r14d
mov rdx, rsi
lea rcx, [rbx + 0x18]
call fcn.14000cb20
lea r15, [rbx - 0x730]
mov edx, r14d
mov rcx, r15
call fcn.14005f850
cmp byte [rsp + 0x20], 0
je 0x14005ee43
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x250]
mov rdi, qword [rbx - 0x6d8]
test rdi, rdi
je 0x14005f19c
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov word [rsp + 0x38], bx
lea rax, [rbp - 0x40]
mov qword [rbp - 0x48], rax
mov word [rbp - 0x40], bx
mov qword [rbp + 0x40], r15
lea r8d, [rbx - 1]
lea rdx, str.itemselect
lea rcx, [rsp + 0x30]
call fcn.14000cdd0
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x60], rbx
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140016cc0
nop
lea rax, [rbp - 0x40]
mov rcx, qword [rbp - 0x48]
cmp rcx, rax
je 0x14005eeb4
call fcn.1400a9798
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
jmp 0x14005f192
mov rax, qword [r15]
add rax, 0x30
cmp edi, 0xffffffff
je 0x14005edfe
xor edx, edx
mov rcx, r15
call qword [rax]
test al, al
je 0x14005f1a0
cmp dword [rbx + 0xc], r14d
jne 0x14005eeef
mov dword [rbx + 0xc], 0xffffffff
test edi, edi
js 0x14005f19c
mov edx, dword [rbx + 0x20]
cmp edi, edx
jge 0x14005f19c
dec edx
mov dword [rbx + 0x20], edx
cmp edi, edx
jge 0x14005f19c
movsxd rcx, edi
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rcx*8]
sub edx, edi
movsxd r8, edx
shl r8, 3
lea rdx, [rcx + 8]
call fcn.1400a4bc0
mov al, 1
jmp 0x14005f1a2
mov ecx, InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x14005f0aa
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x80]
mov ecx, dword [rbx + 0x10]
mov edi, ecx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp ecx, r14d
jle 0x14005ef6f
mov edi, r14d
mov eax, ecx
mov dword [rsp + 0x24], ecx
cmp edi, eax
jg 0x14005efeb
movsxd r15, edi
mov r12d, dword [rsp + 0x24]
nop dword [rax + rax]
mov rax, qword [rbx - 0x188]
mov edx, edi
lea rcx, [rbx - 0x188]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x14005efdc
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x218]
test al, al
je 0x14005efdc
mov r8, qword [rsi]
lea rdx, str.ListItem
mov rcx, rsi
call qword [r8 + 0x20]
test rax, rax
je 0x14005efdc
mov r8, qword [rax]
mov dl, 1
mov rcx, rax
call qword [r8 + 0x30]
test al, al
je 0x14005efdc
lea rcx, [rbx + 0x18]
mov rdx, r15
call fcn.14000cb20
inc edi
inc r15
cmp edi, r12d
jle 0x14005ef80
mov r12, qword [rsp + 0x28]
mov dword [rbx + 0xc], r14d
lea rsi, [rbx - 0x730]
mov edx, r14d
mov rcx, rsi
call fcn.14005f850
cmp byte [rsp + 0x20], 0
je 0x14005f015
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x250]
mov rdi, qword [rbx - 0x6d8]
test rdi, rdi
je 0x14005f19c
movsxd rbx, dword [rbx + 0x10]
lea rax, [rbp + 0x78]
mov qword [rbp + 0x70], rax
xor eax, eax
mov word [rbp + 0x78], ax
lea rcx, [rbp + 0x100]
mov qword [rbp + 0xf8], rcx
mov word [rbp + 0x100], ax
mov qword [rbp + 0x180], rsi
lea r8d, [rax - 1]
lea rdx, str.itemselect
lea rcx, [rbp + 0x70]
call fcn.14000cdd0
mov qword [rbp + 0x198], r14
mov qword [rbp + 0x1a0], rbx
xor r8d, r8d
lea rdx, [rbp + 0x70]
mov rcx, rdi
call fcn.140016cc0
nop
lea rax, [rbp + 0x100]
mov rcx, qword [rbp + 0xf8]
cmp rcx, rax
je 0x14005f09d
call fcn.1400a9798
lea rax, [rbp + 0x78]
mov rcx, qword [rbp + 0x70]
jmp 0x14005f192
mov rax, qword [r15]
mov dl, 1
mov rcx, r15
call qword [rax + 0x30]
test al, al
je 0x14005f1a0
mov dword [rbx + 0xc], r14d
lea rcx, [rbx + 0x18]
mov rdx, r14
call fcn.14000cb20
lea r15, [rbx - 0x730]
mov edx, r14d
mov rcx, r15
call fcn.14005f850
test dil, dil
je 0x14005f0f1
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x250]
mov rdi, qword [rbx - 0x6d8]
test rdi, rdi
je 0x14005f19c
lea rax, [rbp + 0x1b8]
mov qword [rbp + 0x1b0], rax
xor ebx, ebx
mov word [rbp + 0x1b8], bx
lea rax, [rbp + 0x240]
mov qword [rbp + 0x238], rax
mov word [rbp + 0x240], bx
mov qword [rbp + 0x2c0], r15
lea r8d, [rbx - 1]
lea rdx, str.itemselect
lea rcx, [rbp + 0x1b0]
call fcn.14000cdd0
mov qword [rbp + 0x2d8], r14
mov qword [rbp + 0x2e0], rbx
xor r8d, r8d
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
call fcn.140016cc0
nop
lea rax, [rbp + 0x240]
mov rcx, qword [rbp + 0x238]
cmp rcx, rax
je 0x14005f184
call fcn.1400a9798
lea rax, [rbp + 0x1b8]
mov rcx, qword [rbp + 0x1b0]
cmp rcx, rax
je 0x14005f19c
call fcn.1400a9798
mov al, 1
jmp 0x14005f1a2
xor al, al
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1400a24f0
mov rbx, qword [rsp + 0x458]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret