Function at 0x499f10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5711b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b3074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp + 8]
cmp dword [edi + 0x1e0], ebx
jne 0x499f52
cmp byte [ebp + 0xc], 0
je 0x49a2be
xor al, al
mov byte [ebp + 0xf], al
cmp byte [edi + 0x220], al
je 0x499f75
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0xff00
test cx, ax
setne al
mov byte [ebp + 0xf], al
mov esi, dword [edi + 0x1e0]
test esi, esi
je 0x49a024
test al, al
jne 0x49a024
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x499fee
mov al, byte [ecx + 0x220]
test al, al
je 0x499fee
mov eax, dword [ecx + 0x1e4]
add ecx, 0x1e4
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx + 4]
sub ecx, eax
cmp ecx, 4
jb 0x499fee
sar ecx, 2
xor edx, edx
test ecx, ecx
je 0x499fee
lea ecx, [edx*4]
cmp dword [ecx + eax], esi
je 0x499fdf
mov ecx, dword [ebp - 0x10]
inc edx
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jb 0x499fc1
jmp 0x499fee
add eax, ecx
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0049fb70
mov eax, dword [esi + 0x254]
test eax, eax
je 0x49a024
mov dword [esi + 0x254], 0
cmp eax, 3
jne 0x49a01a
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x49a01a
push 0
push 0
call fcn.00499f10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
cmp byte [edi + 0x220], 0
je 0x49a1d1
test ebx, ebx
je 0x49a1d1
cmp byte [ebp + 0xf], 0
je 0x49a114
mov eax, dword [edi + 0x1e4]
lea esi, [edi + 0x1e0]
mov ecx, dword [edi + 0x1e8]
xor dl, dl
mov byte [ebp + 0xb], 0
mov byte [ebp + 0xf], dl
cmp eax, ecx
je 0x49a08a
mov edx, dword [eax]
cmp edx, ebx
jne 0x49a072
cmp byte [ebp + 0xf], 0
mov byte [ebp + 0xb], 1
jne 0x49a087
cmp edx, dword [esi]
jne 0x49a080
cmp byte [ebp + 0xb], 0
mov byte [ebp + 0xf], 1
jne 0x49a087
add eax, 4
cmp eax, ecx
jne 0x49a062
mov dl, byte [ebp + 0xf]
cmp dword [esi], 0
je 0x49a09f
test dl, dl
jne 0x49a09f
push esi
lea ecx, [edi + 0x1e4]
call fcn.0049fbc0
cmp byte [ebp + 0xb], 0
jne 0x49a1d7
mov eax, dword [ebx]
push ebx
mov dword [ebp + 8], ebx
call dword [eax + 4]
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x1e4]
call fcn.0049fcc0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x49a1d7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
cmp ecx, vtable.CXTreeItem.0
jne 0x49a10c
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x49a1d7
add ecx, 0xffffffff
mov dword [eax + 8], ecx
jne 0x49a1d7
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xc]
jmp 0x49a1d7
push eax
call edx
jmp 0x49a1d7
mov eax, dword [edi + 0x1e8]
sub eax, dword [edi + 0x1e4]
sar eax, 2
test eax, eax
je 0x49a1d1
mov esi, dword [ebp - 0x14]
mov edi, dword [edi + 0x1e8]
mov esi, dword [esi + 0x1e4]
cmp esi, edi
je 0x49a1aa
nop
mov ebx, dword [esi]
cmp ebx, dword [ebp + 8]
je 0x49a1a0
mov ecx, dword [ebx + 0x258]
test ecx, ecx
je 0x49a170
mov al, byte [ecx + 0x220]
test al, al
je 0x49a170
mov dword [ebx + 0x254], 0
jmp 0x49a196
mov eax, dword [ebx + 0x254]
test eax, eax
je 0x49a1a0
mov dword [ebx + 0x254], 0
cmp eax, 3
jne 0x49a196
test ecx, ecx
je 0x49a196
push 0
push 0
call fcn.00499f10
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xcc]
add esi, 4
cmp esi, edi
jne 0x49a140
mov ebx, dword [ebp + 8]
mov edi, dword [ebp - 0x14]
push dword [ebp + 0xc]
push ecx
mov edx, dword [edi + 0x1e8]
mov ecx, dword [edi + 0x1e4]
call fcn.004a0750
mov eax, dword [edi + 0x1e4]
add esp, 8
mov dword [edi + 0x1e8], eax
lea esi, [edi + 0x1e0]
cmp dword [esi], ebx
je 0x49a217
test ebx, ebx
je 0x49a1e5
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [esi]
mov dword [esi], ebx
test eax, eax
je 0x49a217
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
cmp ecx, vtable.CXTreeItem.0
jne 0x49a214
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x49a217
add ecx, 0xffffffff
mov dword [eax + 8], ecx
jne 0x49a217
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xc]
jmp 0x49a217
push eax
call edx
test ebx, ebx
je 0x49a2b0
mov eax, dword [ebx]
mov edx, dword [eax + 0x94]
cmp eax, vtable.CXTreeItem.0
jne 0x49a233
mov eax, dword [ebx + 0x40]
jmp 0x49a237
mov ecx, ebx
call edx
xor ecx, ecx
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x49a25b
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push 0x590b30
push eax
call dword [ecx]
mov ecx, dword [ebp + 0xc]
xor edx, edx
test eax, eax
cmovs ecx, edx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 1
test ecx, ecx
je 0x49a270
mov eax, dword [ecx]
push 1
call dword [eax + 0x154]
push 0
push 3
mov ecx, ebx
call fcn.0049c840
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x49a2b0
mov eax, dword [ecx]
mov edx, dword [eax + 8]
cmp eax, vtable.CXTreeItem.0
jne 0x49a2ad
mov eax, dword [ecx + 8]
test eax, eax
je 0x49a2b0
add eax, 0xffffffff
mov dword [ecx + 8], eax
jne 0x49a2b0
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
jmp 0x49a2b0
push ecx
call edx
push dword [esi]
mov eax, dword [edi]
mov ecx, edi
push 0x44f
call dword [eax + 0x2c]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8