Function at 0x499d50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x570700
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 0x499d92
cmp byte [ebp + 0xc], 0
je 0x49a0fe
xor al, al
mov byte [ebp + 0xf], al
cmp byte [edi + 0x220], al
je 0x499db5
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 0x499e64
test al, al
jne 0x499e64
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x499e2e
mov al, byte [ecx + 0x220]
test al, al
je 0x499e2e
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 0x499e2e
sar ecx, 2
xor edx, edx
test ecx, ecx
je 0x499e2e
lea ecx, [edx*4]
cmp dword [ecx + eax], esi
je 0x499e1f
mov ecx, dword [ebp - 0x10]
inc edx
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jb 0x499e01
jmp 0x499e2e
add eax, ecx
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0049f9b0
mov eax, dword [esi + 0x254]
test eax, eax
je 0x499e64
mov dword [esi + 0x254], 0
cmp eax, 3
jne 0x499e5a
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x499e5a
push 0
push 0
call fcn.00499d50
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xcc]
cmp byte [edi + 0x220], 0
je 0x49a011
test ebx, ebx
je 0x49a011
cmp byte [ebp + 0xf], 0
je 0x499f54
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 0x499eca
mov edx, dword [eax]
cmp edx, ebx
jne 0x499eb2
cmp byte [ebp + 0xf], 0
mov byte [ebp + 0xb], 1
jne 0x499ec7
cmp edx, dword [esi]
jne 0x499ec0
cmp byte [ebp + 0xb], 0
mov byte [ebp + 0xf], 1
jne 0x499ec7
add eax, 4
cmp eax, ecx
jne 0x499ea2
mov dl, byte [ebp + 0xf]
cmp dword [esi], 0
je 0x499edf
test dl, dl
jne 0x499edf
push esi
lea ecx, [edi + 0x1e4]
call fcn.0049fa00
cmp byte [ebp + 0xb], 0
jne 0x49a017
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.0049fb00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x49a017
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
cmp ecx, vtable.CXTreeItem.0
jne 0x499f4c
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x49a017
add ecx, 0xffffffff
mov dword [eax + 8], ecx
jne 0x49a017
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xc]
jmp 0x49a017
push eax
call edx
jmp 0x49a017
mov eax, dword [edi + 0x1e8]
sub eax, dword [edi + 0x1e4]
sar eax, 2
test eax, eax
je 0x49a011
mov esi, dword [ebp - 0x14]
mov edi, dword [edi + 0x1e8]
mov esi, dword [esi + 0x1e4]
cmp esi, edi
je 0x499fea
nop
mov ebx, dword [esi]
cmp ebx, dword [ebp + 8]
je 0x499fe0
mov ecx, dword [ebx + 0x258]
test ecx, ecx
je 0x499fb0
mov al, byte [ecx + 0x220]
test al, al
je 0x499fb0
mov dword [ebx + 0x254], 0
jmp 0x499fd6
mov eax, dword [ebx + 0x254]
test eax, eax
je 0x499fe0
mov dword [ebx + 0x254], 0
cmp eax, 3
jne 0x499fd6
test ecx, ecx
je 0x499fd6
push 0
push 0
call fcn.00499d50
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xcc]
add esi, 4
cmp esi, edi
jne 0x499f80
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.004a0590
mov eax, dword [edi + 0x1e4]
add esp, 8
mov dword [edi + 0x1e8], eax
lea esi, [edi + 0x1e0]
cmp dword [esi], ebx
je 0x49a057
test ebx, ebx
je 0x49a025
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [esi]
mov dword [esi], ebx
test eax, eax
je 0x49a057
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
cmp ecx, vtable.CXTreeItem.0
jne 0x49a054
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x49a057
add ecx, 0xffffffff
mov dword [eax + 8], ecx
jne 0x49a057
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xc]
jmp 0x49a057
push eax
call edx
test ebx, ebx
je 0x49a0f0
mov eax, dword [ebx]
mov edx, dword [eax + 0x94]
cmp eax, vtable.CXTreeItem.0
jne 0x49a073
mov eax, dword [ebx + 0x40]
jmp 0x49a077
mov ecx, ebx
call edx
xor ecx, ecx
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x49a09b
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push 0x590b50
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 0x49a0b0
mov eax, dword [ecx]
push 1
call dword [eax + 0x154]
push 0
push 3
mov ecx, ebx
call fcn.0049c680
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x49a0f0
mov eax, dword [ecx]
mov edx, dword [eax + 8]
cmp eax, vtable.CXTreeItem.0
jne 0x49a0ed
mov eax, dword [ecx + 8]
test eax, eax
je 0x49a0f0
add eax, 0xffffffff
mov dword [ecx + 8], eax
jne 0x49a0f0
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
jmp 0x49a0f0
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