Function at 0x499400
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fdb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b1074]
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 0x499442
cmp byte [ebp + 0xc], 0
je 0x4997ab
xor al, al
mov byte [ebp + 0xf], al
cmp byte [edi + 0x220], al
je 0x499465
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 0x499511
test al, al
jne 0x499511
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x4994de
mov al, byte [ecx + 0x220]
test al, al
je 0x4994de
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 0x4994de
sar ecx, 2
xor edx, edx
test ecx, ecx
je 0x4994de
lea ecx, [edx*4]
cmp dword [ecx + eax], esi
je 0x4994cf
mov ecx, dword [ebp - 0x10]
inc edx
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jb 0x4994b1
jmp 0x4994de
add eax, ecx
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0049f080
mov eax, dword [esi + 0x254]
test eax, eax
je 0x499511
mov dword [esi + 0x254], 0
cmp eax, 3
jne 0x49950a
mov ecx, dword [esi + 0x258]
test ecx, ecx
je 0x49950a
push 0
push 0
call fcn.00499400
mov ecx, esi
call fcn.00463690
cmp byte [edi + 0x220], 0
je 0x4996be
test ebx, ebx
je 0x4996be
cmp byte [ebp + 0xf], 0
je 0x499602
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 0x499578
nop
mov edx, dword [eax]
cmp edx, ebx
jne 0x499560
cmp byte [ebp + 0xf], 0
mov byte [ebp + 0xb], 1
jne 0x499575
cmp edx, dword [esi]
jne 0x49956e
cmp byte [ebp + 0xb], 0
mov byte [ebp + 0xf], 1
jne 0x499575
add eax, 4
cmp eax, ecx
jne 0x499550
mov dl, byte [ebp + 0xf]
cmp dword [esi], 0
je 0x49958d
test dl, dl
jne 0x49958d
push esi
lea ecx, [edi + 0x1e4]
call fcn.0049f0d0
cmp byte [ebp + 0xb], 0
jne 0x4996c4
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.0049f1d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
test eax, eax
je 0x4996c4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
cmp ecx, vtable.CXTreeItem.0
jne 0x4995fa
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4996c4
add ecx, 0xffffffff
mov dword [eax + 8], ecx
jne 0x4996c4
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xc]
jmp 0x4996c4
push eax
call edx
jmp 0x4996c4
mov eax, dword [edi + 0x1e8]
sub eax, dword [edi + 0x1e4]
sar eax, 2
test eax, eax
je 0x4996be
mov esi, dword [ebp - 0x14]
mov edi, dword [edi + 0x1e8]
mov esi, dword [esi + 0x1e4]
cmp esi, edi
je 0x499697
nop dword [eax]
mov ebx, dword [esi]
cmp ebx, dword [ebp + 8]
je 0x49968d
mov ecx, dword [ebx + 0x258]
test ecx, ecx
je 0x499660
mov al, byte [ecx + 0x220]
test al, al
je 0x499660
mov dword [ebx + 0x254], 0
jmp 0x499686
mov eax, dword [ebx + 0x254]
test eax, eax
je 0x49968d
mov dword [ebx + 0x254], 0
cmp eax, 3
jne 0x499686
test ecx, ecx
je 0x499686
push 0
push 0
call fcn.00499400
mov ecx, ebx
call fcn.00463690
add esi, 4
cmp esi, edi
jne 0x499630
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.0049fc60
mov eax, dword [edi + 0x1e4]
add esp, 8
mov dword [edi + 0x1e8], eax
lea esi, [edi + 0x1e0]
cmp dword [esi], ebx
je 0x499704
test ebx, ebx
je 0x4996d2
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
mov eax, dword [esi]
mov dword [esi], ebx
test eax, eax
je 0x499704
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
cmp ecx, vtable.CXTreeItem.0
jne 0x499701
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x499704
add ecx, 0xffffffff
mov dword [eax + 8], ecx
jne 0x499704
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0xc]
jmp 0x499704
push eax
call edx
test ebx, ebx
je 0x49979d
mov eax, dword [ebx]
mov edx, dword [eax + 0x94]
cmp eax, vtable.CXTreeItem.0
jne 0x499720
mov eax, dword [ebx + 0x40]
jmp 0x499724
mov ecx, ebx
call edx
xor ecx, ecx
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x499748
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push 0x58faa4
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 0x49975d
mov eax, dword [ecx]
push 1
call dword [eax + 0x150]
push 0
push 3
mov ecx, ebx
call fcn.0049bd30
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x49979d
mov eax, dword [ecx]
mov edx, dword [eax + 8]
cmp eax, vtable.CXTreeItem.0
jne 0x49979a
mov eax, dword [ecx + 8]
test eax, eax
je 0x49979d
add eax, 0xffffffff
mov dword [ecx + 8], eax
jne 0x49979d
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
jmp 0x49979d
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