Function at 0x499f20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5711c0
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 0x499f62
cmp byte [ebp + 0xc], 0
je 0x49a2ce
xor al, al
mov byte [ebp + 0xf], al
cmp byte [edi + 0x220], al
je 0x499f85
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 0x49a034
test al, al
jne 0x49a034
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x499ffe
mov al, byte [ecx + 0x220]
test al, al
je 0x499ffe
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 0x499ffe
sar ecx, 2
xor edx, edx
test ecx, ecx
je 0x499ffe
lea ecx, [edx*4]
cmp dword [ecx + eax], esi
je 0x499fef
mov ecx, dword [ebp - 0x10]
inc edx
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jb 0x499fd1
jmp 0x499ffe
add eax, ecx
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0049fb80
mov eax, dword [esi + 0x254]
test eax, eax
je 0x49a034
mov dword [esi + 0x254], 0
cmp eax, 3
jne 0x49a02a
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x49a02a
push 0
push 0
call fcn.00499f20
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
cmp byte [edi + 0x220], 0
je 0x49a1e1
test ebx, ebx
je 0x49a1e1
cmp byte [ebp + 0xf], 0
je 0x49a124
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 0x49a09a
mov edx, dword [eax]
cmp edx, ebx
jne 0x49a082
cmp byte [ebp + 0xf], 0
mov byte [ebp + 0xb], 1
jne 0x49a097
cmp edx, dword [esi]
jne 0x49a090
cmp byte [ebp + 0xb], 0
mov byte [ebp + 0xf], 1
jne 0x49a097
add eax, 4
cmp eax, ecx
jne 0x49a072
mov dl, byte [ebp + 0xf]
cmp dword [esi], 0
je 0x49a0af
test dl, dl
jne 0x49a0af
push esi
lea ecx, [edi + 0x1e4]
call fcn.0049fbd0
cmp byte [ebp + 0xb], 0
jne 0x49a1e7
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.0049fcd0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x49a1e7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
cmp ecx, vtable.CXTreeItem.0
jne 0x49a11c
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x49a1e7
add ecx, 0xffffffff
mov dword [eax + 8], ecx
jne 0x49a1e7
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xc]
jmp 0x49a1e7
push eax
call edx
jmp 0x49a1e7
mov eax, dword [edi + 0x1e8]
sub eax, dword [edi + 0x1e4]
sar eax, 2
test eax, eax
je 0x49a1e1
mov esi, dword [ebp - 0x14]
mov edi, dword [edi + 0x1e8]
mov esi, dword [esi + 0x1e4]
cmp esi, edi
je 0x49a1ba
nop
mov ebx, dword [esi]
cmp ebx, dword [ebp + 8]
je 0x49a1b0
mov ecx, dword [ebx + 0x258]
test ecx, ecx
je 0x49a180
mov al, byte [ecx + 0x220]
test al, al
je 0x49a180
mov dword [ebx + 0x254], 0
jmp 0x49a1a6
mov eax, dword [ebx + 0x254]
test eax, eax
je 0x49a1b0
mov dword [ebx + 0x254], 0
cmp eax, 3
jne 0x49a1a6
test ecx, ecx
je 0x49a1a6
push 0
push 0
call fcn.00499f20
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xcc]
add esi, 4
cmp esi, edi
jne 0x49a150
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.004a0760
mov eax, dword [edi + 0x1e4]
add esp, 8
mov dword [edi + 0x1e8], eax
lea esi, [edi + 0x1e0]
cmp dword [esi], ebx
je 0x49a227
test ebx, ebx
je 0x49a1f5
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [esi]
mov dword [esi], ebx
test eax, eax
je 0x49a227
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
cmp ecx, vtable.CXTreeItem.0
jne 0x49a224
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x49a227
add ecx, 0xffffffff
mov dword [eax + 8], ecx
jne 0x49a227
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xc]
jmp 0x49a227
push eax
call edx
test ebx, ebx
je 0x49a2c0
mov eax, dword [ebx]
mov edx, dword [eax + 0x94]
cmp eax, vtable.CXTreeItem.0
jne 0x49a243
mov eax, dword [ebx + 0x40]
jmp 0x49a247
mov ecx, ebx
call edx
xor ecx, ecx
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x49a26b
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 0x49a280
mov eax, dword [ecx]
push 1
call dword [eax + 0x154]
push 0
push 3
mov ecx, ebx
call fcn.0049c850
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x49a2c0
mov eax, dword [ecx]
mov edx, dword [eax + 8]
cmp eax, vtable.CXTreeItem.0
jne 0x49a2bd
mov eax, dword [ecx + 8]
test eax, eax
je 0x49a2c0
add eax, 0xffffffff
mov dword [ecx + 8], eax
jne 0x49a2c0
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
jmp 0x49a2c0
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