Function at 0x479b7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, esi
cmp eax, 0x206
jg 0x479bfe
je 0x479c74
cmp eax, 0x102
jg 0x479bd8
je 0x479ecc
sub eax, 2
je 0x479c5b
sub eax, 0xd
je 0x47a269
sub eax, 0x38
je 0x479ca8
sub eax, 0xb9
je 0x479d30
jmp case.0x479c0c.1127
sub eax, 0x104
je 0x479cc1
add eax, 0xfffffff1
sub eax, 3
jb case.0x479c0c.1126
add eax, 0xffffff16
sub eax, 5
jb 0x479c74
jmp case.0x479c0c.1127
add eax, 0xfffffb9b
cmp eax, 0x11
ja case.0x479c0c.1127
jmp dword [eax*4 + 0x479c13]
mov edx, dword [ebp + 0x14]
push edx
push ebx
push esi
push edi
push 0x4d8de0
call sym.ollydbg.exe__Tablefunction
add esp, 0x14
jmp case.0x479c0c.1127
mov ecx, dword [ebp + 0x14]
push ecx
push ebx
push esi
push edi
push 0x4d8de0
call sym.ollydbg.exe__Tablefunction
add esp, 0x14
jmp case.0x479c0c.1127
mov eax, dword [ebp + 0x14]
push eax
push ebx
push esi
push edi
push 0x4d8de0
call sym.ollydbg.exe__Tablefunction
add esp, 0x14
xor eax, eax
jmp 0x47a2cf
mov edx, dword [ebp + 0x14]
push edx
push ebx
push esi
push edi
push 0x4d8de0
call sym.ollydbg.exe__Tablefunction
add esp, 0x14
jmp 0x47a2cf
mov ecx, dword [ebp + 0x14]
push ecx
push ebx
push esi
push edi
push 0x4d8de0
call sym.ollydbg.exe__Tablefunction
add esp, 0x14
test eax, eax
je 0x479ce3
mov eax, 1
jmp 0x47a2cf
push 0x10
call sub.USER32.DLL_GetKeyState
movsx edx, ax
and edx, 0x8000
mov dword [ebp - 8], edx
push 0x11
call sub.USER32.DLL_GetKeyState
movsx ecx, ax
mov eax, dword [0x4ed654]
and ecx, 0x8000
mov dword [ebp - 0xc], ecx
dec eax
push eax
push ebx
mov edx, dword [ebp - 8]
push edx
push 1
mov ecx, dword [ebp - 0xc]
push ecx
push 0x11
call fcn.00496e98
add esp, 0x18
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x47a2cf
push 0x10
call sub.USER32.DLL_GetKeyState
movsx edx, ax
and edx, 0x8000
mov dword [ebp - 8], edx
push 0x11
call sub.USER32.DLL_GetKeyState
movsx ecx, ax
and ecx, 0x8000
cmp ebx, 0x2e
mov dword [ebp - 0xc], ecx
jne 0x479d78
cmp dword [ebp - 8], 0
jne 0x479d78
cmp dword [ebp - 0xc], 0
jne 0x479d78
mov eax, dword [0x4ed654]
push eax
call sym.ollydbg.exe__Deletewatch
pop ecx
jmp 0x479ec2
cmp ebx, 0x2d
jne 0x479d9d
cmp dword [ebp - 8], 0
jne 0x479d9d
cmp dword [ebp - 0xc], 0
jne 0x479d9d
push 0
push 0
push 0x102
push edi
call fcn.00479b7c
jmp 0x479ec2
cmp ebx, 0xd
jne 0x479e7f
cmp dword [ebp - 0xc], 0
jne 0x479e7f
mov eax, dword [0x4ed654]
cmp eax, dword [0x4ed64c]
jg 0x479e13
lea edx, [ebp - 0x20c]
push edx
push 0x41
push eax
call sym.ollydbg.exe__Findname
add esp, 0xc
mov ecx, dword [0x4d9019]
push ecx
push 0x48
push 0
lea eax, [ebp - 0x20c]
push eax
push str.Edit_watch
call sym.ollydbg.exe__Gettext
add esp, 0x14
test eax, eax
jg 0x479df9
xor eax, eax
jmp 0x47a2cf
lea edx, [ebp - 0x20c]
mov ecx, dword [0x4ed654]
push edx
push 0x41
push ecx
call sym.ollydbg.exe__Insertname
add esp, 0xc
jmp 0x479e73
cmp dword [0x4ed64c], 0x1000
jge 0x479e73
mov byte [ebp - 0x20c], 0
mov eax, dword [0x4d9019]
lea edx, [ebp - 0x20c]
push eax
push 0x48
push 0
push edx
push str.Add_watch
call sym.ollydbg.exe__Gettext
add esp, 0x14
test eax, eax
jg 0x479e4f
xor eax, eax
jmp 0x47a2cf
lea edx, [ebp - 0x20c]
mov ecx, dword [0x4ed654]
push edx
push 0x41
push ecx
call sym.ollydbg.exe__Insertname
add esp, 0xc
inc dword [0x4ed64c]
inc dword [0x4ed654]
push 0
push 0
push edi
call sub.USER32.DLL_InvalidateRect
jmp 0x479ec2
mov eax, dword [ebp + 0x14]
push eax
push ebx
push esi
push edi
push 0x4d8de0
call sym.ollydbg.exe__Tablefunction
add esp, 0x14
test eax, eax
je 0x479ea1
mov eax, 1
jmp 0x47a2cf
mov edx, dword [0x4ed654]
push edx
push ebx
mov ecx, dword [ebp - 8]
push ecx
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x11
call fcn.00496e98
add esp, 0x18
jmp 0x47a2cf
mov eax, 1
jmp 0x47a2cf
push ebx
call fcn.004a7bfc
pop ecx
test eax, eax
jne 0x479edf
test ebx, ebx
jne 0x479f75
mov byte [ebp - 0x20c], 0
mov edx, dword [0x4d9019]
lea ecx, [ebp - 0x20c]
push edx
push 0x48
push ebx
push ecx
push str.Add_watch
call sym.ollydbg.exe__Gettext
add esp, 0x14
test eax, eax
jg 0x479f0f
xor eax, eax
jmp 0x47a2cf
mov esi, dword [0x4ed64c]
jmp 0x479f3f
lea eax, [ebp - 0x10c]
push eax
push 0x41
push esi
call sym.ollydbg.exe__Findname
add esp, 0xc
lea edx, [ebp - 0x10c]
push edx
push 0x41
lea ecx, [esi + 1]
push ecx
call sym.ollydbg.exe__Insertname
add esp, 0xc
dec esi
cmp esi, dword [0x4ed654]
jge 0x479f17
lea eax, [ebp - 0x20c]
mov edx, dword [0x4ed654]
push eax
push 0x41
push edx
call sym.ollydbg.exe__Insertname
add esp, 0xc
inc dword [0x4ed64c]
inc dword [0x4ed654]
push 0
push 0
push edi
call sub.USER32.DLL_InvalidateRect
xor eax, eax
jmp 0x47a2cf
cmp esi, 0x469
jne 0x479fa1
push 0x4000
mov ecx, dword [0x4ed64c]
mov edx, dword [ebp + 0x14]
inc ecx
sub ecx, ebx
push edx
push ecx
call sub.KERNEL32.DLL_MulDiv
mov dword [ebp - 4], eax
jmp 0x479fac
mov eax, dword [0x4ed650]
add eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [0x4ed64c]
inc eax
mov edx, eax
sub edx, ebx
cmp edx, dword [ebp - 4]
jge 0x479fc0
sub eax, ebx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x479fcb
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp eax, dword [0x4ed650]
jne 0x479fe4
cmp dword [ebp + 0x14], 0
je 0x479fe4
or eax, 0xffffffff
jmp 0x47a2cf
mov edx, dword [ebp - 4]
mov dword [0x4ed650], edx
mov eax, dword [0x4ed64c]
inc eax
cmp eax, ebx
jg 0x479ffe
xor eax, eax
jmp 0x47a2cf
sub eax, ebx
push eax
push 0x4000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_MulDiv
jmp 0x47a2cf
cmp dword [ebp + 0x14], 0x7fffffff
jne 0x47a024
mov esi, 1
jmp 0x47a057
cmp dword [ebp + 0x14], 0x7ffffffe
jne 0x47a036
mov esi, dword [0x4ed64c]
inc esi
jmp 0x47a057
mov esi, dword [0x4ed654]
mov eax, dword [0x4ed64c]
add esi, dword [ebp + 0x14]
inc eax
cmp esi, eax
jle 0x47a04d
mov esi, eax
jmp 0x47a057
cmp esi, 1
jge 0x47a057
mov esi, 1
cmp esi, 0x1000
jle 0x47a064
mov esi, 0x1000
cmp esi, dword [0x4ed654]
jne 0x47a074
or eax, 0xffffffff
jmp 0x47a2cf
mov dword [0x4ed654], esi
mov edx, dword [0x4ed650]
mov dword [ebp - 4], edx
lea eax, [esi - 1]
cmp eax, dword [ebp - 4]
jge 0x47a090
mov dword [ebp - 4], eax
jmp 0x47a09e
mov edx, esi
sub edx, ebx
cmp edx, dword [ebp - 4]
jle 0x47a09e
sub esi, ebx
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 4]
mov dword [0x4ed650], ecx
mov eax, dword [0x4ed64c]
inc eax
cmp eax, ebx
jg 0x47a0b8
xor eax, eax
jmp 0x47a2cf
sub eax, ebx
push eax
push 0x4000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_MulDiv
jmp 0x47a2cf
mov esi, dword [0x4ed650]
mov eax, dword [0x4ed64c]
add esi, dword [ebp + 0x14]
inc eax
inc esi
cmp esi, eax
jle 0x47a0e6
mov esi, eax
jmp 0x47a0f0
cmp esi, 1
jge 0x47a0f0
mov esi, 1
cmp esi, 0x1000
jle 0x47a0fd
mov esi, 0x1000
cmp esi, dword [0x4ed654]
jne 0x47a10c
xor eax, eax
jmp 0x47a2cf
mov dword [0x4ed654], esi
mov eax, 1
jmp 0x47a2cf
shr ebx, 0x10
test bx, bx
jne 0x47a133
push 0
push 0xd
push 0x100
push edi
call fcn.00479b7c
mov eax, 1
jmp 0x47a2cf
push edi
call sub.USER32.DLL_UpdateWindow
call sub.USER32.DLL_CreatePopupMenu
mov ebx, eax
test ebx, ebx
je 0x47a1a3
push 0x4c253d
push 1
push 0
push ebx
call sub.USER32.DLL_AppendMenuA
cmp dword [0x4ed64c], 0x1000
jge 0x47a178
push str.Add_watch_tSpace
push 2
push 0
push ebx
call sub.USER32.DLL_AppendMenuA
mov eax, dword [0x4ed654]
cmp eax, dword [0x4ed64c]
jg 0x47a1a3
push str.Edit_watch_tEnter
push 3
push 0
push ebx
call sub.USER32.DLL_AppendMenuA
push str.Delete_watch_tDel
push 4
push 0
push ebx
call sub.USER32.DLL_AppendMenuA
mov edx, dword [0x4ed654]
push edx
push 0x11
push ebx
call fcn.004964e8
add esp, 0xc
push ebx
push 0
push 0x465
push edi
push 0x4d8de0
call sym.ollydbg.exe__Tablefunction
add esp, 0x14
mov dword [ebp - 4], eax
call fcn.0049659c
test ebx, ebx
je 0x47a1dd
push ebx
call sub.USER32.DLL_DestroyMenu
cmp dword [ebp - 4], 1
jne 0x47a1ef
push 0
push 0
push edi
call sub.USER32.DLL_InvalidateRect
jmp 0x47a24c
cmp dword [ebp - 4], 2
jne 0x47a206
push 0
push 0
push 0x102
push edi
call fcn.00479b7c
jmp 0x47a24c
cmp dword [ebp - 4], 3
jne 0x47a21d
push 0
push 0xd
push 0x100
push edi
call fcn.00479b7c
jmp 0x47a24c
cmp dword [ebp - 4], 4
jne 0x47a232
mov ecx, dword [0x4ed654]
push ecx
call sym.ollydbg.exe__Deletewatch
pop ecx
jmp 0x47a24c
mov eax, dword [0x4ed654]
dec eax
push eax
mov edx, dword [ebp - 4]
push edx
push 0x11
call fcn.004965e4
add esp, 0xc
jmp 0x47a2cf
xor eax, eax
jmp 0x47a2cf
push 0
push 0
push edi
call sub.USER32.DLL_InvalidateRect
xor eax, eax
jmp 0x47a2cf
or dword [0x4d54cc], 0x40
xor eax, eax
jmp 0x47a2cf
cmp dword [0x4d9030], 0
je 0x47a277
call fcn.004797dc
mov eax, dword [0x4ed64c]
cmp eax, dword [0x4ed650]
jg 0x47a28d
mov edx, eax
dec edx
mov dword [0x4ed650], edx
cmp dword [0x4ed650], 0
jge 0x47a29e
xor ecx, ecx
mov dword [0x4ed650], ecx
cmp eax, dword [0x4ed654]
jge 0x47a2ac
inc eax
mov dword [0x4ed654], eax
push 0x4799dc
push 0x4d8de0
push edi
call sym.ollydbg.exe__Painttable
add esp, 0xc
xor eax, eax
jmp 0x47a2cf
mov edx, dword [ebp + 0x14]
push edx
push ebx
push esi
push edi
call sub.USER32.DLL_DefMDIChildProcA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10