Function at 0x46db21
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
lea edi, [ebp - 0x20]
inc ecx
mov eax, dword [ebx + 0x10]
lea esi, [ebx + 0x28]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0xc]
push ebx
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0xa]
cmp eax, ecx
movsd dword es:[edi], dword [esi]
cmovl eax, ecx
mov dword [ebp - 0xc], eax
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10]
mov dword [edi], ecx
mov dword [ebx + 0x44], 0x1a
call fcn.0046b2c2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetCapture]
push ebx
call fcn.0046b322
test eax, eax
je 0x46db84
push 0xffffffffffffffff
push ebx
call fcn.0046b7df
mov eax, dword [ebp - 0xc]
push 0
push 0x64
pop edx
cmp eax, edx
cmovl eax, edx
push eax
push 0x1234
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetCapture]
mov esi, eax
sub esi, dword [ebx + 4]
neg esi
sbb esi, esi
add esi, 1
je 0x46dc54
test byte [ebx], 1
je 0x46dc54
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x46dc54
push 3
push 0x20e
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x46dc4f
movzx ecx, word [ebp + 0x10]
mov edx, 0x200
movzx eax, word [ebp + 0xc]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 4]
sub edx, 0x200
je 0x46dcae
dec edx
sub edx, 1
jne 0x46dba7
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
test esi, esi
je 0x46dc37
call dword [sym.imp.USER32.dll_ReleaseCapture]
and dword [edi], 0
and dword [ebx], 0xfffffffd
push ebx
call fcn.0046b2c2
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x38]
jmp 0x46dc75
and dword [edi], 0
push ebx
call fcn.0046b2c2
movzx ecx, word [ebp + 0x10]
mov edx, 0x202
movzx eax, word [ebp + 0xc]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], ecx
cmp edx, 0x113
jne 0x46dc0e
push dword [ebp - 4]
mov dword [ebp - 8], 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [ebp - 0xc]
push 0x1234
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 4], eax
jmp 0x46dc11
mov ebx, dword [edi]
lea esi, [ebp - 0x20]
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0048d4aa
push edx
push eax
push dword [ebp + 8]
call fcn.0046da92
mov edi, dword [ebp - 0x10]
cmp ebx, eax
mov ebx, dword [ebp + 8]
mov dword [edi], eax
je 0x46dce7
push ebx
mov dword [ebp - 8], 1
call fcn.0046b2c2
cmp dword [ebp - 8], 0
je 0x46dd04
cmp dword [edi], 0
je 0x46dd04
push ebx
call fcn.0046b322
test eax, eax
je 0x46dd04
push 0xffffffffffffffff
push ebx
call fcn.0046b7df
push dword [ebp - 0x30]
call fcn.0048d4aa
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
jmp 0x46dba3