Function at 0x46cc83
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
xor ebx, ebx
mov eax, ebx
mov dword [ebp - 4], ebx
push 0x50
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x8c]
push ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x46cf95
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push 0x11
mov edi, dword [ebx + 0xb4]
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
lea ecx, [ebx + 0xc4]
movzx esi, al
mov eax, dword [ebx + 0xc8]
inc eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0xb0]
mov dword [ebp - 0x14], eax
cmp eax, dword [ecx]
jne 0x46ce33
cmp dword [ebp + 0xc], 8
je 0x46cd8e
cmp dword [ebp + 0xc], 0x2e
jne 0x46ce76
cmp dword [ebx + 0x1c0], 2
jne 0x46cd2b
test byte [ebx], 8
je 0x46cd46
push 2
push ebx
call fcn.00470fdf
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x46cf82
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
cmp eax, dword [ebx + 0xec]
jge 0x46ce76
push 1
lea ecx, [ebp + 0xc]
inc eax
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call fcn.004718ed
test esi, esi
je 0x46cd74
lea eax, [ebp - 0x3c]
push eax
push 0
push ebx
call fcn.00473934
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebx + 0xb0]
inc esi
push eax
push ebx
call fcn.0046cf9c
jmp 0x46ce79
cmp dword [ebx + 0x1c0], 2
jne 0x46cd9c
test byte [ebx], 8
je 0x46cdb7
push 2
push ebx
call fcn.00470fdf
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x46cf82
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x46ce76
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
dec eax
push ecx
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call fcn.004718ed
test esi, esi
je 0x46cde1
push 0
lea eax, [ebp - 0x3c]
push eax
push ebx
call fcn.00473934
push dword [ebx + 0xfc]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
imul ecx, dword [ebp - 0x34], 0x50
mov ecx, dword [ecx + eax + 0x2c]
cmp ecx, dword [ebp - 0x3c]
jne 0x46ce1b
imul esi, dword [ebp + 0xc], 0x50
lea edi, [ebp - 0x8c]
push 0x14
pop ecx
mov dword [ebp - 0x20], 1
add esi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
push dword [ebx + 0xfc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebx + 0xc4]
push eax
lea eax, [ebp - 0x3c]
jmp 0x46ce6f
cmp dword [ebp + 0xc], 8
je 0x46ce3f
cmp dword [ebp + 0xc], 0x2e
jne 0x46ce68
cmp dword [ebx + 0x1c0], 2
jne 0x46ce4d
test byte [ebx], 8
je 0x46ce68
push 2
push ebx
call fcn.00470fdf
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x46cf82
lea ecx, [ebx + 0xc4]
push ecx
lea eax, [ebx + 0xb0]
push eax
push ebx
call fcn.0046cf9c
mov esi, dword [ebp - 8]
test byte [ebp + 0x10], 1
je 0x46cf22
push 0
pop eax
sub edi, 1
cmovs edi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push dword [ebp - 0x28]
mov dword [ebp - 0xc], edi
push dword [ebp + 8]
call fcn.0046d8c0
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x46cf82
mov edi, 0x100
test dword [ebp + 0x10], edi
jne 0x46cec7
test byte [ebx], 6
je 0x46ceed
push ebx
push dword [ebp + 8]
call fcn.0046f0ce
jmp 0x46cec9
xor eax, eax
test eax, eax
je 0x46ceed
shr eax, 0x10
mov dword [ebp - 0x24], 1
test ax, ax
jne 0x46cee0
test dword [ebx], edi
je 0x46ceed
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x7fff
jmp 0x46cef3
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
push ebx
push dword [ebp + 8]
call fcn.004738d2
push 0
push ebx
push dword [ebp + 8]
call fcn.00470e77
cmp dword [ebp - 0x20], 0
je 0x46cf25
or dword [ebx + 0xac], 0xffffffff
lea edi, [ebx + 0x5c]
push 0x14
pop ecx
lea esi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
test byte [ebp + 0x10], 2
je 0x46cf5c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x46cf5c
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push ebx
push dword [ebp + 8]
call fcn.00473428
lea eax, [ebx + 0xb0]
push eax
push 0
push ebx
push dword [ebp + 8]
call fcn.0046c440
cmp dword [ebx + 0xec], 0
jne 0x46cf7e
push 0
push 0
push 0x47d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
je 0x46cf88
push ebx
call fcn.0046d721
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc