Function at 0x4648e4
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi - 0xa0]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x464902
pop edi
pop esi
pop ebp
add esp, 0x20
ret 4
mov eax, dword [esi + 0x324]
mov ecx, dword [esi + 0x308]
cmp eax, ecx
push ebx
jge 0x464979
xor ebp, ebp
cmp eax, ebp
jl 0x46497b
mov ecx, dword [esi + 0x304]
mov eax, dword [ecx + eax*4]
cmp eax, ebp
je 0x46497b
push ebp
mov ecx, eax
call fcn.00425f70
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x10], edi
je 0x464ada
mov eax, dword [esi + 0x348]
mov ecx, dword [esi + 0x344]
mov ebx, dword [esi + 0x33c]
sub eax, ecx
mov ecx, dword [esi + 0x340]
mov dword [esp + 0x14], eax
sub ecx, ebx
cmp eax, ebp
mov dword [esp + 0x18], ecx
jne 0x464986
cmp ecx, ebp
jne 0x464986
mov dword [esi + 0x34c], ebp
mov dword [esi + 0x350], ebp
jmp 0x464ada
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov edi, ebp
jmp 0x464ada
mov eax, dword [esi - 0xa0]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x28]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
mov eax, 0x66666667
shr ecx, 0x1f
lea edi, [edx + ecx + 1]
mov ecx, dword [esp + 0x2c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
lea ebp, [edx + eax + 1]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x34c]
mov ebx, eax
test ecx, ecx
je 0x4649fc
mov edx, dword [esi + 0x350]
lea eax, [edx*8]
sub eax, edx
sub eax, ecx
add eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esi + 0x350], eax
jmp 0x464a06
mov dword [esi + 0x350], 2
mov dword [esi + 0x34c], ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call ebx
test ah, 0x80
je 0x464a35
mov eax, edi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov edi, eax
mov eax, ebp
cdq
and edx, 0xf
add eax, edx
sar eax, 4
mov ebp, eax
push 0x11
call ebx
test ah, 0x80
je 0x464a44
shl edi, 2
shl ebp, 2
mov ecx, dword [esi + 0x350]
mov eax, 0x51eb851f
mov edx, ecx
imul edx, edi
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, edx
cmp eax, 0x3e8
jg 0x464a7c
cmp eax, 1
jge 0x464a75
mov eax, 1
jmp 0x464a81
cmp eax, 0x3e8
jle 0x464a81
mov eax, 0x3e8
imul eax, dword [esp + 0x14]
imul ecx, ebp
mov edi, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0x3e8
jg 0x464ab8
cmp edx, 1
jge 0x464ab0
mov edx, 1
jmp 0x464abd
cmp edx, 0x3e8
jle 0x464abd
mov edx, 0x3e8
imul edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x234]
push edx
lea edx, [esp + 0x1c]
push edi
push edx
call fcn.004a1c00
mov edi, dword [esp + 0x10]
xor ebp, ebp
mov ecx, dword [esi + 0x31c]
cmp ecx, ebp
je 0x464bbf
push 0xffffffffffffffff
call fcn.0049e510
test eax, eax
jne 0x464bbf
mov eax, dword [esi + 0x31c]
cmp dword [eax + 0x54], ebp
jne 0x464bbf
cmp edi, ebp
je 0x464b19
mov ecx, edi
call fcn.0049d8a0
test eax, eax
jne 0x464bbf
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [esi + 0x480]
push ebp
push ebp
push ecx
mov ecx, dword [esi + 0x31c]
mov edi, eax
call fcn.0049d560
test eax, eax
je 0x464b86
call ebx
sub eax, edi
cmp eax, 0x5a
jbe 0x464b57
mov eax, dword [esi + 0x480]
dec eax
cmp eax, 1
jge 0x464b60
mov eax, 1
jmp 0x464b60
jae 0x464b66
mov eax, dword [esi + 0x480]
inc eax
mov dword [esi + 0x480], eax
mov ecx, dword [esi + 0x31c]
push 0xffffffffffffffff
call fcn.0049e510
test eax, eax
je 0x464bb4
mov ecx, dword [esi + 0x31c]
push 1
call fcn.0049d720
jmp 0x464b99
mov ecx, dword [esi + 0x31c]
push 1
call fcn.0049d720
mov dword [esi + 0x31c], ebp
cmp dword [esi + 0x320], ebp
je 0x464bb4
push 0x64
lea ecx, [esi - 0xbc]
mov dword [esi + 0x320], ebp
call fcn.0046ce90
lea ecx, [esi - 0xbc]
call fcn.0046b980
mov edx, dword [esi - 0xa0]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
pop ebx
jne 0x464bda
pop edi
pop esi
pop ebp
add esp, 0x20
ret 4
cmp dword [esi + 0x348], ebp
jne 0x464bfe
cmp dword [esi + 0x344], ebp
jne 0x464bfe
cmp dword [esi + 0x340], ebp
jne 0x464bfe
cmp dword [esi + 0x33c], ebp
jne 0x464bfe
xor edi, edi
jmp 0x464c03
mov edi, 1
mov esi, dword [esi + 0x31c]
cmp esi, ebp
je 0x464c1d
mov ecx, esi
call fcn.0049d8a0
test eax, eax
je 0x464c1d
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x20
ret 4