Function at 0x42d520
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
sub rsp, 0x308
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r14
mov qword [rax - 0x30], r15
mov rax, qword [0x00522be8]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov r13, rdx
mov qword [rsp + 0x40], rdx
mov rbp, rcx
mov qword [rsp + 0x48], rcx
lea rcx, [0x00522a28]
mov rax, qword [0x00522a28]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
xor r12d, r12d
mov r15d, r12d
lea r14, [r12 - 1]
cmp dword [rbp + 0x20], r12d
jbe 0x42dbae
lea rsi, [rbp + 0xc8]
mov qword [rsp + 0x50], rsi
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x42d602
cmp dword [rdx + 0x10], 0
jge 0x42d5d8
cmp dword [rbx - 0xc], 0
jl 0x42db82
mov dword [rbx - 0x10], r12d
mov word [rbx], 0
jmp 0x42d602
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x42d5f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x78]
mov rax, qword [rsi]
mov qword [rcx], rax
mov rax, qword [rsi + 8]
mov qword [rcx + 8], rax
mov rax, qword [rsi + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [rsi + 0x18]
mov qword [rcx + 0x18], rax
mov rax, qword [rsi + 0x20]
mov qword [rcx + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rcx + 0x28], rax
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x42d7b5
cmp r15d, dword [rbp + 0x20]
jae 0x42dad3
cmp dword [rsi], eax
jne 0x42dad3
cmp byte [rsi + 0x28], al
jne 0x42dad3
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
mov ecx, dword [rsp + 0x90]
call qword [sym.imp.USER32.dll_GetKeyNameTextW]
test r15d, r15d
je 0x42d6aa
mov rax, qword [r13]
cmp dword [rax - 0x10], 0
je 0x42d6aa
lea r8, [rsp + 0xb0]
lea rdx, [0x004ebe80]
lea rcx, [rsp + 0x30]
call fcn.004058f0
mov rbx, qword [rsp + 0x30]
jmp 0x42dad3
xor eax, eax
mov rcx, r14
lea rdi, [rsp + 0xb0]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x42d721
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x42dad3
cmp dword [rdx + 0x10], eax
jge 0x42d6f2
cmp dword [rbx - 0xc], eax
jl 0x42db8d
mov dword [rbx - 0x10], r12d
mov word [rbx], ax
jmp 0x42dad3
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x42d70a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x42dad3
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0xb0]
sub rbp, rbx
sar rbp, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x42d754
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.00405890
mov rbx, qword [rsp + 0x30]
cmp rbp, rsi
ja 0x42d774
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.004a79d0
jmp 0x42d791
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0xb0]
mov rdx, rsi
mov rcx, rbx
call fcn.004a7900
test edi, edi
js 0x42db98
cmp edi, dword [rbx - 0xc]
jg 0x42db98
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
mov rbp, qword [rsp + 0x48]
jmp 0x42dad3
test eax, eax
jne 0x42dad3
mov esi, dword [rsp + 0x8c]
cmp esi, 4
je 0x42d7d7
cmp esi, 0x10
je 0x42d7d7
cmp esi, 0x40
jne 0x42dad3
lea rcx, [0x00522a28]
mov rax, qword [0x00522a28]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x38], rdi
cmp esi, 4
je 0x42d9d0
cmp esi, 0x10
je 0x42d8ee
cmp esi, 0x40
jne 0x42daab
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x409
lea rcx, [rsp + 0x58]
call fcn.00476a20
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x42d882
cmp dword [rdi + 0x10], 0
jl 0x42d873
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x42d873
call fcn.0040b0c0
mov rbx, rax
mov ecx, r14d
lock xadd dword [rdi + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x42d868
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x42d882
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.00416fd0
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x42d8a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r15d, r15d
je 0x42d8d0
mov rax, qword [r13]
cmp dword [rax - 0x10], 0
je 0x42d8d0
mov rdi, qword [rsp + 0x38]
mov r8, rdi
lea rdx, [0x004ebe80]
lea rcx, [rsp + 0x30]
call fcn.004058f0
jmp 0x42daab
mov rdi, qword [rsp + 0x38]
mov r8, rdi
lea rdx, [0x004ebe78]
lea rcx, [rsp + 0x30]
call fcn.004058f0
jmp 0x42daab
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x408
lea rcx, [rsp + 0x60]
call fcn.00476a20
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x42d964
cmp dword [rdi + 0x10], 0
jl 0x42d955
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x42d955
call fcn.0040b0c0
mov rbx, rax
mov ecx, r14d
lock xadd dword [rdi + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x42d94a
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x42d964
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.00416fd0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x42d985
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r15d, r15d
je 0x42d9b2
mov rax, qword [r13]
cmp dword [rax - 0x10], 0
je 0x42d9b2
mov rdi, qword [rsp + 0x38]
mov r8, rdi
lea rdx, [0x004ebe80]
lea rcx, [rsp + 0x30]
call fcn.004058f0
jmp 0x42daab
mov rdi, qword [rsp + 0x38]
mov r8, rdi
lea rdx, [0x004ebe78]
lea rcx, [rsp + 0x30]
call fcn.004058f0
jmp 0x42daab
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x407
lea rcx, [rsp + 0x68]
call fcn.00476a20
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x42da46
cmp dword [rdi + 0x10], 0
jl 0x42da37
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x42da37
call fcn.0040b0c0
mov rbx, rax
mov ecx, r14d
lock xadd dword [rdi + 0x10], ecx
add ecx, 0xffffffff
test ecx, ecx
jg 0x42da2c
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x38], rax
jmp 0x42da46
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.00416fd0
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x42da67
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r15d, r15d
je 0x42da91
mov rax, qword [r13]
cmp dword [rax - 0x10], 0
je 0x42da91
mov rdi, qword [rsp + 0x38]
mov r8, rdi
lea rdx, [0x004ebe80]
lea rcx, [rsp + 0x30]
call fcn.004058f0
jmp 0x42daab
mov rdi, qword [rsp + 0x38]
mov r8, rdi
lea rdx, [0x004ebe78]
lea rcx, [rsp + 0x30]
call fcn.004058f0
nop
lea rdx, [rdi - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x42dace
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
jmp 0x42dad3
mov rbx, qword [rsp + 0x30]
movsxd rsi, dword [rbx - 0x10]
test esi, esi
je 0x42db65
mov r12, rbx
mov rax, qword [r13]
mov rbp, rbx
sub rbp, rax
sar rbp, 1
mov r13d, dword [rax - 0x10]
lea edi, [r13 + rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or eax, ecx
jge 0x42db15
mov edx, edi
mov rcx, qword [rsp + 0x40]
call fcn.00405890
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
cmp rbp, r13
ja 0x42db26
lea r12, [rax + rbp*2]
mov rdx, rsi
add rdx, rdx
lea rcx, [rax + r13*2]
mov r9, rdx
mov r8, r12
call fcn.004a7900
test edi, edi
js 0x42dba3
mov r13, qword [rsp + 0x40]
mov rax, qword [r13]
cmp edi, dword [rax - 0xc]
jg 0x42dba3
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [r13]
mov word [rax + rcx*2], 0
xor r12d, r12d
mov rbp, qword [rsp + 0x48]
add r15d, 1
mov rsi, qword [rsp + 0x50]
add rsi, 0x30
mov qword [rsp + 0x50], rsi
cmp r15d, dword [rbp + 0x20]
jae 0x42dbae
jmp 0x42d5b0
mov ecx, 0x80070057
call fcn.00404e30
int3
mov ecx, 0x80070057
call fcn.00404e30
int3
mov ecx, 0x80070057
call fcn.00404e30
int3
mov ecx, 0x80070057
call fcn.00404e30
int3
mov rax, qword [r13]
cmp dword [rax - 0x10], 0
mov r12d, 0
setne r12b
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
add r14d, 0xffffffff
test r14d, r14d
jg 0x42dbdc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.004a7100
mov rbx, qword [rsp + 0x320]
mov rbp, qword [rsp + 0x328]
mov rsi, qword [rsp + 0x300]
mov rdi, qword [rsp + 0x2f8]
mov r12, qword [rsp + 0x2f0]
mov r13, qword [rsp + 0x2e8]
mov r14, qword [rsp + 0x2e0]
mov r15, qword [rsp + 0x2d8]
add rsp, 0x308
ret