Function at 0x496300
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fc02
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x554760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x128]
call eax
mov edx, dword [ebp + 8]
test al, al
jne 0x496370
mov eax, dword [edx]
sub eax, 9
cmp eax, 9
ja 0x496370
mov ecx, dword [ebx + 0x48]
push edx
test ecx, ecx
je 0x4969e7
mov eax, dword [ecx]
call dword [eax + 0x15c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edx]
cmp eax, 0x15
jne 0x496392
mov byte [ebx + 0x1ad], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x14
jne 0x4963b2
mov byte [ebx + 0x1ad], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add eax, 0xfffffffd
cmp eax, 0xf
ja case.0x49660a.14
movzx eax, byte [eax + 0x496a14]
jmp dword [eax*4 + 0x496a04]
mov ecx, dword [edx + 4]
push str.AutoTableItem
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je case.0x49660a.13
cmp byte [ebx + 0x59d], 0
je 0x49641a
mov esi, dword [edi]
mov ecx, edi
mov edx, dword [esi + 0x10]
call edx
test al, al
mov ecx, edi
sete al
movzx eax, al
push eax
call dword [esi + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x59c], 0
jne 0x496447
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax]
push eax
mov ecx, ebx
call fcn.00497680
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
mov di, ax
test di, di
push 0x10
sets byte [ebp + 0xb]
call esi
test ax, ax
sets al
test di, di
js 0x496495
test al, al
jne 0x496495
mov edi, dword [ebp - 0x10]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push eax
mov ecx, ebx
call fcn.00497680
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x10]
mov ecx, edi
mov eax, dword [edi]
call dword [eax]
cmp byte [ebp + 0xb], 0
je 0x4964d5
mov dword [ebx + 0x5a0], eax
mov ecx, edi
mov esi, dword [edi]
mov eax, dword [esi + 0x10]
call eax
test al, al
mov ecx, edi
sete al
movzx eax, al
push eax
call dword [esi + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebx + 0x5a0]
mov esi, edi
cmp eax, edi
push 0x55ad3e
push 8
cmovl esi, eax
cmovg edi, eax
call fcn.004a034d
add esp, 8
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x496510
mov ecx, eax
call fcn.0047f0f0
mov ecx, eax
mov dword [ebp + 8], eax
jmp 0x496515
xor ecx, ecx
mov dword [ebp + 8], ecx
mov eax, dword [ebx + 0x590]
lea edx, [ebx + 0x590]
push ecx
mov ecx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edx
call dword [eax + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
cmp eax, ecx
je 0x49656a
mov ebx, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
cmp ecx, esi
jl 0x49654d
cmp ecx, edi
jle 0x496558
mov edx, dword [ebp - 0x14]
push ecx
mov ecx, edx
mov eax, dword [edx]
call dword [eax + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040c6c0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx]
jne 0x496542
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
call fcn.00479810
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push eax
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00479920
mov eax, dword [ebp + 8]
push 0x14
push dword [eax]
call fcn.0049ffea
push 8
push dword [ebp + 8]
call fcn.0049ffea
add esp, 0x10
cmp esi, edi
jg case.0x49660a.13
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [ebx + 0x5b4]
add ecx, 0x558
push esi
mov eax, dword [ecx]
call dword [eax]
push str.AutoTableItem
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
je 0x4965da
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx + 0x14]
inc esi
cmp esi, edi
jle 0x4965b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [edx + 0x14]
add eax, 0xfffffff3
cmp eax, 0x54
ja case.0x49660a.14
movzx eax, byte [eax + 0x496a50]
jmp dword [eax*4 + 0x496a24]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns case.0x49660a.13
mov eax, dword [ebx + 0x558]
lea ecx, [ebx + 0x558]
call dword [eax + 0xc]
cmp eax, 1
jle 0x496643
cmp byte [ebx + 0x59c], 0
je case.0x49660a.13
mov ecx, ebx
call fcn.00497520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x59d], 0
jne case.0x49660a.13
mov ecx, dword [ebx + 0x5b4]
mov esi, dword [ebx + 0x5a0]
call fcn.0046e410
cmp esi, eax
jge 0x49668d
mov ecx, dword [ebx + 0x5b4]
call fcn.0046e410
add esi, eax
mov ecx, dword [ebx + 0x5b4]
call fcn.0046e410
sub esi, eax
js case.0x49660a.13
mov eax, dword [ebx + 0x558]
lea ecx, [ebx + 0x558]
push esi
call dword [eax]
mov ecx, eax
test ecx, ecx
je 0x4966c3
mov eax, dword [ecx]
mov eax, dword [eax + 0x11c]
call eax
test al, al
jne 0x4966dc
sub esi, 1
jns 0x4966a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push esi
mov ecx, ebx
call fcn.00497680
push esi
mov ecx, ebx
call fcn.00496d40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x59d], 0
jne case.0x49660a.13
mov ecx, dword [ebx + 0x5b4]
mov edi, dword [ebx + 0x5a0]
add ecx, 0x558
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x5b4]
mov esi, eax
call fcn.0046e410
sub esi, eax
cmp edi, esi
jl 0x496746
mov ecx, dword [ebx + 0x5b4]
call fcn.0046e410
sub edi, eax
mov ecx, dword [ebx + 0x5b4]
call fcn.0046e410
mov edx, dword [ebx + 0x558]
lea esi, [edi + eax]
lea edi, [ebx + 0x558]
mov ecx, edi
call dword [edx + 0xc]
cmp esi, eax
jge case.0x49660a.13
nop dword [eax]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax]
mov ecx, eax
test ecx, ecx
je 0x49678f
mov eax, dword [ecx]
mov eax, dword [eax + 0x11c]
call eax
test al, al
jne 0x4966dc
mov eax, dword [edi]
mov ecx, edi
inc esi
call dword [eax + 0xc]
cmp esi, eax
jl 0x496770
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x59d], 0
jne case.0x49660a.13
mov eax, dword [ebx + 0x5a0]
mov ecx, 1
cmp eax, ecx
cmovl eax, ecx
lea esi, [eax - 1]
test esi, esi
js case.0x49660a.13
nop word [eax + eax]
mov eax, dword [ebx + 0x558]
lea ecx, [ebx + 0x558]
push esi
call dword [eax]
mov ecx, eax
test ecx, ecx
je 0x496807
mov eax, dword [ecx]
mov eax, dword [eax + 0x11c]
call eax
test al, al
jne 0x4966dc
sub esi, 1
jns 0x4967e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x59d], 0
jne case.0x49660a.13
mov eax, dword [ebx + 0x5a0]
lea edi, [ebx + 0x558]
or ecx, 0xffffffff
cmp eax, ecx
cmovl eax, ecx
mov ecx, edi
lea esi, [eax + 1]
mov eax, dword [edi]
call dword [eax + 0xc]
cmp esi, eax
jge case.0x49660a.13
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax]
mov ecx, eax
test ecx, ecx
je 0x496872
mov eax, dword [ecx]
mov eax, dword [eax + 0x11c]
call eax
test al, al
jne 0x4966dc
mov eax, dword [edi]
mov ecx, edi
inc esi
call dword [eax + 0xc]
cmp esi, eax
jl 0x496853
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1d8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1dc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x59d], 0
jne case.0x49660a.13
mov eax, dword [ebx + 0x558]
lea edi, [ebx + 0x558]
mov ecx, edi
xor esi, esi
call dword [eax + 0xc]
test eax, eax
jle case.0x49660a.13
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax]
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x11c]
call eax
test al, al
jne 0x4966dc
mov eax, dword [edi]
mov ecx, edi
inc esi
call dword [eax + 0xc]
cmp esi, eax
jl 0x4968f6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x59d], 0
jne case.0x49660a.13
mov eax, dword [ebx + 0x558]
lea ecx, [ebx + 0x558]
call dword [eax + 0xc]
mov esi, eax
sub esi, 1
js case.0x49660a.13
nop dword [eax + eax]
mov edx, dword [ebx + 0x558]
lea ecx, [ebx + 0x558]
push esi
call dword [edx]
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x11c]
call eax
test al, al
jne 0x4966dc
sub esi, 1
jns 0x496960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx eax, word [edx + 0x18]
sub eax, 0
je 0x4969c8
sub eax, 1
jne case.0x49660a.14
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1d4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edx
mov ecx, ebx
call fcn.0045d7a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4